Omron CJ - INSTRUCTIONS Reference Manual page 1091

Table of Contents

Advertisement

Hint
After this instruction is executed, the basic methods of use are as follows.
1. The CV-series PLC memory address data stored by TOCV(285) can be transferred to a CV-series
PLC using CX-Programmer.
2. The same data area address that was used in the CS/CJ-series program can be specified in the
CV-series program by using indirect Index Register addressing ( ",IR" prefix) or indirect binary
mode DM addressing (*DM).
Example Programming
Converting a CS/CJ-series Program with Indirect Index Register Addressing
1. In this TOCV(285) example, an Index Register is specified in S. The CS/CJ-series PLC memory
address in that Index Register is converted to its CV-series equivalent.
2. The CV-series PLC memory address is transferred to the specified data area address.
3. Use the CV-series PLC memory address in the CV-series program.
• CS/CJ-series program
(Program using indirect Index
Register addressing)
0.00
MOV
#1234
S
,IR0
D
In this case, IR0 contains 10001 hex. The
data area address corresponding to PLC
memory address 10001 hex is D1, so
#1234 is transferred to D1.
CS/CJ-series
10001Hex
data area
address: IR0
PLC memory
CS/CJ-
#1234
address: 10001 hex
series data
area
MOV(021)
address: D1
#1234
CS/CJ/NSJ Series Instructions Reference Manual (W474)
• CS/CJ-series program
0.01
TOCV
IR0
S
D200
D
In this case, IR0 contains 10001 hex.
Since the data area address
corresponding to CS/CJ-series PLC
memory address 10001 hex is D1,
TOCV(285) stores the CV-series PLC
memory address for D1 (2001 hex) in
destination word D200.
CS/CJ-series
data area
address
IR0
10001Hex
CS/CJ-series
CS/CJ-series PLC
data area
memory address:
address
10001Hex
D1
Same
CV-series PLC
CV-series data
area address
memory address:
2001Hex
D1
CS/CJ-series
data area
address
D200
2001Hex
Transfer contents of
D200 to CV-series.
• CV-series program
0.00
Transfer contents of
D200 to CV-series.
In the CV-series PLC, the destination of the
MOV(021) instruction is indirectly addressed
(in binary mode) through D200, so #1234 is
transferred to D1.
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.
CV-series data
area address
D200
CV-series data
area address
D1
3. Instructions
3
MOV
#1234
S
*D200
D
2001Hex
*DM specification
CV-series PLC
memory address
#1234
2001Hex
#1234
1053

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents