Documente Academic
Documente Profesional
Documente Cultură
EQUIPMENT
1. PLC.
2. USB wire connection PLC and computer.
3. Power supply to the PLC.
4. Computer.
5. Simatic Manager ( PLC Programming Software)
6. Lamp
SCHEMATIC DIAGRAM
1. SR memory 2. RS memory
2. 3 Lamp Operation
S1 Switch 1 (open and close)
S2 Switch 2 (open and close)
S3 Switch 3 (open and close)
S4 Switch 4 (stop button)
K1 Relay (normally open)
K2 Relay (normally open)
K3 Relay (normally open)
PLC PROGAMMING
Task 1: SR memory
Figure 2: SW 1 trigger ON
RESULT
Task 2: RS memory
• LAD (Ladder Diagram)
Explanation:
We assume E124.2 is switch button 1 (S1), E124.3 is switch button
2 (S2), and output device (lamp) is A124.2. RS memory is opposite
of SR memory. If we trigger on S1, the lamp will turn ON in
latching mode (holding mode). Then when we trigger S2, all
electricity in the circuit will cut off and the lamp will turn off. The
concept of RS memory same like SR memory. But the difference
of this two memory is the location to trigger on or off the output
devices.
• S2 in normal condition
• S3 in normal condition
• When S1 trigger ON
• When S2 trigger ON
• When S3 trigger ON
• FBD (Function Block Diagram)
• STL (Statement List)
RESULT
Red Yellow Green
Lamp Lamp Lamp
Switch 1 0 1 0 0 0
Switch 2 0 0 1 0 0
Switch 3 0 0 0 1 0
Switch 4
1 1 1 1 0
(close)
Relay 1
0 1 0 0 0
(open)
Relay 2
0 0 1 0 0
(open)
Relay 3
0 0 0 1 0
(open)
Output device 0 1 1 1 0
Switch 1
1 0 1 1 1
(close)
Switch 2
1 1 0 1 1
(close)
Switch 3
1 1 1 0 1
(close)
Task 3 Explanation:
We assume that E124.1 is S1, E124.2 is S2, E124.3 is S3, and the
output device for red lamp is A124.4, yellow lamp is A124.5, and
green lamp is A124.6 and the Stop button is E124.0. When we
trigger ON the S1, all the output device (yellow and Green lamp)
will turn off. Then when we trigger ON S2, all the output device
(red and green lamp) will turn off. Lastly, when we trigger ON the
S3, the Red and yellow lamp will turn off. This is because there
have connection between these lamps to make only one lamp will
turn ON in one time. When we trigger on Stop button, all the lamp
and all the electricity in this circuit will turn off and cut out
• When S1 Trigger on
Switch 1 0 1 0 0 0
Switch 2 0 0 1 0 0
Switch 3 0 0 0 1 0
Switch 4
1 1 1 1 0
(close)
Relay 1
0 1 0 0 0
(open)
Relay 2
0 0 1 0 0
(open)
Relay 3
0 0 0 1 0
(open)
Output device 0 1 1 1 0
Switch 1
1 0 1 1 1
(close)
Switch 2
1 1 0 1 1
(close)
Switch 3
1 1 1 0 1
(close)
We assume that E124.1 is S1, E124.2 is S2, E124.3 is S3, and the
output device for red lamp is A124.4, yellow lamp is A124.5, and
green lamp is A124.6 and the Stop button is E124.0. When we
trigger ON the S1, all the output device (yellow and Green lamp)
will turn off. Then when we trigger ON S2, all the output device
(red and green lamp) will turn off. Lastly, when we trigger ON the
S3, the Red and yellow lamp will turn off. This is because there
have connection between these lamps to make only one lamp will
turn ON in one time. When we trigger on Stop button, all the lamp
and all the electricity in this circuit will turn off and cut out.