Omron CJ - INSTRUCTIONS Reference Manual page 1090

Table of Contents

Advertisement

3. Instructions
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.
Corresponding
data area
address
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.
1052
TOCV
IR1
D100
IR1
10001 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
10001 Hex
2.
The corresponding CV-series data area
address is converted to its CV-series PLC
memory address.
CV-series data
area address
D1
3.
The CV-series PLC memory
address is stored in D.
D100
2001 Hex
Data area address
CS/CJ-series
0CH
1CH
D0
Convert
D1
EC_32767
CV-series
0CH
1CH
Convert
D0
D1
E32765
CS/CJ-series data
area address
D1
CV-series PLC
memory address
2001 Hex
Storage
PLC memory address
0C000Hex
0C001Hex
10000Hex
S
10001Hex
Specify the CS/CJ-series
PLC memory address in S.
FFFFFHex
(In this case, 10001 hex is
the PLC memory address of
D1.)
0000Hex
0001Hex
The corresponding CV-series
PLC memory address is
2000Hex
stored in D. (In this case,
2001Hex
data area address D1 is
converted to PLC memory
FFFDHex
address 2001 hex and
stored.)
D:
D100
2001Hex
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents