XW2Z-200J-B9 Omron, XW2Z-200J-B9 Datasheet - Page 408

no-image

XW2Z-200J-B9

Manufacturer Part Number
XW2Z-200J-B9
Description
CONNECTOR CABLE 2M
Manufacturer
Omron
Datasheet

Specifications of XW2Z-200J-B9

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
XW2Z200JB9
Note It is possible to specify regions outside of I/O memory and generate an Illegal Access Error when indi-
B-15-1 Indirect Addressing Methods
The following table shows the variations available when indirectly addressing I/O memory with Index Registers.
(IR@ represents an Index Register from IR0 to IR15.)
B-15-2 Example
This example shows how to store the PLC memory address of a word (CIO 0002) in an Index Register (IR0),
use the Index Register in an instruction, and use the auto-increment variation.
I/O Memory
Indirect addressing
Indirect addressing
with constant offset
Indirect addressing
with DR offset
Indirect addressing
with auto-increment
Indirect addressing
with auto-decrement
Variation
rectly addressing memory with Index Registers. Refer to Appendix D Auxiliary Area Allocations for
details on the limits of PLC memory addresses.
MOVR(560)
MOV(021)
MOV(021)
The content of IR@ is treated as
the PLC memory address of a bit
or word.
The constant prefix is added to the
content of IR@ and the result is
treated as the PLC memory
address of a bit or word.
The constant may be any integer
from –2,048 to 2,047.
The content of the Data Register
is added to the content of IR@ and
the result is treated as the PLC
memory address of a bit or word.
After referencing the content of
IR@ as the PLC memory address
of a bit or word, the content is
incremented by 1 or 2.
The content of IR@ is decre-
mented by 1 or 2 and the result is
treated as the PLC memory
address of a bit or word.
Set to a base value
with MOVR(560) or
MOVRW(561).
0002
#0001
#0020
Function
IR0
,IR0
+1,IR0 Reads the content of IR0, adds 1, and writes #0020 to that PLC
Stores the PLC memory address of CIO 0002 in IR0.
Writes #0001 to the PLC memory address contained in IR0.
memory address.
Pointer
,IR@
Constant ,IR@
(Include a + or –
in the constant.)
DR@,IR@
Increment by 1:
,IR@+
Increment by 2:
,IR@++
Decrement by 1:
,–IR@
Decrement by 2:
,– –IR@
Syntax
I/O Memory
LD ,IR0
LD +5,IR0
LD
DR0,IR0
LD , IR0++
LD , – –IR0 Decrements the content of
Loads the bit at the PLC
memory address contained
in IR0.
Adds 5 to the contents of IR0
and loads the bit at that PLC
memory address.
Adds the contents of DR0 to
the contents of IR0 and
loads the bit at that PLC
memory address.
Loads the bit at the PLC
memory address contained
in IR0 and then increments
the content of IR0 by 2.
IR0 by 2 and then loads the
bit at that PLC memory
address.
Example
Appendix B
381