EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 1007

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
974
Other Instructions Section 3-29
Note (1) An error will occur and the Error Flag will be turned ON if S specifies one
of the following PLC memory addresses that do not exist in the CV-series:
(2) An error will occur and the Error Flag will be turned ON if an area other
than the Index Register Area is specified for S.
Flags
Example Converting a CP-series Program with Indirect Index Register Addressing
1. In this TOCV(285) example, an Index Register is specified in S. The CP-
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.
Area or addresses PLC memory addresses
Task Flag Area 0000 B800 to 0000 B801 hex
A512 to A959 0000 BA40 to 0000 BBFF hex
CIO 2556 to CIO 6143 0000 C9FC to 0000 D7FF hex
T1024 to T4095 0000 BE40 to 0000 BEFF hex and
0000 E400 to 0000 EFFF hex
C1024 to C4095 0000 BF40 to 0000 BFFF hex and
0000 F400 to 0000 FFFF hex
HR Area 0000 D800 to 0000 D9FF hex
WR Area 0000 DE00 to 0000 DFFF hex
D24576 to D32767 0001 6000 to 0001 7FFF hex
Name Label Operation
Error Flag ER ON if S specifies a PLC memory address that does not
exist in the CV-series PLCs.
ON if S is not a constant or Index Register.
OFF in all other cases.
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
D1
2001Hex
2001Hex
10001Hex
D200
D1
D200
2001Hex
2001Hex
#1234
CP-series program
(Program using indirect Index
Register addressing)
CP-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:
CP-series
data area
address: IR0
CP-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 CP-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
CP-series data
area address
CP-series data
area address
CP-series PLC
memory address:
Same
CV-series data
area address
CP-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
MOV(021)
*DM specification

Table of Contents

Related product manuals