Data Type Conversion Functions Convert To Double Precision Signed Integer - Emerson PaCSystems VersaMax Series User Manual

Table of Contents

Advertisement

User Manual
GFK-1503F
Example
In the example, whenever input %I0002 is set, the BCD-4 value in PARTS is converted to a
signed integer and passed to the Addition function, where it is added to the signed integer
value represented by the reference RUNNING. The sum is output by the Addition function
to the reference TOTAL.
Figure 114
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.
Figure 115
Note that loss of precision can occur when converting from Real-type data to Double-
Precision Integer, because Real data has 24 significant bits.
Parameters of the Convert to Double Precision Signed
Integer Function
Input/
Output
enable
IN
ok
Instruction Set Reference
Choices
flow
I, Q, M, T, G, R, AI, AQ,
constant
flow, none
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.
Chapter 10
Jan 2020
136

Advertisement

Table of Contents
loading

Table of Contents