4 - 45 4 - 45
4 SFC PROGRAM CONFIGURATION
MELSEC-Q
(3) Specify the transition as described below.
(a) In the case of SFC program
1) Use "Sn" when specifying the step in the current block.
2) Use "BLm\Sn" when specifying the step in another block in the SFC program.
(b) In the case of sequence program
1) Use "BLm\Sn" when executing the step activation check instruction.
2) When the block number is not specified, specify the block number with the BRSET
instruction.
(4) If the transition condition in question does not exist in the SFC program, it will remain OFF.
[Program Examples]
(1) The following program turns ON Y20 when transition condition 5 of block 3 is specified for a
forced transition.
When step is designated by operation output of block 3
aTR5
oY20
When step is designated by operation output of other than block 3
aBL3\TR5
oY20
When step is designated by sequence program
BL3\TR5
Y20
Related Instructions
1) SFC control instructions
• Transition control instructions
(sTRn, sBLm\TRn,
rTRn, rBLm\TRn)...........................................................See Section 4.4.9.
• Block switching instruction (BRSET) .............................See Section 4.4.11.
POINTS
This instruction checks, from the first sequence step of the specified block in series,
whether or not the specified transition condition number is existed.
Because of this, processing time of the instruction differs depending on the
program capacity of the specified block (number of sequence steps), a maximum of
hundred and several tens ms may be taken.
In case of occurring WDT error (error code: 5001), change the WDT setting value
with the PLC RAS setting in the PLC parameter.