Lecture 007
Lecture 007
In PLC: Each input and output device must have its own address.
(To allow PLC to know where they are physically connected.)
These relays DO NOT physically exist in the PLC unit but rather they are bits in a register
that you can use to SIMULATE a relay.
You can use the contacts of these relays as many times as required (limited with RAM).
Device Name Address
The program to solve this problem is as follow:
Low level sensor 0000
High level sensor 0001
Motor 0500
Internal relay 1000
Program Scan Scan 1
After maybe 2000 scans, the oil level rises above the high-level sensor, so it becomes open (False):
After maybe 2050 scans the oil level falls below the high-level sensor and it will become true again.
Even though the high-level sensor became true there still is NO continuous true
logic path and therefore coil 1000 remains False!
Truck gate example
For the automatic door shown next, design ladder program to open the door
when S1 is off and the door stay opened until S2 become on again
For the automatic door shown next,
design ladder program to open the door
when S1 is off and the door stay opened
until S2 become on again
For the automatic door shown next,
design ladder program to open the door
S1 S2 M
when S1 is off and the door stay opened 1 1 0
until S2 become on again
For the automatic door shown next,
design ladder program to open the door
S1 S2 M
when S1 is off and the door stay opened 1 1 0
until S2 become on again
0 1 1
For the automatic door shown next,
design ladder program to open the door
S1 S2 M
when S1 is off and the door stay opened 1 1 0
until S2 become on again
0 1 1
0 0 1
For the automatic door shown next,
design ladder program to open the door
S1 S2 M
when S1 is off and the door stay opened 1 1 0
until S2 become on again
0 1 1
0 0 1
1 0 1
For the automatic door shown next,
design ladder program to open the door
S1 S2 M
when S1 is off and the door stay opened 1 1 0
until S2 become on again
0 1 1
0 0 1
1 0 1
For the automatic door shown next,
design ladder program to open the door
when S1 is off and the door stay opened
until S2 become on again
S1 S2 M S1 S2 M
1 1 0 0 0 1
Rearrange
0 1 1 0 1 1
0 0 1 1 0 1
1 0 1 1 1 0
For the automatic door shown next,
design ladder program to open the door
when S1 is off and the door stay opened
until S2 become on again
S1 S2 M
0 0 1
0 1 1
1 0 1
1 1 0
This is a NOT AND gate truth table
Input 1
Output
And
Input 2
A B Out
0 0 0
0 1 0
1 0 0
1 1 1
For the automatic door shown next,
design ladder program to open the door
when S1 is off and the door stay opened
until S2 become on again
S1 S2 M
0 0 1
0 1 1
1 0 1 S1 S2 y
1 1 0
y M
Control purpose: Bottle orientation detector example
Detecting the standing bottles on the conveyor and pushing the fallen bottles out of the conveyor
Device Function
X0 ON when the detected input signal from the bottle-bottom is shaded
X1 ON when the detected input signal from the bottle-neck is shaded
Y0 Pneumatic pushing pole
Control purpose:
Detecting the standing bottles on the conveyor and pushing the fallen bottles out of the conveyor
Device Function
X0 ON when the detected input signal from the bottle-bottom is shaded
X1 ON when the detected input signal from the bottle-neck is shaded
Y0 Pneumatic pushing pole
X0 X1 Y0