40
2 PRECAUTIONS ON PROGRAMMING
2.3 Operations Arising when the OUT, SET/RST, and PLS/PLF Instructions of the Same Device are Used
If SET/RST instructions of the same device are used
■
For SET instructions
The SET instruction turns on the specified device if the execution command is on, and causes no operation if it is off.
Thus, if two or more SET instructions of the same device are executed during one scan, the specified device turns on even if
one execution command is on.
■
For RST instructions
The RST instruction turns on the specified device if the execution command is off, and causes no operation if it is off.
Thus, if two or more RST instructions of the same device are executed during one scan, the specified device turns on even if
one execution command is off.
■
If the SET and RST instructions of the same device exist in one scan
If the SET and RST instructions of the same device exist in one scan, the SET instruction turns on the specified device if the
execution command is on, and turns off the specified device if it is on.
If both the SET and RST instructions are off, the on/off state of the specified device will be unchanged.
If output (Y) is specified using a SET/RST instruction, the on/off state of the last SET/RST instruction executed during the one
scan will be output.
(1) Since X0 is on, M0 turns on.
(2) Since X1 is off, M0 remains on. (The RST instruction results in non-processing.)
(3) Since X0 is off, M0 remains on. (The SET instruction results in non-processing.)
(4) Since X1 is on, M0 turns off.
RST
SET
M0
X1
X0
M0
ON
X1
X0
RST M0
SET M0
RST M0
X1
X0
SET
ON
OFF
OFF
OFF
M0
X1
X0
END
END
END
ON
(1)
(2)
(3)
(4)
OFF
OFF
M0
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......