Supported data types
- Last UpdatedSep 16, 2024
- 1 minute read
The data type is specified as a suffix in the item syntax.This Communication Driver supports the following datatypes.
|
DataType |
Suffix |
Description |
Range of Values |
|
Boolean |
by bit |
Single bit. |
0 or 1 |
|
Short |
@Short, S |
Signed, 16-bit decimal. Bit0 is the low bit. Bit14 is the high bit. Bit 15 is the sign bit. |
-32768 to 32767 |
|
Word |
@Word, U |
Unsigned, 16-bit decimal. Bit0 is the low bit. Bit15 is the high bit. |
0 to 65535 |
|
Long |
@Long, L |
Signed, 32-bit decimal. Bit0 is the low bit. Bit30 is the high bit. Bit 31 is the sign bit. |
-2147483648 to 2147483647 |
|
DWord |
@DWord |
Unsigned, 32-bit decimal. Bit0 is the low bit. Bit31is the high bit. |
0 to 4294967295 |
|
Float |
@Float, F |
32-bit real number. |
N/A |
|
BCD |
@BCD, B |
Two-byte packed BCD. Value range is 0–9999. Behavior is undefined for values beyond this range. |
0 to 9999 |
|
LBCD |
@LBCD, M |
Four-byte packed BCD. Value range is 0–99999999. Behavior is undefined for values beyond this range. |
0 to 99999999 |
|
String |
C |
Null terminated ASCII string. |
2 to 80 characters per string |