Mitsubishi Electronics 13JW55 ユーザーズマニュアル

ページ / 350
 
 
App. - 64
 
 
 
Appendix 8  Indexing 
In the Universal model QCPU (excludes Q00UJCPU), expanding the index register 
to 32 bits enables the indexing for all the file register areas. 
ZR0
ZR1
ZR32767
ZR32768
ZR4184063
SM400
DM0V K1042431
Z0
D0
ZR0Z0
M0V
Serial number access 
format file register
Conventional area 
to which indexing 
can be used
Area to which indexing can be 
used of Universal model QCPU
To index the serial number access format file 
register (ZR) with 32-bit, use the index register (Z).
 
 
A method for specifying index registers for 32-bit indexing can be selected from 
following two methods. 
 
• Specifying the index range used for 32-bit indexing 
• Specifying the 32-bit indexing using "ZZ" specification 
 
(1)  When specifying the index range used for 32-bit indexing 
 
(a)  Each index register can be set between -2147483648 and 2147483647. 
The following shows an example of indexing. 
X0
DMOV K40000
Z0
X0
MOV
ZR10Z0
D0
Stores 40000 in Z0.
Stores the data of
ZR10Z0 = ZR{10+40000}
= ZR40010 in D0.
Indexing
 
 
(b) Specification 
method 
For indexing with a 32-bit index register, specify the start number of an 
index register to be used on the Device tab of the PLC parameter setting 
screen in GX Works2. 
 
POINT 
 
 
When the start number of the index register used is changed on the Device tab 
of the PLC parameter setting screen, do not change the parameters only or do 
not write only the parameters into the programmable controller. Be sure to write 
the parameters into the programmable controller with the program. 
When the parameter is forced to be written into the programmable controller, 
an error of CAN'T EXE. PRG. occurs. (Error code: 2500)