Mitsubishi Electric Artisan MELSEC-Q Series Manual page 147

General-purpose programmable controllers, large/small
Table of Contents

Advertisement

7.3 Use index register as a 32-bit (2-word) device
(3) Program replacement example
(1) When using index register as 16-bit (1-word) data
The index register numbers will change after converting the ACPU program to QCPU, but it is not necessary
to modify the program.
ACPU program
* Indexing devices with index register Z.
M0
0
Data logging
command
* Indexing devices with index register V.
M1
9
Data logging
command
18
Replacement QCPU program
* Indexing devices with index register Z.
M0
0
Data logging
command
* Indexing devices with index register V.
M1
6
Data logging
command
12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MOVP
MOVP
MOVP
Z0 <- replaced ACPU device "Z"
MOVP
Z7 <- replaced ACPU device "V"
144
D0
R0Z
Logging data
Data logging
save destination
INCP
Z
W0
R1000V
Logging data
Data logging
save destination
INCP
V
END
D0
R0Z0
Logging data
Data logging
save destination
INCP
Z0
W0
R1000Z7
Logging data
Data logging
save destination
INCP
Z7
END

Advertisement

Table of Contents
loading

Table of Contents