Data Type Conversion Functions Convert To Double Precision Signed Integer - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Input/
Output
enable
IN
ok
Q
%I0002
%I0017
158
GFK-1503E
For public disclosure
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.
Enable
Value to be converted
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
Choices
flow
I, Q, M, T, G, R, AI, AQ,
constant
flow, none
R, AI, AQ
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.
IN Q
%R0001
OK
_
IN
Q
Output
Description
When the function is enabled, the conversion is
performed.
Constant or reference for the value to be
converted
OK is energized whenever enable is energized,
unless the real value is out of range.
Reference that contains the double precision
signed integer form of the original value.
%Q1001
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents