13 SFC PROGRAM INSTRUCTIONS
13.1 SFC Control Instructions
1423
13
• These instructions batch-read (in units of the specified number of words starting from the specified step) 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 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 26 and the status of the steps (two words from step No.0) is 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, or if the non-existent step is specified as a start
step, undefined values are stored.
When the last step No. in the block is 26 and the status of the steps (two words from step No.0) is read to D0 and D1 (The
status of each step is stored in other bits.)
• If the instruction is executed while no SFC program exists, or if the block No. that does not exist or does not include the
read target data is specified, 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)
(s)+(n)-1
11111101000 01 100
(d)
(s)+(n)-2
(d)+(n)-1
(d)+(n)-2
b15 b0
00100001101 00 101
(d)+1
(s)
b15 b0
(s)+1
01100011100 01 001
01110010101 01 100
(1)
·
1 11 11101000 01 100
0 01 00001101 00 101
0 11 00011100 01 001
0 11 10010101 01 100
·
(n)
(n)
(s)
b15
S15 – S7 S6 – S4S13S14 S12 S11 S10 S9 S2S3 S1 S0
b0
00
b8 b5
D1
D0
b15 b0
D0 K2BMOV K4S0
?????
S0S15
S16S31
D1
D0
b15 b0
D0 K2BMOV
?????
S0S15
S16S31
BL0\K4S0