Instruction Support and Operand Restrictions
2-6-12 Special Math Instructions
Instruction
Mnemonic
BINARY ROOT
ROTB
@ROTB
BCD SQUARE
ROOT
ROOT
@ROOT
ARITHMETIC PRO-
APR
CESS
@APR
FLOATING POINT
FDIV
DIVIDE
@FDIV
BIT COUNTER
BCNT
@BCNT
2-6-13 Floating-point Math Instructions
Instruction
Mnemonic
FLOATING TO 16-
FIX
BIT
@FIX
76
Function
Symbol
code
620
072
069
079
067
Function
Symbol
code
450
FIX
S
R
Operands
S: 1st source word
ROTB
R: Result word
S
R
S: 1st source word
ROOT
R: Result word
S
R
C: Control word
APR
C
S: Source data
S
R: Result word
R
Dd: 1st dividend
FDIV
word
Dd
Dr: 1st divisor word UDINT
Dr
R: 1st result word
R
N: Number of
BCNT
words
N
S: 1st source word
S
R: Result word
R
Operands
S: 1st source word
R: Result word
Section 2-6
Supported
AT
variable
setting or
data types
array
variable
required
(Required
word data
size
shown in
parenthe-
ses.)
UDINT
---
UINT
---
DWORD
---
WORD
---
UINT
Yes (not
fixed)
WORD
---
WORD
---
UDINT
---
---
UDINT
---
UINT
---
UINT
Yes (not
fixed)
UINT
---
Supported
AT
variable
setting or
data types
array
variable
required
(Required
word data
size
shown in
parenthe-
ses.)
REAL
---
INT
---
Need help?
Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?
Questions and answers