Index Register/Standard Device Register (Z); Index Register (Z) - Mitsubishi L02CPU User Manual

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

5.5

Index Register/Standard Device Register (Z)

5.5.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.
(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.
When Z2 is specified in the DMOV instruction, Z2 represents the lower 16 bits and Z3 represents the
Ex.
Ex.
higher 16 bits.
(The most significant bit in a 32-bit structure is a sign bit.)
Specify the index register by one point
(16 bits).
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
to
b0
Processing target: Z2, Z3
Z3
Lower 16 bits Upper 16 bits
CHAPTER 5 DEVICES
to FFFF
can be stored.
H
H
Z2
255
5
),
n

Advertisement

Table of Contents
loading

This manual is also suitable for:

L26cpu-bt

Table of Contents