Data and Register Types
- Last UpdatedFeb 16, 2016
- 2 minute read
When a client sends a read/write request to the MBTCP OI Server, the OI Server needs to know its data type and size. In order to determine this information, the MBTCP OI Server parses the item name to get the register number, data type, and size. The OI Server builds messages with items sorted by PLC, register type, register number, and topic name, allowing the OI Server to optimize the number of registers that can be read in one scan command.
The following table contains the types of data for the Modicon controllers, TSX Quantum, TSX Momentum, TSX Premium, Generic Modbus (4-Digit, 5-Digit, and 6-Digit), Compact 984, and Modicon Micro, supported by the MBTCP OI Server.
|
TSX Quantum/ TSX Momentum/ |
Range |
|---|---|
|
Discrete (bit/Boolean) |
0 (zero), 1 (one) |
|
Signed Short Integer |
0 (zero) to |
|
Unsigned Short Integer |
-32768 to 32767 |
|
Signed Long Integer |
-2147483648 to |
|
Unsigned Long Integer |
0 (zero) to |
|
REAL (32-bit float) |
32-bit IEEE |
|
LONG REAL (64 bit float) |
64-bit IEEE |
|
Unsigned Long Long Integer |
0 to |
|
Signed Long Long Integer (signed 64-bit integer) |
-9,223,372,036,854,775,808 to |
|
String (ASCII) |
246 characters (Read) 200 characters (Write) |
Note: The unsigned integer data type "U" has a valid range of 0 (zero) to 2147483647 when accessed through DDE/SL client; for OPC clients the valid range is from 0 to 4294967295. System-defined types are not supported as block reads. A read on any of these data types returns only the first element.
The following table lists the PLC register types, the data types contained in the registers, and what each is processed as.
|
PLC Register Type |
Data Type Contained in the Register |
Processed As |
|---|---|---|
|
Discrete Output (Coil) |
Discrete |
Real Time Data |
|
Discrete Input |
Discrete |
Real Time Data |
|
Holding Register |
Discrete, Integer, Float, and String |
Real Time Data |
|
Input Register |
Discrete, Integer, Float, and String |
Real Time Data |
|
Extended Register |
Discrete, Integer, Float, and String |
Real Time Data |