13 SFC PROGRAM INSTRUCTIONS
13.1 SFC Control Instructions
1417
13
• These instructions batch-read (in units of 16-bit binary data) the status (active or inactive) of steps in the specified block.
• When a block is not specified, the status (active or inactive) of the following block is read.
• The read data are stored in the device specified by (d). When the step is active, 1 is stored. When the step is inactive, 0 is
stored.
• When there is a missing step No., 0 is stored in the corresponding bit.
When the step No.5 and No.8 are missing in the specified block (The status of each step is stored in other bits.)
• If no block is specified and the read target range exceeds the maximum step No. in the block, undefined values are stored.
When the last step No. in the block is S26 and the status of steps (S16 to S31) are read to D1. (The status of each step is
stored in other bits.)
• If the read target range exceeds the number of steps in the specified block, 0 is stored in the bits exceeding the existing
step No.
When the last step No. in the block is 26 and the status of steps (No.16 to No.31) are read to D1 (The status of each step is
stored in other bits.)
• If the block No. that does not exist or does not include the read target data is specified, or if the specified block No. is
correct but the non-existent step is specified, 0 is read and stored in all bits.
• If the instruction is executed while no SFC program exists, 0 is read and stored in all bits.
• Sequence program: Block 0
• SFC program (within the action): Block where the instruction is executed (current block)
(1) Device specified by S
(2) S+1
(3) S+15
(d)
(s)
b15
b15 b0
b0
01110010101 01 100
101 01 1000 11 10010
(1)
(2)(3)
(s)
b15
S15 – S7 S6 – S4S13S14 S12 S11 S10 S9 S2S3 S1 S0
b0
00
b8 b5
D1
b15 b0
D1MOV K4S16
?????
S0S15
S16S31
D1
b15 b0
D1MOV
00000
S0S15
S16S31
BL0\K4S16