EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Indexing

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
92
3 CONFIGURATION OF INSTRUCTIONS
3.3 Indexing
3.3 Indexing
Overview of indexing
Indexing is an indirect setting made by using an index register.
When an Indexing is used in a sequence program, the device to be used will become the device number specified directly
plus the contents of the index register.
For example, if D2Z2 has been specified, the specified device is calculated as follows: D(2+3) = D5 and the content of Z2 is 3
become the specified device.
Indexing with 32-bit index registers in addition to 16-bit index registers is available with the Universal model QCPU and LCPU.
Indexing with 16-bit index registers
Example of indexing
Each index register can be set between -32768 and 32767.
*1
Indexing is performed in the way shown below:
*1 For the specifications of index registers, refer to the User's Manual (Function Explanation, Program Fundamentals) for the CPU module
used.
X0
MOV
K
Z0
X0
MOV D10Z0
D0
Indexing
Stores -1 at Z0.
Stores the data of D10Z0=
D{10+(-1)} = D9 at D0.
1

Table of Contents

Related product manuals