132
Index Registers
Section 4-11
4-11-2 Precautions for Using Index Registers
Precautions
Do not use a Index Register 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.
The values in Index Registers are unpredictable at the start of an interrupt
task. When an Index Register will be used in an interrupt task, always set a
PLC memory address in the Index Register with MOVR(560) or
MOVRW(561) before using the register in that task.
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.
Limitations when Using Index Registers
• It is only possible to read the Index Register for the last task executed
within the cycle from the CX-Programmer. If using Index Registers with
the same number to perform multiple tasks, it is only possible with the
CX-Programmer 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 CX-Programmer.
• It is not possible to either read or write to the Index Registers using Host
Link commands or FINS commands.
• A setting can be made from the CX-Programmer to share Index Registers
between tasks. This setting will be enabled uniformly for all Index Regis-
ters and Data Registers.
Sharing Index Registers
The following setting can be made from the PLC Properties Dialog Box on the
CX-Programmer to control sharing Index and Data Registers between tasks.
Monitoring Index Registers
It is possible to monitor 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
read Index Register values from the storage words (e.g., DM area) at the
beginning of each task. The values stored for each task in other areas (e.g.,
DM area) can then be edited using the CX-Programmer, Host Link com-
mands, or FINS commands.
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......