10.4.3
Data Type Conversion Functions Convert to
Double Precision Signed Integer
The Convert to Double Precision Signed Integer function outputs the double precision
signed integer equivalent of real data. The original data is not changed by this function.
When the function receives power flow, it performs the conversion, making the result
available via output Q. The function always passes power flow when power is received,
unless the real value is out of range.
Value to be converted
OK
Enable
REAL
TO
_
DINT
IN
Output
Q
Note that loss of precision can occur when converting from Real-type data to Double-
Precision Integer, because Real data has 24 significant bits.
10.4.3.1
Parameters of the Convert to Double Precision
Signed Integer Function
Input/
Output
Choices
Description
enable
flow
When the function is enabled, the conversion is
performed.
IN
I, Q, M, T, G, R, AI, AQ,
constant
Constant or reference for the value to be
converted
ok
flow, none
OK is energized whenever enable is energized,
unless the real value is out of range.
Q
R, AI, AQ
Reference that contains the double precision
signed integer form of the original value.
10.4.3.2
Example
In the example, whenever input %I0002 is set, the integer value at input location %I0017
is converted to a double precision signed integer and the result is placed in location %
R0001. The output %Q1001 is set whenever the function executes successfully.
%I0002
%I0017
%R0001
%Q1001
INT_
TO
DINT
IN Q
158
GFK-1503E
VersaMax PLC User Manual
For public disclosure
Содержание VersaMax PLC
Страница 1: ...GE Intelligent Platforms GFK 1503E VersaMax PLC User Manual September 2015 For public disclosure ...
Страница 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 317: ......
Страница 318: ...GE Intelligent Platforms 1 800 433 2682 1 434 978 5100 www ge ip com GFK 1503E For public disclosure ...