1420
13 SFC PROGRAM INSTRUCTIONS
13.1 SFC Control Instructions
• These instructions batch-read (in units of 32-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, 8, 18, and 29 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 26 and the status of the steps (No.0 to No.31) are read to D0 and 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 (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+31
(s)+1
11101010101 00 100
(d)
(s)
b15
b15 b0
b0
01110010101 01 100
(d)+1
11101010101 00 100
01110010101 01 100
(1)
(2)
(3)
S31 S23 S22 S21 –– S20S30 S28 S27 S26 S25 S24 S19 S17 S16
00
(s)
b15
S15 – S7 S6 – S4S13S14 S12 S11 S10 S9 S2S3 S1 S0
b0
00
b8 b5
(s)+1
D1
D0
b15 b0
D0DMOV K8S0
?????
S0S15
S16S31
D1
D0
b15 b0
D0
DMOV
00000
S0S15
S16S31
BL0\K8S0