102
8 SFC PROGRAM
8.5 SFC Program Execution Order
SFC program processing sequence
Block execution sequence
While the SFC program is running, the actions of each step are executed sequentially starting from the initial step of an active
block.
An SFC program containing multiple blocks checks the state (active/inactive) of the blocks in ascending order of block
numbers (block 0 → block 1 → block 2).
An active block executes the actions of active steps in the block.
An inactive block checks for existence of a start request. If a start request exists, the block is activated and the active steps in
the block are executed.
Block 0 can be started automatically when "Auto-start block 0" is specified in "Start Conditions Setting" of the SFC setting.
With this setting, even if block 0 reaches the end step and becomes inactive, it will be restarted in the next scan. (Page 98
Start Conditions Setting)
Processing is performed in the following order.
(1) Processing of block 0 (BL0)
(2) Execution of the step in block 0 (BL0)
(3) Processing of block 1 (BL1)
(4) Execution of the initial step of block 1 (BL1)
(5) Processing of the next block
BS BL1
BS BL2
BL0 BL1
(1) (3) (5)
(2)
(4)