The example above via slightly modify that could execute the “general trafc light control” or “trafc light adds with
yellow ash control”. The select signal from a switch is to the X0 input.
S0
S10
S20
S30
S21
S31
S22
S32
S0
X0
TRAN S10
ZRST Y0 Y5
S40
If X0=ON, executes the
“general traffic light control”.
Clear all the outputs Y0~Y5 to OFF.
X0
TRAN S40
T2
T2
T2
K5
ALT Y1
ALT Y4
X0
TRAN S0
If X0=OFF, executes the
“trafc light adds with yellow
ash control”.
Switch the states of A and
B yellow lights every 0.5
Sec. Those instructions
achieve the purpose of 1
Sec. frequency yellow light
ashing.
When X0=ON, transfer to S0.
117