6 - 112 6 - 112
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
(3) Use direct access inputs (DX) or direct access outputs (DY) to refresh inputs (X) or outputs (Y)
in 1-point units.
Command
K1
X0
Command
Y20
X0
RFS
K1Y20
RFS
Direct access input
DY20
DX0
Direct access outpu
Refreshes X0
Refreshes Y20
[Program based on the RFS instruction]
[Program based on DX and DY]
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The range n points from the device designated by
S
exceeds the proximate I/O range.
[Program Example]
(1) The following program refreshes X100 to X11F and Y200 to Y23F when M0 goes ON.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com