13 SFC PROGRAM INSTRUCTIONS
13.1 SFC Control Instructions
1417
13
Processing details
• 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.
Ex.
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.
Ex.
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.
Ex.
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
0
1
1
1
0
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
1
0
0
0
1
1
1
0
0
1
0
(1)
(2)
(3)
(s)
∙∙∙
∙∙∙
∙∙∙
b15
S15
–
S7 S6
–
S4
S13
S14
S12 S11 S10 S9
S2
S3
S1 S0
b0
0
0
b8
b5
D1
∙∙∙
b15
b0
D1
MOV
K4S16
?
?
?
?
?
S0∙∙∙S15
S16∙∙∙S31
D1
∙∙∙
b15
b0
D1
MOV
0
0
0
0
0
S0∙∙∙S15
S16∙∙∙S31
BL0\K4S16
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......