Below displays Simultaneously Parallel Branch / Merge programming, individually using (a) SFC and
(b) STL in writing the program, in order to comparison reference.
S0
S10
X0
TRAN S10
Y0
Y3
T0
K20
T0
TRAN S20 S30
S20 S30
Y5
T1
K80
T1
TRAN S21
S21
S31
T2
T2
T2
T3
K50
K5
ALT Y5
M9000
T3
TRAN S22
S22
S32
Y4
T4
K50
T4
TRAN S23
S23
S33
Y3
T5
K20
T9
TRAN S10
S10
Y0
T5
TRAN S31
Y2
T6
K100
T6
TRAN S32
Y1
T9
K50
T7
T7
T7
T8
K50
K5
ALT Y2
M9000
T8
TRAN S33
A red light is lit.
A green light is lit
for 10 Sec.
The A green light
ash for 5 times,
by 1 Sec. cycle.
A yellow light is lit
for 5 Sec.
M9002
SFC
SET S0
(a) Programming by the SFC
When X0=ON, transfer the active step to S10.
When the contact T9=ON, the active step transfers to S10.
When the contact
T5=ON, transfer to S31.
When the contact
T6=ON, transfer to S32.
When the contact
T8=ON, transfer to S33.
114
Traffic_Light
Ladder
Diagram
in the main
program
Activate the step S0 in the SFC program.
The SFC is named “Trafc_Light”.
A red light is lit.
B red light is lit.
Activate the coil of 2 Sec. timer.
When the contact T0=ON, the active step transfers to both S20 and S30.
B green light
is lit for 8 Sec.
If contact T1=ON,
transfer to S21.
The B green light
ash for 5 times,
by 1 Sec. cycle.
If contact T3=ON,
transfer to S22.
B yellow light
is lit for 5 Sec.
If contact T4=ON,
transfer to S23.
B red light is
lit. T5's contact
ON after 2 Sec.