Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 42

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

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.
X0
X1
END
ON
OFF
X0
X1
OFF
OFF
M0
(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.
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.
2 PRECAUTIONS ON PROGRAMMING
40
2.3 Operations Arising when the OUT, SET/RST, and PLS/PLF Instructions of the Same Device are Used
SET
M0
RST
M0
X0
SET
M0
X1
RST M0
END
OFF
ON
ON
(2)
(1)
X0
SET M0
X1
RST M0
END
OFF
(4)
(3)

Hide quick links:

Advertisement

loading