14. Exercise
Write a PLC program to implement the
conditional logic statements (a), (b) and (c)
below.
a) A PLC output is to switch on if any of three
inputs is switched on.
b) A PLC output is to switch on if any one of
three inputs is switched on but not two or more.
c) A PLC output is to switch on if any two
outputs are switched on, but not the third.
The logic of the rung above is such:• If Input1 is ON (or true) - power (logic) completes the circuit from the left rail to the right rail - and Output1 turns ON (or true). • If Input1 is OFF (or false) - then the circuit is not completed and logic does not flow to the right - and Output 1 is OFF (or false).
Lets Examine these slides together
Various inputs can be organised together to give a set output. This is usually termed as conditional logic. Consider the diagram shown and lets examine the logic behind it
Lets connect the circuit to a PLC as shown in the diagram above. Lets consider the implementation of that circuit in a PLC programming interface.
Can we build this ladder diagram....Demonstrate the normally closed contact
Lets take time to understand these exercises.
For example, when a start push button is pressed, the pneumatic cylinder shown in extends, remains extended for 5 seconds and then returns. Draw the PLC wiring diagram and the appropriate ladder logic.
Two counters can be combined to make a pulse generator. This is best illustrated by an example.
When the Start button in Fig 2.24 is pressed the cylinder in Fig 2.23 oscillates,extending for 2 s and returning for 1 s until the Stop button is pressed.