Special Math Instructions; Floating-Point Math Instructions - Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual

Function blocks
Table of Contents

Advertisement

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
---

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-programmer 5.0Sysmac ws02-cxpc1-e-v50Cs1-hCj1-hCj1m

Table of Contents