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