Instruction Support and Operand Restrictions
Instruction
Mnemonic
PUSH ONTO
PUSH
STACK
@PUSH
FIRST IN FIRST
FIFO
OUT
@FIFO
LAST IN FIRST
LIFO
OUT
@LIFO
DIMENSION
DIM
RECORD TABLE
@DIM
SET RECORD
SETR
LOCATION
@SETR
GET RECORD
GETR
NUMBER
@GETR
DATA SEARCH
SRCH
@SRCH
SWAP BYTES
SWAP
@SWAP
FIND MAXIMUM
MAX
@MAX
Function
Symbol
code
632
Not supported in func-
tion blocks
633
Not supported in func-
tion blocks
634
Not supported in func-
tion blocks
631
635
Not supported in func-
tion blocks
636
Not supported in func-
tion blocks
181
637
182
Operands
TB: 1st stack
address
S: Source word
TB: 1st stack
address
D: Destination word ---
TB: 1st stack
address
D: Destination word ---
N: Table number
DIM
N
LR: Length of each
LR
record
NR: Number of
NR
records
TB
TB: 1st table word
N: Table number
R: Record number
D: Destination
Index Register
N: Table number
IR: Index Register
D: Destination word ---
C: 1st control word
SRCH
R1: 1st word in
C
range
R1
Cd: Comparison
data
Cd
N: Number of
SWAP
words
N
R1: 1st word in
range
R1
C: 1st control word
MAX
R1: 1st word in
C
range
R1
D: Destination word UINT
D
Section 2-6
Supported
AT
variable
setting or
data types
array
variable
required
(Required
word data
size
shown in
parenthe-
ses.)
---
---
---
---
---
---
---
---
---
---
# + decimal
---
only
UINT
---
UINT
---
UINT
Yes (not
fixed)
---
---
---
---
---
---
---
---
---
---
---
UDINT
---
UINT
Yes (not
fixed)
WORD
---
UINT
---
UINT
Yes (not
fixed)
UDINT
---
UINT
Yes (not
fixed)
---
83
Need help?
Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?