Model Conversion Instructions
Model Conversion Instructions
This section describes instructions used when changing PLC models.
• BLOCK TRANSFER (XFERC)
• SINGLE WORD DISTRIBUTE (DISTC)
• DATA COLLECT (COLLC)
• MOVE BIT (MOVBC)
• BIT COUNTER (BCNTC)
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 operand data.
The model conversion instructions enable converting C-series programs to CS/CJ-series programs
without changing the operand data for these instructions.
When converting C-series programs to CS/CJ-series programs on CX-Programmer version 5.0 higher
(see note), these instructions will be automatically 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-Programmer 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.
Differences from C-series Instructions
"C Series" includes the C200H, C1000H, C2000H, C200HS, C2000HX/HG/HE(-Z), CQM1, CQM1H,
CPM1/CPM1A, CPM2C, and SRM1.
Model conversion
instruction (Unit
Ver. 3.0 or later and
CJ2 CPU Units)
Name
Mnemonic
(function code)
BLOCK
XFERC(565)
TRANSFER
SINGLE
DISTC(566)
WORD
DISTRIBUTE
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Correspond-
ing C-series
Differences from C-series instructions
instruction
Mnemonic
C200H, C1000H,
(function
or C2000H
code)
XFER(70)
Same
DIST(80)
Along with data
distribution
operation, provides
stack push
operation not
previously
supported.
When converting
device type to
CS/CJ with
C200HS, C2000HX/
CX-Programmer
HG/HE(-Z), CQM1,
Ver. 4.0 or lower
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 (distribution
Converted to DIST. If a word
operation and stack
address is specified for the
push operation)
third operand (offset data), it
will need to be corrected
manually to binary data in the
program.
3. Instructions
3
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.
1097
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?