Mitsubishi MELSEC Q Series Programming Manual page 131

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(2) SET/RST instructions using the same device
(a) The SET instruction turns ON the specified device when the execution command is ON
and performs nothing when the execution command is OFF.
For this reason, when the SET instructions using the same device are executed two or
more times in one scan, the specified device will be ON if any one of the execution
commands is ON.
(b) The RST instruction turns OFF the specified device when the execution command is
ON and performs nothing when the execution command is OFF.
For this reason, when the RST instructions using the same device are executed two or
more times in one scan, the specified device will be OFF if any one of the execution
commands is ON.
(c) When the SET instruction and RST instruction using the same device are programmed
in one scan, the SET instruction turns ON the specified device when the SET execution
command is ON and the RST instruction turns OFF the specified device when the RST
execution command is ON.
When both the SET and RST execution commands are OFF, the ON/OFF status of the
specified device will not be changed.
[Ladder]
X0
X1
[Timing Chart]
END
ON
OFF
X0
X1
OFF
OFF
M0
When using a refresh type CPU module and specifying output (Y) in the SET/RST
instruction, the ON/OFF status of the device at the execution of the last instruction in the
scan is returned as the output (Y).
SET
M0
RST
M0
X0
SET
M0
X1
RST
M0
END
ON
ON
RST M0 is not executed
because X0 is OFF.
(M0 remains ON.)
M0 turns ON because X0 is ON.
X0
SET
M0
X1
RST
M0
END
M0 turns OFF because X1 is ON.
SET M0 is not executed
because X0 is OFF.
(M0 remains ON.)
1
2
3
4
2
6
7
8
3-41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents