4

—>DINT (REAL)

The Convert to Double Precision Signed Integer function is used to output the double precision signed integer equivalent of real data. The original data is not changed by this function.

Note

The REAL data type is only available on 350 and 360 series CPUs, Release 9 or later, or on all releases of CPU352.

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)

(ok)

TO_

DINT

(value to be converted) —IN Q— (output parameter Q) _____

Parameters:

Parameter

Description

enable

When the function is enabled, the conversion is performed.

 

 

IN

IN contains a reference for the value to be converted to double precision integer.

 

 

ok

The ok output is energized whenever enable is energized, unless the real value is out of

 

range.

 

 

Q

Q contains the double precision signed integer form of the original value in IN.

 

 

Note

It is possible for a loss of precision to occur when converting from REAL to DINT since the REAL has 24 significant bits.

GFK-0467K

Chapter 4 Series 90-30/20/Micro Instructions Set

4-99

Page 180
Image 180
GE 90-30/20/Micro manual Dint Real