Ch04 Fundamentals of Logic
Ch04 Fundamentals of Logic
Programmable
Logic
Controllers
Frank D.
Petruzella
Sixth Edition
© McGraw Hill LLC. All rights reserved. No reproduction or distribution without the prior written consent of McGraw Hill LLC.
Chapter 4
Fundamentals
of Logic
Logical OR Gate
© McGraw Hill LLC Access the text alternative for slide images.
10
OR Function A
The OR Function
An OR gate can have
any number of inputs
but only one output.
Truth table
SW- A SW- B Light
Open (0) Open (0) Off (0)
Open (0) Closed (1) On (1)
Closed (1) Open (0) On (1)
Closed (1) Closed (1) On (1)
Access the text alternative for slide images.
Truth table
Pushbutton Light
Not pressed (0) On (1)
Pressed (1) Off (0)
Truth table
Pressure Pressure
switch Power indicator
0 1 1
1 1 0
A OR gate with an
inverted output is
called a NOR gate.
Boolean Algebra
Logic
operators
used to
form
Boolean
equations.
ASSOCIATIVE LAW
( A + B) + C = A + ( B + C )
(A B ) C = A ( B C )
DISTRIBUTIVE LAW
This law holds true only A ( B + C ) = ( A B) + ( A C )
in Boolean algebra A + ( B C ) = ( A + B) ( A + C )
© McGraw Hill LLC 26
Section 4.4
. . . use this
If you want to . . . instruction.
Know when matching bits in two different AND
words are both ON
Know when one or both matching bits in two OR
different words are ON
Know when one or the other bit of matching XOR
bits in two different words is ON
Reverse the state of bits in a word NOT
www.mheducation.com
© McGraw Hill LLC. All rights reserved. No reproduction or distribution without the prior written consent of McGraw Hill LLC.