![Mitsubishi Electric Artisan MELSEC-A Manual Download Page 148](http://html.mh-extra.com/html/mitsubishi-electric/artisan-melsec-a/artisan-melsec-a_manual_238821148.webp)
* Indexing devices with index register Z.
* Indexing devices with index register V.
MOVP
0
M0
Data logging
command
D0
Logging data
END
18
INCP
Z
R0Z
Data logging
save destination
MOVP
9
M1
Data logging
command
W0
Logging data
INCP
V
R1000V
Data logging
save destination
* Indexing devices with index register Z.
* Indexing devices with index register V.
MOVP
0
M0
Data logging
command
D0
Logging data
END
12
INCP
Z0
R0Z0
Data logging
save destination
MOVP
6
M1
Data logging
command
W0
Logging data
INCP
Z7
R1000Z7
Data logging
save destination
Z0 <- replaced ACPU device "Z"
Z7 <- replaced ACPU device "V"
/P
0
X0
D0
Data to be
divided
END
18
MOVP
K10
V
R0Z1
Remainder data
save destination
Z
INCP
Z1
/P
0
X0
D0
Data to be
divided
END
12
MOVP
K10
Z1
R0Z1
Remainder data
save destination
Z0
INCP
Z1
Quotient is stored in Z and remainder
is stored in V.
Z1 does not interfere with the division instruction.
Quotient is stored in Z0 and remainder
is stored in Z1.
Z1 is not stored in the proper location because Z1 is overwritten
by the remainder of the division instruction.
/P
0
X0
D0
Data to be
divided
END
12
MOVP
K10
Z1
R0Z2
Remainder data
save destination
Z0
INCP
Z2
Quotient is stored in Z0 and remainder
is stored in Z1.
Since Z1 is overwritten by the remainder of the division
instruction, change it to an unused index register.
ACPU program
(3) Program replacement example
(1) When using index register as 16-bit (1-word) data
Replacement QCPU program
ACPU program
Replacement QCPU program
Modified/corrected QCPU program
The index register numbers will change after converting the ACPU program to QCPU, but it is not necessary
to modify the program.
(2) When using index register as 32-bit (2-word) data
The index register numbers and their combination will change after converting the ACPU program to QCPU.
It is necessary to modify the program.
145
7.3 Use index register as a 32-bit (2-word) device
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com