6.7 I/O Refresh Instructions
6.7.1 I/O refresh
6-151
6
BA
S
IC
INSTRUCTIONS
RF
S
RFS
(3) Use direct access inputs (DX) or direct access outputs (DY) to refresh inputs (X) or outputs
(Y) in units of 1 point.
O
p
erat
i
on
E
rror
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The range of n points from the device specified for
exceeds the proximate I/O range.
(Error code: 4101)
Program
E
xam
pl
e
In the following program, the devices from X100 to X11F, and from Y200 to Y23F are refreshed
when M0 turns ON.
[Structured ladder]
[ST]
IF M0 THEN
RFSP(TRUE,X100,H20);
RFSP(TRUE,Y200,H40);
END_IF;
Direct access in
p
ut
Direct access out
p
ut
[Program
b
ased on t
h
e RFS instruction]
[Program
b
ased on direct access in
p
ut and direct access out
p
ut]
Re
f
res
h
es
X
0.
Re
f
res
h
es Y
2
0.
s
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: ......