6-8
Primer: S7-300 Programmable Controller, Quick Start
C79000-G7076-C500-01
Enter the STL statements listed below for the TLIGHT sample program
network by network in your FC1. Proceed as described in the table. You have
already defined the required addresses in Chapter 2 of the Primer.
Network 1: Detecting green request for pedestrians
A(
A(
O I 0.0
O I 0.1
)
AT 6
O M 0.0
)
AN T 5
= M 0.0
Network 2: Green phase for vehicles
AN M 0.0
= Q 0.7
Network 3: Timer start for yellow phase for vehicles
A M 0.0
L S5T#3S
SI T 2
Network 4: Yellow phase for vehicles
A M 0.0
A(
ON T 2
OT 4
)
= Q 0.6
Network 5: Red phase for vehicles
A M 0.0
AT 2
= Q 0.5
Network 6: Timer start for green phase for pedestrians
A Q 0.5
L S5T#10S
SI T 3
Network 7: Green phase for pedestrians
A Q 0.5
AN T 3
= Q 0.1
STL Statements
for FC1
Programming Logic Blocks with STEP 7