Lecture 004 - PLC
Lecture 004 - PLC
1) Show how can you construct an equivalent to AND gate using one OR gate and
some NOT inverters.
2) Write down truth table for each one of the following Boolean expressions:
Q = ( AB ) + (CD )
Q = ( A + B )(B + C )
Q = ( ABC ) + (A BC )
Q = (C BA) + (CB A) + (CBA)
Q = AB + B + BC
Q = (A + B)B + BC
Q = ABC + BC + A
3) Design a logic circuit to be fitted in front of a car driver to give him a warning
light message when:
• Any one of the 4 door sensors are ON (sensors: C, D, E, and F).
• The oil sensor (A) is OFF (low oil).
• The Fuel sensor (B) is OFF (low fuel).
C D
A B Warning
E F
4) Design a logic circuit to switch a security alarm On when:
• The window sensor (B) is on (Window open), and no key is inside the
door (C sensor=off).
• The door is open (sensor A is on), and no key is inside the door (C
sensor=off).
A
Alarm
5) Write down truth table for each one of the following logic circuits:
Basic Digital Logic ﺟﺎﻣﻌﺔ ﺑﻨﮭﺎ Problems sheet 1
PLC course ھﻨﺪﺳﺔ ﺷﺒﺮا Page 2 of 2
6) Using Karnaugh map, find and draw digital logic circuits for each one of the
following truth tables:
A B C Q A B C D Q A B C D Q
0 0 0 0 0 0 0 0 0 0 0 0 0 1
0 0 1 1 0 0 0 1 0 0 0 0 1 1
0 1 0 0 0 0 1 0 0 0 0 1 0 1
0 1 1 1 0 0 1 1 0 0 0 1 1 1
1 0 0 1 0 1 0 0 0 0 1 0 0 1
1 0 1 1 0 1 0 1 1 0 1 0 1 0
1 1 0 0 0 1 1 0 1 0 1 1 0 0
1 1 1 0 0 1 1 1 1 0 1 1 1 0
1 0 0 0 1 1 0 0 0 0
1 0 0 1 1 1 0 0 1 0
1 0 1 0 1 1 0 1 0 0
1 0 1 1 0 1 0 1 1 1
1 1 0 0 0 1 1 0 0 1
1 1 0 1 0 1 1 0 1 1
1 1 1 0 0 1 1 1 0 1
1 1 1 1 0 1 1 1 1 1