Appendices
A-78
CJ2 CPU Unit Software User’s Manual
SINGLE
WORD DIS-
TRIBUTE
DISTC
@DISTC
566 Output Required
DATA COL-
LECT
COLLC
@COLLC
567 Output Required
MOVE BIT MOVBC
@MOVBC
568 Output Required
BIT
COUNTER
BCNTC
@BCNTC
621 Output Required
A-1-35 Special Function Block Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
GET VARI-
ABLE ID
GETID
@GETID
286 Outputs the FINS command variable type (data area) code and
word address for the specified variable or address. This instruction
is generally used to get the assigned address of a variable in a
function block.
Output Required
STEP ACTI-
VATE
SA
@SA
784 Makes the specified step or subchart active to start execution of
the actions.
Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
DISTC(566)
S
Bs
Of
S: Source word
Bs: Destination
base address
Of: Offset
S1
D+n
D
S2
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 (BCD)
D: Destination
word
S1
S1+n
S2
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 (Stack Read Operation).
S
C
D
MOVBC(568)
S: Source word
or data
C: Control word
(BCD)
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+(W−1)
to
D
Counts the total number of ON bits in the specified word(s).
N words
Counts the number
of ON bits.
BCD result
GETID(286)
S
D1
D2
S: Variable or
address
D1: ID code
D2: Destination
word
SA(784)
D