Download Print this page

Index Registers - Omron SYSMAC CS1D-PD Series Operation Manual

Duplex system

Advertisement

Index Registers

File Memory Conversion

8-17 Index Registers

Indirect Addressing
0000 to 7FFF and words in the next EM bank (E00000 to E32767) can be
addressed with hexadecimal values 8000 to FFFF.
@E1_00100
@E00100
BCD-mode Addressing (*E)
When a "*" character is input before a EM address, the content of that EM
word is treated as BCD and the instruction will operate on the EM word in the
same bank at that BCD address. Only part of the EM bank (E00000 to
E09999) can be indirectly addressed with BCD values 0000 to 9999.
*E1_00100
*E00100
Part of the EM Area can be converted for use as file memory with settings in
the PLC Setup. All EM banks from the specified bank (EM File Memory Start-
ing Bank) to the last EM bank will be converted to file memory.
Once EM banks have been converted to file memory, they cannot be
accessed (read or written) by instructions. An Illegal Access Error will occur if
a file-memory bank is specified as an operand in an instruction.
The following example shows EM file memory when the EM File Memory
Starting Bank has been set to 3 in the PLC Setup.
EM bank number
The sixteen Index Registers (IR0 to IR15) are used for indirect addressing.
Each Index Register can hold a single PLC memory address, which is the
absolute memory address of a word in I/O memory. Use MOVR(560) to con-
vert a regular data area address to its equivalent PLC memory address and
write that value to the specified Index Register. (Use MOVRW(561) to set the
PLC memory address of a timer/counter PV in an Index Register.)
Bits in Index Registers cannot be force-set or force-reset.
Note Refer to Appendix E Memory Map for more details on PLC memory
addresses.
When an Index Register is used as an operand with a "," prefix, the instruction
will operate on the word indicated by the PLC memory address in the Index
0200
E1_00512
Address actually used.
0200
E0_00512
Address actually used.
0200
E1_00200
Address actually used.
0200
E0_00200
Address actually used.
Example:
0
EM File Memory Starting
1
Bank set to 3 in the PLC Setup
2
3
.
.
.
EM file memory
B
(Cannot be accessed
C
from instructions.)
.
.
.
17
18
Section 8-17
(When the current
bank is bank 0.)
(When the current
bank is bank 0.)
325

Advertisement

loading
Need help?

Need help?

Do you have a question about the SYSMAC CS1D-PD Series and is the answer not in the manual?

This manual is also suitable for:

Sysmac cs1d-cpu ha seriesSysmac cs1d-cpu h seriesSysmac cs1d-cpu sa seriesSysmac cs1d-cpu s seriesSysmac cs1d-pa seriesSysmac cs series ... Show all