3. Instructions
1052
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
When the execution condition is ON, TOCV(285) executes the following operations.
1. The CS/CJ-series PLC memory address specified in S is converted to its equivalent CS/CJ-series
data area address. (An index register (IR0 to IR15) must be specified for S.)
2. TOCV(284) determines the CV-series PLC memory address that corresponds to the same CS/CJ-
series data area address.
3. The CV-series PLC memory address is output to D.
The following example shows TOCV(285) used to convert the CS/CJ-series PLC memory address
for D1.
Note If there is no CV-series equivalent to the specified CS/CJ-series PLC memory address, an error will occur,
the Error Flag will be turned ON, and the address will not be converted.
TOCV
IR1
D100
10001 Hex
IR1
2001 Hex
D1
D1
10001 Hex
D100
2001 Hex
1. The CS/CJ-series PLC memory
address is converted to its equivalent
CS/CJ-series data area address.
CS/CJ-series PLC
memory address
CS/CJ-series data
area address
CV-series data
area address
CV-series PLC
memory address
2. The corresponding CV-series data area
address is converted to its CV-series PLC
memory address.
Storage
3. The CV-series PLC memory
address is stored in D.
0000Hex
0001Hex
2000Hex
2001Hex
FFFDHex
0C000Hex
0C001Hex
10000Hex
10001Hex
FFFFFHex
0CH
1CH
D0
D1
E32765
S
D100 2001Hex
0CH
1CH
D0
D1
EC_32767
D:
Specify the CS/CJ-series
PLC memory address in S.
(In this case, 10001 hex is
the PLC memory address of
D1.)
Data area address PLC memory address
Convert
Corresponding
data area
address
CS/CJ-series
The corresponding CV-series
PLC memory address is
stored in D. (In this case,
data area address D1 is
converted to PLC memory
address 2001 hex and
stored.)
Convert
CV-series