1053
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Other Instructions
3
TOCV
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.
0.01
TOCV
IR0
D200
S
D
MOV
#1234
,IR0
S
D
MOV
#1234
*D200
S
D
#1234
#1234
10001Hex
#1234
0.00
0.00
D1
IR0
10001Hex
2001Hex
D1
2001Hex
10001Hex
D200
D1
D200
2001Hex
2001Hex
#1234
• CS/CJ-series program
(Program using indirect Index
Register addressing)
• CS/CJ-series program
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.
CV-series PLC
memory address:
CS/CJ-series
data area
address: IR0
CS/CJ-
series data
area
address: D1
Transfer contents of
D200 to CV-series.
• CV-series program
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.
PLC memory
address: 10001 hex
CS/CJ-series
data area
address
CS/CJ-series
data area
address
CS/CJ-series PLC
memory address:
Same
CV-series data
area address
CS/CJ-series
data area
address
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
CV-series data
area address
CV-series PLC
memory address
*DM specification
MOV(021)