- •1.1 TODO LIST
- •2. PROGRAMMABLE LOGIC CONTROLLERS
- •2.1 INTRODUCTION
- •2.1.1 Ladder Logic
- •2.1.2 Programming
- •2.1.3 PLC Connections
- •2.1.4 Ladder Logic Inputs
- •2.1.5 Ladder Logic Outputs
- •2.2 A CASE STUDY
- •2.3 SUMMARY
- •2.4 PRACTICE PROBLEMS
- •2.5 PRACTICE PROBLEM SOLUTIONS
- •2.6 ASSIGNMENT PROBLEMS
- •3. PLC HARDWARE
- •3.1 INTRODUCTION
- •3.2 INPUTS AND OUTPUTS
- •3.2.1 Inputs
- •3.2.2 Output Modules
- •3.3 RELAYS
- •3.4 A CASE STUDY
- •3.5 ELECTRICAL WIRING DIAGRAMS
- •3.5.1 JIC Wiring Symbols
- •3.6 SUMMARY
- •3.7 PRACTICE PROBLEMS
- •3.8 PRACTICE PROBLEM SOLUTIONS
- •3.9 ASSIGNMENT PROBLEMS
- •4. LOGICAL SENSORS
- •4.1 INTRODUCTION
- •4.2 SENSOR WIRING
- •4.2.1 Switches
- •4.2.2 Transistor Transistor Logic (TTL)
- •4.2.3 Sinking/Sourcing
- •4.2.4 Solid State Relays
- •4.3 PRESENCE DETECTION
- •4.3.1 Contact Switches
- •4.3.2 Reed Switches
- •4.3.3 Optical (Photoelectric) Sensors
- •4.3.4 Capacitive Sensors
- •4.3.5 Inductive Sensors
- •4.3.6 Ultrasonic
- •4.3.7 Hall Effect
- •4.3.8 Fluid Flow
- •4.4 SUMMARY
- •4.5 PRACTICE PROBLEMS
- •4.6 PRACTICE PROBLEM SOLUTIONS
- •4.7 ASSIGNMENT PROBLEMS
- •5. LOGICAL ACTUATORS
- •5.1 INTRODUCTION
- •5.2 SOLENOIDS
- •5.3 VALVES
- •5.4 CYLINDERS
- •5.5 HYDRAULICS
- •5.6 PNEUMATICS
- •5.7 MOTORS
- •5.8 COMPUTERS
- •5.9 OTHERS
- •5.10 SUMMARY
- •5.11 PRACTICE PROBLEMS
- •5.12 PRACTICE PROBLEM SOLUTIONS
- •5.13 ASSIGNMENT PROBLEMS
- •6. BOOLEAN LOGIC DESIGN
- •6.1 INTRODUCTION
- •6.2 BOOLEAN ALGEBRA
- •6.3 LOGIC DESIGN
- •6.3.1 Boolean Algebra Techniques
- •6.4 COMMON LOGIC FORMS
- •6.4.1 Complex Gate Forms
- •6.4.2 Multiplexers
- •6.5 SIMPLE DESIGN CASES
- •6.5.1 Basic Logic Functions
- •6.5.2 Car Safety System
- •6.5.3 Motor Forward/Reverse
- •6.5.4 A Burglar Alarm
- •6.6 SUMMARY
- •6.7 PRACTICE PROBLEMS
- •6.8 PRACTICE PROBLEM SOLUTIONS
- •6.9 ASSIGNMENT PROBLEMS
- •7. KARNAUGH MAPS
- •7.1 INTRODUCTION
- •7.2 SUMMARY
- •7.3 PRACTICE PROBLEMS
- •7.4 PRACTICE PROBLEM SOLUTIONS
- •7.5 ASSIGNMENT PROBLEMS
- •8. PLC OPERATION
- •8.1 INTRODUCTION
- •8.2 OPERATION SEQUENCE
- •8.2.1 The Input and Output Scans
- •8.2.2 The Logic Scan
- •8.3 PLC STATUS
- •8.4 MEMORY TYPES
- •8.5 SOFTWARE BASED PLCS
- •8.6 SUMMARY
- •8.7 PRACTICE PROBLEMS
- •8.8 PRACTICE PROBLEM SOLUTIONS
- •8.9 ASSIGNMENT PROBLEMS
- •9. LATCHES, TIMERS, COUNTERS AND MORE
- •9.1 INTRODUCTION
- •9.2 LATCHES
- •9.3 TIMERS
- •9.4 COUNTERS
- •9.5 MASTER CONTROL RELAYS (MCRs)
- •9.6 INTERNAL RELAYS
- •9.7 DESIGN CASES
- •9.7.1 Basic Counters And Timers
plc karnaugh - 7.5
7.3 PRACTICE PROBLEMS
1. Setup the Karnaugh map for the truth table below.
A |
B |
C |
D |
Result |
|
|
|
|
|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
2. Use a Karnaugh map to simplify the following truth table, and implement it in ladder logic.
A |
B |
C |
D |
X |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
plc karnaugh - 7.6
3. Write the simplest Boolean equation for the Karnaugh map below,
|
|
|
|
|
CD |
CD |
CD |
CD |
|
|
|
|
|
||||
AB |
1 |
0 |
0 |
1 |
||||
|
|
|
|
|
|
|
|
|
AB |
0 |
0 |
0 |
0 |
||||
|
|
|
|
|
|
|
|
|
AB |
0 |
0 |
0 |
0 |
||||
|
|
|
|
|
|
|
|
|
AB |
0 |
1 |
1 |
0 |
4.Given the truth table below find the most efficient ladder logic to implement it. Use a structured technique such as Boolean algebra or Karnaugh maps.
A |
B |
C |
D |
X |
Y |
|
|
|
|
|
|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
|
|
|
|
|
|
plc karnaugh - 7.7
5. Examine the truth table below and design the simplest ladder logic using a Karnaugh map.
D |
E |
F |
G |
Y |
|
|
|
|
|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
|
|
|
|
|
6.Find the simplest Boolean equation for the Karnaugh map below without using Boolean algebra to simplify it. Draw the ladder logic.
|
|
|
|
|
|
ABC |
ABC |
ABC |
ABC |
ABC |
ABC |
ABC |
ABC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
DE |
|||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
DE |
|||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DE |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
|||
DE |
|||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7. Given the following truth table for inputs A, B, C and D and output X. Convert it to simplified
plc karnaugh - 7.8
ladder logic using a Karnaugh map.
A |
B |
C |
D |
X |
|
|
|
|
|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
|
|
|
|
|
8. Consider the following truth table. Convert it to a Karnaugh map and develop a simplified
plc karnaugh - 7.9
Boolean equation (without Boolean algebra). Draw the corresponding ladder logic.
|
|
inputs |
|
|
output |
||
A |
B |
C |
D |
E |
|
X |
|
|
|||||||
|
|
|
|
|
|
|
|
0 |
0 |
0 |
0 |
0 |
|
|
|
0 |
0 |
0 |
0 |
1 |
|
|
|
0 |
0 |
0 |
1 |
0 |
|
|
|
0 |
0 |
0 |
1 |
1 |
|
|
|
0 |
0 |
1 |
0 |
0 |
|
|
|
0 |
0 |
1 |
0 |
1 |
|
|
|
0 |
0 |
1 |
1 |
0 |
|
1 |
|
0 |
0 |
1 |
1 |
1 |
|
1 |
|
0 |
1 |
0 |
0 |
0 |
|
|
|
0 |
1 |
0 |
0 |
1 |
|
|
|
0 |
1 |
0 |
1 |
0 |
|
1 |
|
0 |
1 |
0 |
1 |
1 |
|
1 |
|
0 |
1 |
1 |
0 |
0 |
|
|
|
0 |
1 |
1 |
0 |
1 |
|
|
|
0 |
1 |
1 |
1 |
0 |
|
|
|
0 |
1 |
1 |
1 |
1 |
|
1 |
|
1 |
0 |
0 |
0 |
0 |
|
|
|
1 |
0 |
0 |
0 |
1 |
|
|
|
1 |
0 |
0 |
1 |
0 |
|
|
|
1 |
0 |
0 |
1 |
1 |
|
|
|
1 |
0 |
1 |
0 |
0 |
|
|
|
1 |
0 |
1 |
0 |
1 |
|
|
|
1 |
0 |
1 |
1 |
0 |
|
|
|
1 |
0 |
1 |
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 |
1 |
0 |
1 |
|
1 |
|
1 |
1 |
1 |
1 |
0 |
|
1 |
|
1 |
1 |
1 |
1 |
1 |
|
1 |
|
|
|
|
|
|
|
|
|
plc karnaugh - 7.10
9. Given the truth table below
A |
B |
C |
D |
Z |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
a)find a Boolean algebra expression using a Karnaugh map.
b)draw a ladder diagram using the truth table (not the Boolean expression).
10.Convert the following ladder logic to a Karnaugh map.
|
A |
|
|
|
|
C |
|
|
|
|
|
|
|
|
A |
X |
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
B |
|
|
|
|
|
|
|
|
|
|
|
|
D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11.a) Construct a truth table for the following problem.
i)there are three buttons A, B, C.
ii)the output is on if any two buttons are pushed.
iii)if C is pressed the output will always turn on.
b)Develop a Boolean expression.
c)Develop a Boolean expression using a Karnaugh map.
12.Develop the simplest Boolean expression for the Karnaugh map below,
a)graphically.
b)by Boolean Algebra
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A B |
AB |
AB |
|
AB |
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
CD |
|
1 |
|
|
|
|
|
|
|
1 |
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
|
1 |
|
|
|
CD |
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C |
D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
1 |
|
||
CD |
|
|
|