Data Type Conversion Functions Convert To Real Data - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Input/ Output
enable
IN
ok
Q
Instruction Set Reference
For public disclosure
10.4.4 Data Type Conversion Functions Convert to
Real Data
The Convert to Real function outputs the real value equivalent of the input 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 passes power flow when power is received, unless
the specified conversion would result in a value that is out of range.
Note that loss of precision can occur when converting from Double-Precision Integer to
Real data, because since the number of significant bits is reduced to 24.
Enable
Value to be converted
10.4.4.1 Parameters of the Convert to Real Function
Choices
flow
R, AI, AQ, constant
For INT only: I, Q, M, T, G
flow, none
R, AI, AQ
10.4.4.2 Example
In the example, the integer value of input IN is 678. The result value placed in %T0016 is
678.000.
%I0002
IN Q
%T0001
OK
Output
IN
Q
Description
When the function is enabled, the conversion is
performed.
IN contains a reference for the integer value to
be converted to Real.
OK is energized when the function is performed
without error.
The Real form of the original value in IN.
_
%R0016
GFK-1503E User Manual 159

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents