Mitsubishi MELSEC QS Series Programming Manual page 80

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

SET
Operation Error
(1) There are no operation errors associated with the SET instruction.
Program Example
(1) The following program sets Y8B (ON) when X8 goes ON, and resets Y8B (OFF) when X9
goes ON.
[Ladder Mode]
(2) The following program sets the value of D0 bit 5 (b5) to 1 when X8 goes ON, and set the bit
value to 0 when X9 goes ON.
[Ladder Mode]
Remark
5-28
5.3 Output Instruction
5.3.5 Setting devices (except for annunciators) (SET)
Sets b5 of D0 to 1.
Sets b5 of D0 to 0.
b5
D0
1. The number of basic steps is 1 when a device other than an annunciator is des-
ignated for the SET instruction.
2. When using X as a device, use the device numbers that are not used for the
actual input. If the same number is used for the actual input device and input X,
the data of the actual input will be written over the input X specified in the SET
instruction.
b0

Advertisement

Table of Contents
loading

Table of Contents