5-30
5.3 Output Instructions
5.3.5 Setting devices (excluding annunciators)
SET
O
p
erat
i
on
E
rror
No operation error occurs in the execution of the SET instruction.
Program
E
xam
pl
e
(1) In the following program, Y8B is set (ON) when X8 turns ON, and Y8B is reset (OFF) when
X9 turns ON.
[Structured ladder]
[ST]
SET(X8,Y8B);
RST(X9,Y8B);
(2) In the following program, the value of D0 bit 5 (b5) is set to 1 when X8 turns ON, and the bit
value is set to 0 when X9 turns ON.
[Structured ladder]
[ST]
SET(X8,D0.5);
RST(X9,D0.5);
Remark
1. 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
D0
b5
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......