beautypg.com

6 float32, 7 float64 – ProSoft Technology ILX56-MM User Manual

Page 92

background image

Reference

ILX56-MM ♦ ControlLogix Platform

User Manual

InRAx Message Manager for Industrial Communication

Page 92 of 112

ProSoft Technology, Inc.

February 6, 2012

6.3.5 INT64, UINT64, or QWORD

Source

Conversion

BOOL

The source value of zero or one is assigned to the destination.

INT8, UINT8, CHAR,
BYTE, INT16,

UINT16, WORD,

INT32, UINT32, or

DWORD

The source data value is assigned to the destination (sign extend where

appropriate).

INT64, UINT64, or

QWORD

The source value is copied directly to the destination possibly resulting in a

signed/unsigned value change.

FLOAT32 or

FLOAT64

The source value is rounded to the nearest INT64 value and the above
INT64 to 64 bit INT conversion rule applied. If the rounded source value will

not fit in an INT64 a conversion error will result.

STRING

The string is converted to INT64 and moved according to the above INT64
to 64 bit INT conversion rule. If the string could not be converted to INT64

(invalid chars, overflow, and so on) a conversion error will result.

6.3.6 Float32

Source

Conversion

BOOL

The source value of zero or one is assigned to the destination.

INT8, UINT8, CHAR,
BYTE, INT16,

UINT16, WORD,
INT32, UINT32,

DWORD, INT64,

UINT64, or QWORD

The source data value is assigned to the destination possibly resulting in a

loss of precision.

FLOAT32

Direct Assignment.

FLOAT64

If source val < -3.4e38 or source val > 3.4e38 a conversion overflow error
will result. Otherwise, the source value will be assigned to the destination

with a loss of precision.

STRING

The string (with possible exponent) is converted to FLOAT32. If the string
could not be converted to a FLOAT32 (invalid chars, overflow, and so on) a

conversion error will result.

6.3.7 Float64

Source

Conversion

BOOL

The source value of zero or one is assigned to the destination.

INT8, UINT8, CHAR,
BYTE, INT16,

UINT16, WORD,

INT32, UINT32,

DWORD, INT64,

UINT64, or QWORD

The source data value is assigned to the destination possibly resulting in a

loss of precision.

FLOAT32

The source data value is assigned to the destination.

FLOAT64

Direct assignment.

STRING

The string (with possible exponent) is converted to FLOAT64. If the string
could not be converted to a FLOAT64 (invalid chars, overflow, and so on) a

conversion error will result.