437
5-37-11 SFC Control Program Example
The operation of the SFC control instructions used in the following programming
example is described following the program.
ST0010 02
TN0010
ST0020 01
TN0020
ST0030 01
TN30
ST0040 03
ST0120 03
TN0120
0400ST0130
ST0400 01
TN0500
ST0500 01
TN0510
ST0510 03
TN0520
ST0700 03
ST0600 04
TN0610
ST0610 01
TN0620
TN0600
ST
0130
0000
00
0000
01
ST
0500
T0001
0000
02
(211)
jSP 0500
(001)
END
(213)
jSF 0500
(210)
jSA 0500 #0400
(030)
MOV 1000 D04000
TIM 0001 #0060
(212)
jSR 0500
Action Program for AC0020 (ST0020)
0000
01
T0001
T0002
(214)
jSE 0500
(001)
END
(040)
XFER #0100 D0400 D10000
TIM 0002 #0060
TIM 0002 #0060
(215)
jSOFF 0500
Action Program for AC0500 (ST0500)
Main SFC Program
Subchart Called
from ST 0130
Action Block for ST0020
AQ SV Action FV
N
********
AC0020
********
Action Block for ST0030
AQ SV Action FV
N
********
AC0030
********
Action Block for ST0500
AQ SV Action FV
S
********
AC0050
********
SA(210) in AC0020 When subchart ST0400
(i.e., the subchart with step ST0400) is active,
SA(210) changes the status of ST0500 in the subchart
to execute status. (Subchart ST0400 is executed
while ST0130 is active.)
SP(211) in AC0020 SP(211) changes the status
of ST0500 to pause.
SR(212) in AC0020 SR(212) changes the status
of ST0500 back from pause to execute.
SF(213) in AC0020 SF(213) changes the status
of ST0500 to halt. Execution of action AC0500 will
continue because it has an “S” AQ.
SE(214) in AC0500 SE(214) changes the status
of ST0500 to inactive. Execution of action AC0500 will
continue because it has an “S” AQ.
SOFF(215) in AC0500 SOFF(215) changes the sta-
tus of ST0500 to inactive. The action in the step is
stopped and reset even though is has an S-group AQ.
SFC Control Instructions Section 5-37