Index Register/Standard Device Register (Z); Index Register (Z) - Mitsubishi Electric L02SCPU User's Manual And Reference

Melsec-l series, cpu module
Table of Contents

Advertisement

5.6

Index Register/Standard Device Register (Z)

5.6.1

Index Register (Z)

The index register is used for indirect specification (index modification) in programs. Index modification uses one point
of the index register.
The index register has 20 points (Z0 to Z19).
(1) Bit structure of the index register
One point of the index register consists of 16 bits, and data can be read or written in units of 16 bits.
Link register data are handled as signed data. In the case of the hexadecimal notation, 0000
However, because the most significant bit represents a sign bit, decimal values that can be specified are -32768 to 32767.
(When using T, TS, or C device, specify the values within the range of -16384 to 16383.)
(2) Using in a 32-bit instruction
The processing target is Z
and the higher 16 bits correspond to the specified index register number + 1.
Ex.
When Z2 is specified in the DMOV instruction, Z2 represents the lower 16 bits and Z3 represents the
higher 16 bits. (The most significant bit in a 32-bit structure is a sign bit.)
322
b15
Zn
The most significant bit is a sign bit.
and Z
. The lower 16 bits correspond to the specified index register number (Z
n
n+1
Specify the index register by one point
(16 bits).
to
Processing target: Z2, Z3
Z3
Lower 16 bits Upper 16 bits
b0
to FFFF
can be stored.
H
H
Z2
),
n

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents