Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1218

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Other Instructions
Examples
• CV-series program
(Program using indirect DM
binary mode addressing)
000000
MOV
S
D
PLC Setup
Indirect DM data:
When indirect DM addresses are in binary, the content of
the DM word is treated as a PLC memory address and
specifies the corresponding address in I/O memory.
In this case, the value in D00000 is 0200 hex. The
corresponding data area address is CIO 0512, so
#1234 is transferred to CIO 0512.
Word address:
CS/CJ-series PLC
D00000
memory address
0200 Hex
CS/CJ-series PLC
Word address:
memory address
CIO 0512
#1234
0200 Hex
MOV(021)
#1234
Example 1: Converting a CV-series Program with *DM Indirect Binary
Mode DM Addressing
In this FRMCV(284) example, a DM word is specified in S, the PLC memory
address there is stored in an Index Register, and the Index Register is used
for indirectly addressed.
Equivalent program
#1234
• CS/CJ-series program
000000
FRMCV
S
D
MOV
S
D
In this case, the value in D00000 is 0200 hex. The
corresponding CV-series data area address is CIO 0512.
The CS/CJ-series PLC memory address for CIO 0512 is
0000C200 hex, so this value is stored in IR0. The
destination operand in MOV(021) indirectly addresses the
content of IR0, so #1234 is transferred to CIO 0512.
CS/CJ-series word
address: D00000
0200 Hex
CV-series word
address: CIO0512
Equivalent
CS/CJ-series word
address: CIO 0512
CS/CJ-series word
address: IR0
000OC0200 Hex
CS/CJ-series word
address: CIO 0512
#1234
#1234
Section 3-31
D00000
IR0
#1234
,IR0
CV-series PLC
memory address:
0200 Hex
CS/CJ-series PLC
memory address:
OC0200 Hex
CS/CJ-series PLC
memory address:
OC0200 Hex
MOV(021)
FRMCV
(284)
MOV
(021)
1179

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents