Appendix B: Data Types

<< Click to Display Table of Contents >>

Navigation:  LCR.iQ Product Manual >

Appendix B: Data Types

For data types D, F, SI, SL, SS, UI, UL, US, and V, the least significant byte of the data is stored at the lowest address with each subsequent byte being stored at the next incremented address. For example, a two byte unsigned short equal to 1,000 and placed at offset 4 in a message or record would be stored as an E8h at offset 4 and a 03h at offset 5.

 

Type

Name

Description

A

ASCII Character

Contains a one byte ASCII character.  The number of characters stored in the field is Size.

AZ

ASCIIZ String

Contains a NUL terminated string of ASCII characters.  The maximum length of the string is Size-1.

B

Boolean

Contains a Boolean value of TRUE or FALSE.

D

Double Floating Point

Contains an eight byte floating point number in IEEE-754 format.

F

Floating Point

Contains a four byte floating point number in IEEE-754 format.

LF

LCR Flow Rate

Contains a signed four byte integer in the range -2147483648 to 2147483647 with an implied decimal point defined by the decimals field in the record.

LL

LCR List

Contains a one byte unsigned integer in the range of 0 to 255.

LV

LCR Volume

Contains a signed four byte integer in the range -2147483648 to 2147483647 with an implied decimal point defined by the decimals field in the record.

SB

Signed Byte

Contains a one byte signed integer in the range -128 to 127.

SI

Signed Integer

Contains a signed integer in which the range is operating system dependent. On 16-bit machines, it is a two-byte signed integer in the range ­-32768 to 32767.  On 32-bit machines, it is a four-byte signed integer in the range -2147483648 to 2147483647.

SL

Signed Long

Contains a four byte signed integer in the range -2147483648 to 2147483647.

SS

Signed Short

Contains a two byte signed integer in the range -32768 to 32767.

ST

Structure

Data element is a structure that varies depending on the structure definition.

UB

Unsigned Byte

Contains a one-byte unsigned integer in the range of 0 to 255.

UI

Unsigned Integer

Contains an unsigned integer in which the range is OS-dependent. On 16-bit machines, it's a two byte unsigned integer in the range 0 to 65535. On 32-bit machines, it's a four byte unsigned integer in the range 0 to 4294967295.

UL

Unsigned Long

Contains a four byte unsigned integer in the range 0 to 4294967295.

UN

Union

Data element is a union. The contents vary with the union definition.

US

Unsigned Short

Contains a two-byte unsigned integer in the range 0 to 65535.