Technical data

12
907 KP 95 / Issued: 09.97
CEs
REALDW REAL TO DOUBLE WORD CONVERSION
FBD/IL
REALDW
E1 A1
Q
ERR
MD 00,02 MD 04,00
M 05,00
REALDW
E1 A1
Q
ERR
IL
!BA
REALDW
0
MD 00,02
MD 04,00
M 05,00
M 05,01
M 05,01
Parameter
E1 DOUBLE WORD KD, MD double word to be converted
A1 DOUBLE WORD MD result of the conversion, double word
Q BINARY A, M result limited
ERR BINARY A, M error occurred (Not a Number)
____________________________________________________________________________________________
Description
The real value (IEEE 754) at input E1 is converted into a
double word value. The result is allocated to the double
word operand at the output A1. This function module is
appropriate in conjunction with the function module
DSPIN only. With that it is possible to transmit real values
via the Advant Fieldbus 100.
The result is limited to maximum or minimum number
range.
max. number range: + 2 147 483 647 (7FFF FFFF
H
)
min. number range: 2 147 483 647 (8000 0001
H
)
E1 DOUBLE WORD
The real value (IEEE 754) at input E1 is converted into a
double word value . The result is available as value of the
output A1.
A1 DOUBLE WORD
The double word value of E1
is available at output A1.
Q BINARY
If a limitation took place, a 1 signal is allocated to the bi-
nary operand at output Q.
If no limitation took place, a 0 signal is allocated to the bi-
nary operand at output Q.
ERR BINARY
If the real value represents Not a Number, the following
is valid:
A1 = 0 and Q = 0 and ERR = 1.
The inputs and outputs can neither be doubled nor in-
verted.
represented value
s: sign (1 bit)
e: biased exponent (8 bits)
f: significant (23 bits)
Data formats in accordance with IEEE754
S
ef
e
255
255
1...254
0
0
f
!0 Not a Number, NaN
0(–1)
s
*
infinite
(–1)
s
*
2
e–127
*
(1.f)
!0 (–1)
s
*
2
126
*
(0.f)
0(–1)
s
*
0, zero
31 30 23 22 0
____________________________________________________________________________________________