Index And Data Registers (Ir And Dr) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Index and Data Registers (IR and DR)

3-12 Index and Data Registers (IR and DR)

Direct Addressing
Indirect Addressing
70
(030)
MOV *D00100
Indirect addressing can also be used in instructions that require bit operands
for bits in the Core I/O Area ($0000 to $0FFF). These bits are designated by
using the rightmost digits of the memory address as the leftmost three digits
of the hexadecimal address and adding the bit number as the rightmost digit.
For example, the CIO bit 190000 is designated by $76CA where 76C is the
rightmost three digits of the memory address (CIO word 1900 is $076C) and
A is bit 10.
The Index Registers, IR0, IR1, and IR2, which contain a single word of data, are
used for indirect addressing. A "," prefix is included before an Index Register to
indicate indirect addressing, just as the "*" prefix is used to indicate indirect ad-
dressing with DM and EM.
If an Index Register is used as an operand in an instruction without the ","
prefix, the instruction is performed directly on the content of that Index Regis-
ter, as in the following example.
(030)
MOV
D00000
IR0
If an Index Register is used as an operand in an instruction with the "," prefix,
the instruction is performed on the word at the PC memory address indicated
by that Index Register, as in the following example.
(030)
MOV
D00000
,IR0
Indirect
address
Indirect addressing can also be used in instructions that require bit operands
for bits in the Core I/O Area ($0000 to $0FFF). These bits are designated by
using the rightmost digits of the memory address as the leftmost three digits
Word
A090
D00099
D00100
Indirect
D00101
address
CIO 0512
CIO 0513
CIO 0514
Word
Content
D00000
08FC
08FC moved
to IR0.
Word
Content
D00000
08FC
08FC moved
to CIO 1900.
Word
Content
IR0
076C
Indicates 076C
(CIO 1900)
Section 3-12
Content
4C59
0200
Indicates
F35A
CIO 0512.
5555
2506
5555 moved
to A090.
D541
Word
Content
IR0
08FC
Word
Content
CIO 1900
08FC

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents