Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1302

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Model Conversion Instructions (Unit Ver. 3.0 or Later)
Differences from C-series
Instructions
Name
Model conversion
instruction
(Unit Ver. 3.0 or
later)
Mnemonic
(function code)
BLOCK
XFERC(565)
TRANSFER
SINGLE WORD
DISTC(566)
DISTRIBUTE
DATA COLLECT COLLC(567)
MOVE BIT
MOVBC(568)
BIT COUNTER
BCNTC(621)
Instruction
DATA COLLECT
MOVE BIT
BIT COUNTER
The model conversion instructions provide the same functionality as other
instructions but use BCD data for the operands, like C-series instructions.
(The CJ/CS-series use binary data for the operands.) There are five model
conversion instructions, as shown in the above table, all of which have a C
added to the end of the mnemonic of the equivalent function for binary oper-
and data.
The model conversion instructions enable converting C-series programs to
CS/CJ-series programs without changing the operand data for these instruc-
tions.
When converting C-series programs to CS/CJ-series programs on CX-Pro-
grammer version 5.0 or higher (see note), these instructions will be automati-
cally used when converting (e.g., XFER will be converted to XFERC),
eliminating the need to correct operand data manually.
When converting C-series programs to CS/CJ-series programs on CX-Pro-
grammer version 4.0 or lower (see note), any operand for which a constant is
specified will be converted from BCD to binary, but any operand data for
which a word address is specified will have to be corrected manually.
Note Conversion is achieved by specifying the CS/CJ Series as the "device type" in
the Change PLC Dialog Box.
"C Series" includes the C200H, C1000H, C2000H, C200HS, C2000HX/HG/
HE(-Z), CQM1, CQM1H, CPM1/CPM1A, CPM2C, and SRM1.
Corresponding
Differences from
C-series
C-series instructions
instruction
Mnemonic
C200H,
(function code)
C1000H, or
C2000H
XFER(70)
Same
DIST(80)
Along with data
distribution oper-
ation, provides
stack push oper-
ation not previ-
ously supported.
COLL(81)
Along with data
collection opera-
tion, provides
stack read oper-
ation not previ-
ously supported.
MOVB(82)
Same
BCNT(67)
Same
Mnemonic
COLLC
MOVBC
BCNTC
When converting device
type to CS/CJ with
CX-Programmer Ver. 4.0 or
lower
C200HS,
C2000HX/HG/
HE(-Z), CQM1,
CQM1H,
CPM1/CPM1A,
CPM2C, or
SRM1
Same
Converted to XFER. If a word
address is specified for the
first operand (number of words
to transfer), it will need to be
corrected manually to binary
data in the program.
Same
Converted to DIST. If a word
(distribution
address is specified for the
operation and
third operand (offset data), it
stack push
will need to be corrected man-
operation)
ually to binary data in the pro-
gram.
Same
Converted to COLL. If a word
(data collection
address is specified for the
operation and
second operand (offset data),
stack read
it will need to be corrected
operation)
manually to binary data in the
program.
Same
Converted to MOVB. If a word
address is specified for the
second operand (control data),
it will need to be corrected
manually to binary data in the
program.
Same
Converted to BCNT. If a word
address is specified for the
first operand (number of words
to count), it will need to be cor-
rected manually to binary data
in the program.
Section 3-35
Function code
Page
567
1270
568
1274
621
1276
When converting device
type to CS/CJ with
CX-Programmer Ver. 5.0
or higher
XFER is converted to
XFERC. Operands do not
require correction.
DIST is converted to
DICTC. Operands do not
require correction.
COLL is converted to
COLLC. Operands do not
require correction.
MOVB is converted to
MOVBC. Operands do
not require correction.
BCNT is converted to
BCNTC. Operands do not
require correction.
1263

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents