EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 1003

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...
970
Other Instructions Section 3-29
Flags
Examples Example 1: Converting a CV-series Program with *DM Indirect Binary
Mode DM Addressing
In this FRMCV(284) example, a DM word is specified in S, the PLC memory
address there is stored in an Index Register, and the Index Register is used
for indirectly addressed.
Index Registers --- IR0 to IR15
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to
+2047 ,IR15
DR0 to DR15, IR0 to IR15
---
Area S D
Name Label Operation
Error Flag ER ON if S specifies one of the following PLC memory
addresses that do not exist in the CP-series:
Temporary Relay (TR) Area (09FF hex)
CPU Bus Link (G) Area (0A00 to 0AFF hex)
SFC Areas (0D00 to 0E3F hex)
OFF in all other cases.
0C0200 Hex
0200 Hex
#1234
#1234
0.00
MOV
#1234
*D0
S
D
0200 Hex
0.00
FRMCV
D0
IR0
S
D
MOV
#1234
,IR0
S
D
0200 Hex
OC0200 Hex
#1234
#1234
0000C0200 Hex
0200 Hex
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 program
(Program using indirect DM
binary mode addressing)
CP-series program
Equivalent program
In this case, the value in D0 is 200 hex. The
corresponding data area address is CIO 512, so
#1234 is transferred to CIO 512.
Word address:
D0
Word address:
CIO 512
MOV(021)
CVM1/CV-series PLC
memory address
CVM1/CV-series PLC
memory address
In this case, the value in D0 is 200 hex. The
corresponding CV-series data area address is CIO 512.
The CP-series PLC memory address for CIO 512 is
0000C200 hex, so this value is stored in IR0. The
destination operand in MOV(021) indirectly addresses the
content of IR0, so #1234 is transferred to CIO 512.
MOV
(021)
FRMCV
(284)
CP-series word
address: D0
CP-series PLC
memory address:
CV-series word
address: CIO 512
CP-series word
address: CIO 512
Equivalent
CP-series word
address: IR0
CP-series word
address: CIO 512
CP-series PLC
memory address:
CP-series PLC
memory address:
MOV(021)

Table of Contents

Related product manuals