Before starting the configuration, ensure the following preparations are complete:
Follow these steps within the E2C Trinity Web interface.
| Parameter | Description | Example |
|---|---|---|
| Name | Name of the device for identification. | Advantech-IO-01 |
| Protocol | Select "Modbus RTU". | Modbus RTU |
| Connection Channel | Select the corresponding physical serial port (e.g., Serial 1 or COM1). | COM1 |
| Slave ID | The Slave Address of the device (Range: 1-247). | 1 |
| Poll Interval | Frequency of data acquisition (Unit: Seconds). | 10 |
| High-speed DAQ Config | Enable for millisecond-level acquisition. Note: Groups are auto-generated and tags cannot be modified after publishing. | Enabled |
| High-speed Poll Interval | Options: 50ms, 100ms, 200ms, 500ms. | 100ms |
| Package Quantity | Number of polls before reporting (Supports 10, 20, 30). | 10 |
| Comm. Interval | Minimum interval between two communication requests (0-1000ms). | 10 |
| Batch Read | Recommended to enable for improved efficiency. | Enabled |
| Max Batch Size | Max registers per request (Range: 2-125). | 64 |
| Byte Order | Arrangement of data bytes (e.g., ABCD, BADC). Global default for this device. | ABCD |
| Serial Parameters | Displays Baud Rate, Data Bit, etc., based on the selected channel for verification. | - |
| Parameter | Description | Example |
|---|---|---|
| Name | Unique identifier for the tag used in data reports. | Inlet_Pressure |
| Acquisition Type | Choose "High Performance" (if high-speed is enabled) or "Normal". | Normal |
| Tag Type | Device Tag (PLC data) or Virtual Tag (internal calculation). | Device Tag |
| Function Code | Select based on register type (e.g., 03 Holding Register). | 03 |
| Address | Decimal Modbus address (e.g., 40001 corresponds to Address 1). | 1 |
| Data Type | Must match the device (e.g., short, float). | short (int16) |
| Invert | Bool only: Flips the 0/1 status if enabled. | Off |
| Decimal Places | Float/Double only: Number of decimal points to display. | 2 |
| Encoding | String only: Supports ASCII, UTF8, etc. | UTF8 |
| Length | String only: Defines the string length to read. | 10 |
| Access Right | Read Only, Read/Write, or Restricted by FC. | Read Only |
| Unit | Physical unit (e.g., Mpa, ℃, Hz). | Mpa |
Data Type Mapping
When configuring tags in E2C Trinity, use the following mapping:
| E2C Trinity Data Type | Length / Sign | Device/PLC Type | Typical Address | Notes & Precautions |
|---|---|---|---|---|
| bool | 1 bit | BOOL / Coil | 00001 / 10001 | Coils are R/W; Discrete Inputs are Read-only. Supports Invert. |
| byte | 8 bit Unsigned | BYTE (USInt) | - | Pay attention to high/low byte mapping. |
| ushort (uint16) | 16 bit Unsigned | WORD (UInt) | 40001 / 30001 | 16-bit aligned; Range 0–65535. |
| short (int16) | 16 bit Signed | INT | 40002 / 30002 | Range -32,768 to 32,767. |
| uint (uint32) | 32 bit Unsigned | DWORD (UDInt) | 40003–40004 | Requires 2 registers; Range 0–4,294,967,295. |
| int (int32) | 32 bit Signed | DINT | 40005–40006 | Range -2,147,483,648 to 2,147,483,647. |
| ulong (uint64) | 64 bit Unsigned | - | 40006–40009 | Occupies 4 consecutive registers. |
| long (int64) | 64 bit Signed | LINT | 40010–40013 | Occupies 4 consecutive registers. |
| float (float32) | 32 bit IEEE | REAL | 40014–40015 | May require Byte Order adjustment; supports Decimal Places. |
| double (double64) | 64 bit IEEE | LREAL | 40015–40018 | High variance in byte order across devices. |
| string | 1...n Bytes | STRING[n] | From 40020 | Stored by encoding; verify Encoding and Length. |