2-6
Primer: S7-300 Programmable Controller, Quick Start
C79000-G7076-C500-01
If input I 0.0 or I 0.1 is set by the pedestrian green request, the following
occurs:
S The traffic light switches from Q 0.7 (green) via Q 0.6 (yellow) to Q 0.5
(red) and
S The pedestrian light switches from Q 0.0 (red) to Q 0.1 (green)
The outputs are set alternately by the timers defined in the program.
Figure 2-5 shows the signal states of the inputs and outputs during the
TLIGHT sample program sequence:
Signal states
Q 0.5: Veh_Red
Q 0.6: Veh_Yel
2 6 10 12 14 16 18 20 22 24 26 28
Vehicle lights
Pedestrian lights
84300
Q 0.1: Ped_Green
Time in s
I 0.0 or I 0.1:
Switch right or left
Q 0.7: Veh_Green
Q 0.0: Ped_Red
0 = off
1 = on
1
0
1
0
1
0
1
0
1
0
1
0
Figure 2-5 Signal States of the Inputs and Outputs During the TLIGHT Sample Program Sequence
Sample Program
Sequence
Defining and Structuring the Control Task