Instruction Support and Operand Restrictions
Instruction
Mnemonic
SCALING 2
SCL2
@SCL2
SCALING 3
SCL3
@SCL3
AVERAGE
AVG
2-6-17 Subroutine Instructions
Instruction
Mnemonic
SUBROUTINE CALL SBS
@SBS
SUBROUTINE
SBN
ENTRY
SUBROUTINE
RET
RETURN
MACRO
MCRO
@MCRO
GLOBAL SUBROU-
GSBS
TINE CALL
@GSBS
86
Function
Symbol
code
486
SCL2
S
P1
R
487
SCL3
S
P1
R
195
AVG
S
N
R
Function
Symbol
code
091
Not supported in func-
tion blocks
092
Not supported in func-
tion blocks
093
Not supported in func-
tion blocks
099
Not supported in func-
tion blocks
750
Not supported in func-
tion blocks
Operands
Supported
variable
data types
S: Source word
INT
P1: 1st parameter
WORD
word
R: Result word
WORD
S: Source word
WORD
P1: 1st parameter
WORD
word
R: Result word
INT
S: Source word
UINT
N: Number of
UINT
cycles
R: Result word
UINT
Operands
Supported
variable
data types
N: Subroutine num-
---
ber
N: Subroutine num-
---
ber
---
N: Subroutine num-
---
ber
S: 1st input param-
---
eter word
D: 1st output
---
parameter word
N: Subroutine num-
---
ber
Section 2-6
AT
setting or
array
variable
required
(Required
word data
size
shown in
parenthe-
ses.)
---
Yes (3)
---
---
Yes (3)
---
---
---
Yes (not
fixed)
AT
setting or
array
variable
required
(Required
word data
size
shown in
parenthe-
ses.)
---
---
---
---
---
---
---
Need help?
Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?