125
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-34 Model Conversion Instructions (CPU
Unit Ver. 3.0 or Later and CJ2 CPU Units Only)
2-2-34 Model Conversion Instructions (CPU Unit Ver. 3.0 or Later and
CJ2 CPU Units Only)
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
BLOCK
TRANSFER
XFERC
@XFERC
565
Output
Required
1118
SINGLE WORD
DISTRIBUTE
DISTC
@DISTC
566
Output
Required
1120
DATA COLLECT
COLLC
@COLLC
567
Output
Required
1123
MOVE BIT
MOVBC
@MOVBC
568
Output
Required
1126
BIT COUNTER
BCNTC
@BCNTC
621
Output
Required
1128
XFERC(565)
N
S
D
N: Number of
words
S: 1st source
word
D: 1st destination
word
S+(N−1)
D+(N−1)
to to
N words
Transfers the specified number of consecutive words.
DISTC(566)
S
Bs
Of
S: Source word
Bs: Destination
base address
Of: Offset
sSB
Bs+n
Of
Transfers the source word to a destination word calculated by adding
an offset value to the base address. Can also write to a stack (Stack
Push Operation).
COLLC(567)
Bs
Of
D
Bs: Source base
address
Of: Offset
D: Destination
word
Bs
Bs+n
Of
Transfers the source word (calculated by adding an offset value to the
base address) to the destination word. Can also read data from a
stack in FIFO or LIFO order (Stack Read Operation).
S
C
D
MOVBC(568)
S: Source word or
data
C: Control word
D: Destination
word
Transfers the specified bit.
BCNTC(621)
N
S
R
N: Number of
words (BCD)
S: 1st source
word
R: Result word
S+(N −1)
R
to
Counts the total number of ON bits in the specified word(s).
N words
Counts the number
of ON bits.
BCD result