A-1-35 Special Function Block Instructions - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents