Professional Documents
Culture Documents
Lecture2 (1)
Lecture2 (1)
Sem 1 2021
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 1/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Lecture 2
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 2/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Truth Table Reduction
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 3/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Boolean Logic Theorems and Laws
Negation Theorem
• X=X
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 4/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Boolean Logic Theorems and Laws
Inclusion Theorem
• X.X = 0
• X +X =1
Commutative Law
• X +Y =Y +X
• X.Y = Y.X
Associative Law
• X + Y + Z = X + (Y + Z) = (X + Y ) + Z
• X.Y.Z = X.(Y.Z) = (X.Y ).Z
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 5/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Boolean Logic Theorems and Laws
Distributive Law
• X.Y + X.Z = X.(Y + Z)
• (X + Y ).(W + Z) = X.W + X.Z + Y.W + Y.Z
Idempotent Law
• X.X = X
• X +X =X
Absorptive Laws
• X + X.Y = X
• X.(X + Y ) = X
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 6/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Boolean Logic Theorems and Laws
Reflective Theorems
• X + X.Y = X + Y
• X.(X + Y ) = X.Y
• X.Y + X.Y.Z = X.Y + Y.Z
Consistency Theorems
• X.Y + X.Y = X
• (X + Y ).(X + Y ) = X
DeMorgan’s Laws
• X.Y = X + Y
• X + Y = X.Y
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 7/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Solving the Logic Expression
P ′ = (S + S).L.P + S.L.(P + P )
P ′ = (1).L.P + S.L.(1)
P ′ = L.P + S.L
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 8/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 9/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps
0
B
1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 10/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 10/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 10/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps
A A
0 1 0 1
0 1 1 0 1 1
B B
1 1 1
=B =B+A
3 Variable 4 Variable
AB AB
00 01 11 10 00 01 11 10
0 00
C
1 01
CD
11
10
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 12/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Exercise
Simplify:
Y = A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D +
A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D +
A.B.C.D + A.B.C.D + A.B.C.D
AB
00 01 11 10
00
01
CD
11
10
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 13/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Exercise
AB
00 01 11 10
00 1 1 1
01 1 1 1 1
CD
11 1 1 1 1
10 1 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 14/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Exercise
AB • Group 1 = A
00 01 11 10
00 1 1 1
01 1 1 1 1
CD
11 1 1 1 1
10 1 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 14/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Exercise
AB • Group 1 = A
00 01 11 10 • Group 2 = D
00 1 1 1
• Group 3 = C.B
01 1 1 1 1
CD
11 1 1 1 1
10 1 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 14/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Exercise
AB • Group 1 = A
00 01 11 10 • Group 2 = D
00 1 1 1
• Group 3 = C.B
01 1 1 1 1
CD
11 1 1 1 1
10 1 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 14/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Exercise
AB • Group 1 = A
00 01 11 10 • Group 2 = D
00 1 1 1
• Group 3 = C.B
01 1 1 1 1
CD
11 1 1 1 1
10 1 1
Solution:
Y = A + D + C.B
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 14/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps - Points to note
The map is a 2-D graph but the edges can be considered to fold
around so that left and right edges meet and top and bottom
edges meet.
AB • Group 1 = B.D
00 01 11 10 • Group 2 = A.B.D
00 1
01 1 1
CD
11 1 1
10 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 15/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps - Points to note
AB • Group 1 = B.D
00 01 11 10
00 1 1
01
CD
11
10 1 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 16/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps - Points to note
AC
00 01 11 10
00
01 X 1 1 1
BD
11 1 1 1 X
10 X
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 17/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps - Points to note
01 X 1 1 1
BD
11 1 1 1 X
10 X
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 17/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Karnaugh Maps - Points to note
01 X 1 1 1
BD
11 1 1 1 X
10 X
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 17/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Example
Example
• An automatic work station cycles (Y = 1) when the power P
is on and the “cycle ready” indicator C is on.
• The machine is switched on with a spring return go switch G
and is switched off with a spring return stop switch S.
• The stop switch takes precedence over the go switch.
Inputs Outputs
Solenoid Cycle -Y
G Power P
Ready
S C
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 18/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Example
Inputs
List Inputs
Outputs
List Outputs
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 19/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Example
Inputs
• G = 0 when the go button is not pressed
• G = 1 when the go button is pressed
• S = 0 when the stop button is not pressed
• S = 1 when the stop button is pressed
• P = 0 when the power is off
• P = 1 when the power is on
• C = 0 when the cycle ready indicator is off
• C = 1 when the cycle ready indicator is on
Outputs
• P ′ = 0 when the power is off
• P ′ = 1 when the power is on
• Y = 0 station idles
• Y = 1 station cycles
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 19/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Example
G S P C P′ Y
0 0 0 0 0 0
0 0 0 1 X X State can’t exist
0 0 1 0 1 0
0 0 1 1 1 1
0 1 0 0 0 0
0 1 0 1 0 0 Would be X but S is on
0 1 1 0 0 0
0 1 1 1 0 0
1 0 0 0 1 0
1 0 0 1 X X State can’t exist
1 0 1 0 1 0
1 0 1 1 1 1
1 1 0 0 0 0
1 1 0 1 0 0 Would be X but S is on
1 1 1 0 0 0
1 1 1 1 0 0
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 20/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Example
PC
00 01 11 10
00 X 1 1
01 P ′ = G.S + P.S
GS
11
10 1 X 1 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 21/22
Manufacturing Automation for Assembly and Inspection MM453
Lecture 2
Example
PC
00 01 11 10
00 X 1
01 Y = C.S
GS
11
10 X 1
Dr. Nigel Kent Manufacturing Automation for Assembly and Inspection, MM453 22/22