1412
13 SFC PROGRAM INSTRUCTIONS
13.1 SFC Control Instructions
■Execution condition
■Description, range, data type
■Applicable devices
*1 Only S can be used.
• These instructions check whether the specified step in the specified block is active or not.
• The status (on or off) of each contact will be as follows depending on the status (active or inactive) of the specified step.
• The following table summarizes specification methods of steps.
• Specify the block No. within the range of 0 to 319, and the step No. within the range of 0 to 511. If the block No. or the step
No. specified is out of range, both of the normally open contact and normally closed contact turn off.
• Execute the instruction only when an SFC program exists (SM320 is on) and SM321 is on.
• The status (on or off) of the contact of a step specified by S, which is specified without a block No., on the sequence
program, cannot be monitored on the engineering tool. However, the operation is performed. If the contact is on in the CPU
module, coil output turns on.
• When no SFC program exists (SM320 is off) or SM321 is off, the status (on or off) of the contact will be as follows:
Instruction Execution condition
LD
LDI
AND
ANI
OR
ORI
Every scan
Operand Description Range Data type Data type (label)
(s) Device used as a contact Bit ANY_BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
(BL\
S)
X, Y, M, L,
SM, F, B, S,
SB, FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
*1
Status of the specified step Contact of the normally open contact
instruction
Contact of the normally closed contact
instruction
Active On Off
Inactive Off On
Program Specification method
SFC program Specifying a step in current block Use S.
Specifying a step in another block Use BL\S
Sequence program Use BL\S
When a block No. is not specified, specify a block No. by using the BRSET instruction. If a
block No. is not specified by using the BRSET instruction, the target block will be block 0.
Specified block No. Specified step No. Contact of the normally open
contact instruction
Contact of the normally closed
contact instruction
0 to 319 0 to 511 Off On
Less than 0, 512 or more (out of
range)
Off Off
Less than 0, 320 or more (out of
range)
0 to 511 Off Off
Less than 0, 512 or more (out of
range)
Off Off