EasyManua.ls Logo

YASKAWA JEPMC-CP3201-E - Page 80

YASKAWA JEPMC-CP3201-E
249 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...
3.1 Basic Functionality
Registers
3-30
Array Registers ([ ])
Array registers are used to modify register addresses, and are denoted by square brackets [ ].
These are used to handle register addresses like variables.
Similarly to index registers, an offset is added to the register address.
Attaching an Array Register to a Bit Register
Using an array register is the same as adding the value of the array register to the register address.
For example, if DW00000 = 2, MB00000000[DW00000] is the same as MB00000002.
Attaching an Array Register to a Register Other Than a Bit Register
Using an array register is the same as adding the word size of the data type of the array register times the
value of the array register to the register address.
For example, if DW00000 = 30, ML0000002[DW00000] is the same as ML0000062.
DL00002 = ML00000 (30 × 2 + 2) = ML0000062
DW00000 = 2;
DB000020 = MB00000000[DW00000]; DB000020 = MB00000002;
Equivalent
DW00000 = 30;
DL00002 = ML0000002[DW00000]; DL00002 = ML0000062;
Equivalent

Table of Contents

Other manuals for YASKAWA JEPMC-CP3201-E

Related product manuals