Unitereal - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

UniteReal

The UniteReal instruction combines a signed mantissa and exponent to make a real number.
Instruction
UniteReal
Combine Real
Number Mantissa
and Exponent
Variables
Name
Meaning
Fraction
Signed man-
tissa
Exponent
Exponent
Out
Real number
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
Fraction
Exponent
Out
Must be REAL if the data type of Fraction is DINT and LREAL if the data type of Fraction is LINT.
Function
The UniteReal instruction combines signed mantissa Fraction and exponent Exponent to make real
number Out.
The following example is for when Fraction is DINT#−15 and Exponent is INT#−1.
LD
DINT#-15
INT# -1
Signed mantissa
DINT#−15
Fraction
Exponent
Exponent
2-444
Name
FB/FUN
FUN
I/O
Description
Signed mantissa
Input
Exponent
Output
Real number
UniteReal
EN
ENO
abc
Fraction
Exponent
Out=abc
INT#−1
Graphic expression
(@)UniteReal
EN
ENO
Fraction
Out
Exponent
Valid range
Depends on data type.
Depends on data type.
Integers
OK OK
OK
ST
abc:=UniteReal(DINT#15, INT#-1);
REAL#−1.5
NY-series Instructions Reference Manual (W560)
ST expression
Out:=UniteReal(Fraction,
Exponent);
Unit
Default
*
---
0
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents