162
Special Function Block Instructions
Section 3-34
3-34 Special Function Block Instructions
MOVE BIT
MOVBC
@MOVBC
568
Output
Required
BIT COUNTER
BCNTC
@BCNTC
621
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
GET VARIABLE
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 gener-
ally used to get the assigned address of a variable in a function block.
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
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