Professional Documents
Culture Documents
June, 2017
1
I. OBJECTIVES
The objectives are to be met through the actual lab work as well as through the pre-lab preparation
and reading of the recommended and other material.
II. PREPARATION
Read through the document PLC_1.pdf available on the eLearning portal.
III. EQUIPMENT
The main equipment to be used will include:
PLC Trainer (model: PLC-8/EV). This trainer uses the S7-200 Siemens PLC. A description
has been included in PLC-8-EV.pdf available on the eLearning portal.
Simulator of traffic light control at a road junction (model: SEMDI/EV)
A desktop computer with STEP 7-micro/WIN installed.
2
IV. PREAMBLE
1. The diagrams below show some logic functions that can be achieved using ladder diagrams.
3
Implement the logic functions shown above using the switches of the PLC-8/EV as digital inputs
and relying on the display LEDs of the actual PLC to determine the digital outputs.
Based on an understanding of the basic logic functions and in conjunction with the Control Unit
of the TSM-700/EV implement and test ladder logic to achieve the following:
When S1 is pressed once, the lamp for S1 comes on and stays on until S2 is pressed once.
When S1 and S3 are pressed simultaneously they both come on and stay on until S2 and
S4 are both pressed simultaneously i.e. for S1 and S3 to come on, they both have to be
pressed; similarly, for S1 and S3 to go off once turned on, both S2 and S4 have to be
pressed.
In both cases, pressing the emergency stop (S0) should turn of any lamp that is on.
4
V. TRAFFIC LIGHT CONTROL
Further preparation
See the Appendix for more material to read on.
Equipment Description
The equipment simulates the traffic signal operation in a 4-roads crossing. The different
components of the electrical circuit to be controlled by PLC are mounted on a Bakelite silk-screen-
printed panel, with the relative signaling and commands.
5
Work Schedule
1. Based on the Functional Description given below, draw a flowchart for the operation of the
lights at the road junction. Feel free to make reasonable assumptions, if necessary.
2. Complete the assignment list (pg. 7) by specifying appropriate memory addresses. NB: other
symbols in addition to the ones specified in the assignment list may be used if necessary.
3. Design the control task in LAD/FBD/STL.
4. Clearly arrange and connect the programming device, the programmable controller and the
required simulators at the training setup.
5. Implement the designed program.
6. Function-test the control with the simulators and correct any errors.
7. Save the function-tested control program on the programming device
8. Document the function-tested control program.
6
Assignment list
OPERAND
(MEMORY SYMBOL COMMENT
ADDRESS)
To initialize the system; to confirm a change
I_RESET_TRAFFIC_LIGHT
from day to night and vice versa
I_DAY_NIGHT day/night switch
Q_RED1 Output for red light of Traffic Light 1
Q_YELLOW1 Output for yellow light of Traffic Light 1
Q_GREEN1 Output for green light of Traffic Light 1
Q_RED2 Output of red light of Traffic Light 2
Q_YELLOW2 Output of yellow light of Traffic Light 2
Q_GREEN2 Output of green light of Traffic Light 2
7
APPENDIX: MEMORY, USE OF TIMERS AND COMPARISON
To learn more about timers and compare instructions read the following material
Accessing data in the memory areas: pg. 27 ff
Timers (especially TON): pg. 196 – 200 of S7-200 Manual
Compare Instructions: pg 96-97 of S7-200 Manual
These are the Instruction Sets for those commands. The manual can be found on the elearning
portal or easily be downloaded from the internet. If you google “S7-200 manual” the first result is
a pdf of the manual. Be sure to read through those pages, including the given examples and timing
diagrams of the timers.
Feel free to read other parts of the Instruction Set (chapter 6) or of the manual. It’s always a good
point of reference whenever in doubt.
NB: an important part of PLC training is learning how to read product documentation, read through
the following material: