Below displays Selective Parallel Branch / Merge programming, individually using (a) SFC and (b) STL in writing
the program, in order to comparison reference.
S0
S10
S20
S21
S22
S10
X0
TRAN S10
SET
ALT M0
Y0
SET
Y3
T0
K20
T0
M0
T0
TRAN S20
T0
M0
TRAN S30
S30
RST
Y3
Y5
T1
K80
T1
TRAN S21
T2
T2
T2
T3
K50
K5
M9000
T3
TRAN S22
Y4
T4
K50
T4
TRAN S10
S31
S32
RST
Y0
Y2
T1
K100
T1
TRAN S31
T2
T2
T2
T3
K50
K5
ALT Y5
ALT Y2
M9000
T3
TRAN S32
Y1
T4
K50
T4
TRAN S10
When the contact T0=ON, alters the ON/OFF status of M0.
The active step transfers to either S20 (M0=ON, B group go) or
S30 (M0=OFF, A group go).
M9002
S F C
SET S0
(a) Programming by the SFC
116
Ladder
Diagram
in the main
program
When X0=ON, the active step transfers to S10.
Traffic_Light
Activate the step S0 in the SFC program.
The SFC is named “Trafc_Light”.
Set A red light ON.
Set B red light ON.
Activate the coil of 2 Sec. timer.
When T0=ON &
M0=ON, transfer
to S20.
Reset B red
light to OFF.
B green
light is lit
for 8 Sec.
When the contact
T1=ON,
transfer to S21.
The B green
light ash
for
5 times,
by 1 Sec.
cycle.
When the
contact T3=ON,
transfer to S22.
B yellow
light is lit
for 5 Sec.
When the
contact
T4=ON,
transfer to S10.
When
T0=ON &
M0=OFF,
transfer to S30.
Reset A
red light
to OFF
A green
light is
lit for
10 Sec.
When the
contact
T1=ON,
transfer to S31.
The A
green
light ash
for 5 times,
by 1 Sec.
cycle.
When the
contact
T3=ON,
transfer to S32.
A yellow
light is lit
for 5 Sec.
When the
contact
T4=ON,
transfer to S10.