Omron SYSMAC CS Series Instruction & Reference Manual page 1009

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

• The FRMCV(284) instruction can be used to convert a CV-series program with the following two
kinds of programming for use in a CS/CJ-series PLC. See the Examples later in this section for an
example.
1. When using indirect binary mode DM addressing (*DM)
(when indirectly specifying a data area address with a PLC memory address in DM)
2. When using CV-series PLC memory addresses directly as values
(when storing PLC memory addresses in Index Registers with direct addressing using an
instruction such as MOV(021))
Example Programming
 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.
• CV-series program
(Program using indirect DM
binary mode addressing)
0.00
MOV
#1234
S
D
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.
In this case, the value in D0 is 0200 hex. The
corresponding data area address is CIO 512, so
#1234 is transferred to CIO 512.
Word address:
CS/CJ-series PLC
D0
memory address
0200 Hex
CS/CJ-series PLC
Word address:
memory address
CIO 512
#1234
0200 Hex
MOV(021)
#1234
CS/CJ/NSJ Series Instructions Reference Manual (W474)
• CS/CJ-series program
Equivalent program
0.00
In this case, the value in D0 is 0200 hex. The
corresponding CV-series data area address is CIO 512.
The CS/CJ-series PLC memory address for CIO 512 is
0C200 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.
CS/CJ-series word
address: D0
CV-series word
address: CIO 512
CS/CJ-series word
address: CIO 512
CS/CJ-series word
address: IR0
CS/CJ-series word
address: CIO 512
3. Instructions
FRMCV
D0
S
IR0
D
MOV
#1234
S
,IR0
D
0200 Hex
CV-series PLC
memory address:
0200 Hex
Equivalent
CS/CJ-series PLC
memory address:
OC0200 Hex
000OC0200 Hex
CS/CJ-series PLC
memory address:
OC0200 Hex
#1234
MOV(021)
#1234
3
FRMCV
(284)
MOV(021)
975

Advertisement

Table of Contents
loading

Table of Contents