6 - 90 6 - 90
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
[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 device range n-points from
D
exceeds the device range. (Error code: 4101)
• The number of transfers exceeds 6144 when a special direct device is used. (QnACPU)
(Error code: 4101)
[Program Example]
(1) The following program outputs the lower 4 bits of D0 when XA goes ON to Y10 to Y23 in 4-bit
units.
[Ladder Mode] [List Mode]
Device
Instruction
Steps
1 Y13 to Y10011
1
0
11
1
0
11
1011
1011
Y17 to Y14
Y1B to Y18
Y1F to Y1C
Y23 to Y20
1011 10110 111 1001D0
Transmission
Ignored
b0b3b15 b4 b2 b1
5 points
(2) The following program outputs the data at X20 through X23 to D100 through D103 when XA
goes ON.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
0111 11101 101
X20X23X2B X28X2F X2C
0010
X27 X24
0000 11100 000 0000
Before execution
D100
After execution (transfer destination)
0000 11100 000 0000 D101
0000
111
0
0 000 0000 D102
0000 11100 000 0000 D103
4 points
Becomes 0
b0b3b15 b4
Ignored
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com