Справочник Пользователя для Mitsubishi Electronics FX5

Скачать
Страница из 306
21  DEVICES
21.5  Index Registers (Z/LZ)
217
21
21.5
Index Registers (Z/LZ)
Device used for indexing of devices.
Types of index registers
There are 2 types: the index register (Z) and long index register (LZ)
Index register (Z)
Used for 16-bit index modification.
Long index register (LZ)
Used for 32-bit index modification.
Index register setting
A total of 24 words can be used for index register (Z) and long index register (LZ). The number of points can be changed by 
parameter.
Navigation window  [Parameter]  [FX5UCPU]  [CPU Parameter]  "Memory/Device Setting"  "Index Register 
Setting"
Window
Displayed items
Item
Description
Setting range
Default
Total Points
Show the total number of points for index register and long index register.
Index Register (Z)
Set the number of points for index registers.
0 to 24 points (2 point unit)
20 points
Long Index Register (LZ)
Set the number of points for long index registers.
0 to 12 points (1 point unit)
2 points
MOV           K100               Z0
INC         Z0
MOV           W0                  D0Z0
SM402
M10
Access D0Z0 = D100.
DMOV         K50000           LZ0
DINC        LZ0
 MOV           D0             U1\G0LZ0
SM402
M10
Access U1\G0LZ0 = U1\G50000.