Before starting the configuration, please ensure the following:
Follow these steps within the E2C Trinity Web interface.
| Parameter | Description | Example |
|---|---|---|
| Name | Unique identifier for the source device. | Packaging-Machine-03 |
| Driver | Communication protocol; select "Modbus TCP". | Modbus TCP |
| IP Address | The IP address of the target PLC/Device. | 192.168.0.3 |
| Port Number | TCP communication port; Default is 502. | 502 |
| Slave Address | The Modbus Slave ID of the device. | 1 |
| Polling Cycle | Frequency of data requests (Seconds). | 10 |
| Description | Additional info for user reference. | Machine 03 in Workshop A. |
| Enable High-speed Collection Mode | Supports millisecond-level data acquisition. Once published, the system automatically generates high-speed collection groups. Note: High-speed tags and their information cannot be modified after generation; only regular tags can be maintained. To change high-speed settings, create a new device. | Enabled |
| High-speed Polling Cycle | Must be selected when high-speed mode is enabled. Supported intervals: 50ms, 100ms, 200ms, 500ms. | 100ms |
| Package Count | Must be selected when high-speed mode is enabled. Defines how many polling cycles occur before data is reported as a batch. Supported values: 10, 20, 30. | 30 |
| Connection Timeout | Limit for establishing a TCP connection (ms). | 10000 |
| Collection Timeout | Limit for the device to respond to requests (ms). | 1000 |
| Communication Interval | Minimum time between two requests (ms). | 10 |
| Enable Batch Collection | Enabled by default for efficiency. | Enabled |
| Max Batch Count | Max data points per batch request (Default 64). | 64 |
| Byte Order Settings | Sequence of data bytes (Default ABCD). | ABCD |
| Parameter | Description | Example |
|---|---|---|
| Name | The tag name used in data reports and MQTT payloads. | Temperature |
| Collection Type | If High-speed Collection Mode is enabled for the device, you can choose between High-performance or Normal. Otherwise, it defaults to Normal. | Normal |
| Tag Type | Device Tag: Data from the PLC. Virtual Tag: Intermediate gateway-side variable. |
Device Tag |
| Function Code | Select the appropriate Modbus Function Code (01-04). | 03 Holding Register |
| Address | Enter the Modbus address (Decimal). Ensure it falls within the range of the selected register type (e.g., 40001 for the first holding register). For High-speed Collection, it is recommended to use consecutive addresses to optimize acquisition performance. | 1 |
| Data Type | Must match the PLC's data format (e.g., short, float). | short (int16) |
| Read/Write Permission | Read Only: Gateway only reads. Read/Write: Gateway can also modify values. |
Read Only |
| Decimals | Number of decimal places (for Float/Double). | 2 |
| Unit | Engineering units (e.g., °C, KWh, pcs). | pcs |
| Associated Group | Assign the tag to a specific data group. | - |
| Description | Brief explanation of the tag's purpose. | Total production count. |
| Data Operation | Mathematical processing (Scaling, Offset, etc.). | None |
Data Type Mapping
When configuring tags in E2C Trinity, use the following mapping:
| E2C Trinity Type | Length / Sign | PLC Equivalent | Example Address | Notes |
|---|---|---|---|---|
| bool | 1 bit | BOOL | 00001 / 10001 | Coil (R/W), Discrete Input (RO) |
| byte | 8 bit (Unsigned) | BYTE / USINT | - | - |
| ushort (uint16) | 16 bit (Unsigned) | WORD / UInt | 40001 / 30001 | 16-bit aligned, range 0–65535 |
| short (int16) | 16 bit (Signed) | INT | 40002 / 30002 | Range -32768 to 32767 |
| uint (uint32) | 32 bit (Unsigned) | DWORD / UDInt | 40003~40004 | 2 registers; 0–4,294,967,295 |
| int (int32) | 32 bit (Signed) | DINT | 40005~40006 | 2 registers |
| float (float32) | 32 bit (IEEE) | REAL | 40014~40015 | May require Byte Order adjustment |
| string | 1...n Bytes | STRING[n] | 40020... | Check character encoding (ASCII/UTF8) |