2 Instruction Descriptions
2-418
NJ-series Instructions Reference Manual (W502)
DispartReal
The DispartReal instruction separates a real number into the signed mantissa and the exponent.
*1 If you omit the input parameter, the default value is not applied. A building error will occur.
*2 The valid ranges depend on the data types of In and Fraction. Refer to Function for details.
*3 If In is REAL data, −44 to 32. If In is LREAL data, −322 to 294
The DispartReal instruction separates real number In into signed mantissa Fraction and exponent
Exponent.
If In is REAL data, Fraction is a 7-digit integer. If In is LREAL data, Fraction is a 15-digit integer.
Instruction Name FB/FUN Graphic expression ST expression
DispartReal Separate Mantissa
and Exponent
FUN Out:=DispartReal(In, Frac-
tion, Exponent);
Variables
Name Meaning I/O Description Valid range Unit Default
In Real num-
ber
Input Real number to separate Depends on data type.
--- *1
Out Return
value
Output
Always TRUE TRUE only
--- ---Fraction Signed
mantissa
Signed mantissa *2
Exponent Exponent Exponent *3
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK OK
Out OK
Fraction Must be DINT if the data type of In is REAL and LINT if the data type of In is LREAL.
Exponent OK
Function
(@)DispartReal
EN ENO
In Out
Fraction
Exponent