Index Registers
Precautions
Limitations when Using Index Registers
1,2,3...
Monitoring and Sharing
Index Registers
The Index Registers cannot be directly addressed in any other instructions,
although they can usually be used for indirect addressing.
Instruction group
Data Movement
MOVE TO REGISTER
Instructions
MOVE TIMER/COUNTER PV TO REGISTER
DOUBLE MOVE
DOUBLE DATA EXCHANGE
Table Data Pro-
SET RECORD LOCATION
cessing Instruc-
GET RECORD NUMBER
tions
Increment/Decre-
DOUBLE INCREMENT BINARY
ment Instructions
DOUBLE DECREMENT BINARY
Comparison
DOUBLE EQUAL
Instructions
DOUBLE NOT EQUAL
DOUBLE LESS THAN
DOUBLE LESS THAN OR EQUAL
DOUBLE GREATER THAN
DOUBLE GREATER THAN OR EQUAL
DOUBLE COMPARE
Symbol Math
DOUBLE SIGNED BINARY ADD WITHOUT
Instructions
CARRY
DOUBLE SIGNED BINARY SUBTRACT
WITHOUT CARRY
The SRCH(181), MAX(182), and MIN(183) instructions can output the PLC
memory address of the word with the desired value (search value, maximum,
or minimum) to IR0. In this case, IR0 can be used in later instructions to
access the contents of that word.
Do not use Index Registers until a PLC memory address has been set in the
register. The pointer operation will be unreliable if the registers are used with-
out setting their values.
Each Index Register task is processed independently, so they do not affect
each other. For example, IR0 used in Task 1 and IR0 used in Task 2 are dif-
ferent. Consequently, each Index Register task has 16 Index Registers.
1. It is only possible to read the Index Register for the last task executed with-
in the cycle from the Programming Devices. If using Index Registers with
the same number to perform multiple tasks, it is only possible with the Pro-
gramming Devices to read the Index Register value for the last task per-
formed within the cycle from the multiple tasks. Nor is it possible to write
the Index Register value from the Programming Devices.
2. It is not possible to either read or write to the Index Registers using Host
Link commands or FINS commands.
Index Registers can be shared between all tasks.
It is possible to monitor or share Index Registers as follows:
To use the Programming Devices to monitor the final Index Register values
for each task, or to monitor the Index Register values using Host Link com-
mands or FINS commands, write a program to store Index Register values
from each task to another area (e.g., DM area) at the end of each task, and to
Instruction name
Section 8-17
Mnemonic
MOVR(560)
MOVRW(561)
MOVL(498)
XCGL(562)
SETR(635)
GETR(636)
++L(591)
– –L(593)
=L(301)
< >L(306)
< L(311)
< =L(316)
> L(321)
> =L(326)
CMPL(060)
+L(401)
–L(411)
329
Need help?
Do you have a question about the SYSMAC CS1D-PD Series and is the answer not in the manual?