Before starting the configuration, please ensure the following preparations are complete:
I0.0, Q0.1, M10.2, DB1.DBD4.Follow these steps within the E2C Trinity Web interface.
| Parameter (UI Label) | Description | Example |
|---|---|---|
| Name | Unique name for the device. | Packing-Machine-03 |
| Driver | Communication protocol (Select S7). | S7 |
| IP Address | The IP address of the target PLC. | 192.168.0.3 |
| Port Number | TCP port for S7 communication (Default is 102). | 102 |
| Mode | Rack/Slot (Recommended) or TSAP. | Rack/Slot |
| PLC Type | The model series of the PLC. | S7-1200 |
| Rack Number | The PLC rack number. | 0 |
| Slot Number | The PLC slot number. | 0 |
| Polling Cycle | Frequency of data requests (in seconds). | 10 |
| Description | Additional information about the device. | Machine 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 connection (ms). | 1000 |
| Collection Timeout | Limit for PLC response (ms). | 1000 |
| Parameter (UI Label) | Description | |
|---|---|---|
| Name | The name of the point used in data reporting. | |
| 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 (for PLC data) or Virtual Tag (for gateway internal variables). | |
| Address Type | Memory area type: I, Q, M, DB, etc. | |
| DB Index | The DB number (required if Address Type is DB). | |
| Address | The specific offset/address value. | |
| Bit Offset | Used only for "bool" types to specify the specific bit. | |
| Data Type | Must match the PLC data type (e.g., short/int16, float). | |
| Read/Write Permission | Select Read Only or Read/Write. | |
| Decimal Places | Number of decimals (for float/double types). | |
| Unit | Measurement unit (e.g., °C, KWh). | |
| Associated Group | Categorize the tag into a specific group. | |
| Data Operation | Scaling or offset calculations (None, Offset/Scaling, Ratio). |
ping command in [System-Tools] to check communication with the PLC IP.Data Type Mapping
When configuring tags in E2C Trinity, use the following mapping:
| E2C Trinity Type | Length / Sign | Siemens PLC Corresponding Type | Typical Address Example | Notes & Cautions |
|---|---|---|---|---|
| bool | 1 bit | BOOL | M0.0, DB1.DBX0.1 | Bit-wise read/write; address must be in "word.bit" format; can be directly entered as "DB1.DBX0.1" in E2C Trinity |
| byte | 8 bit unsigned | BYTE (USInt) | DB1.DBB0, MB0 | Single byte; Siemens side USInt range: 0-255 |
| ushort (uint16) | 16 bit unsigned | WORD (UInt) | DB1.DBW0, MW0 | Must use even-byte address; enter "DB1.DBW0" in E2C Trinity |
| short (int16) | 16 bit signed | INT | DB1.DBW2, MW2 | Must use even-byte address; range: -32768…32767 |
| uint (uint32) | 32 bit unsigned | DWORD (UDInt) | DB1.DBD0, MD0 | Must be 4-byte aligned; range: 0…4294967295 |
| int (int32) | 32 bit signed | DINT | DB1.DBD4, MD4 | Must be 4-byte aligned; range: -2147483648…2147483647 |
| ulong (uint64) | 64 bit unsigned | (No direct native type) | Must use ARRAY[0..7] OF BYTEor STRUCT custom definition |
No native UInt64 in Siemens S7; must be handled as 8-byte array or split into two DWORDs manually |
| long (int64) | 64 bit signed | LINT (S7-1500 only) | DB1.DBD0 (occupies 8 B) | LINT not supported in S7-300/400; must use ARRAY[0..7] OF BYTEand convert on the host side |
| float (float32) | 32 bit IEEE | REAL | DB1.DBD8, MD8 | 4-byte aligned; range: ±3.4E38 |
| double (double64) | 64 bit IEEE | LREAL (S7-1500 only) | DB1.DBD12 (occupies 8 B) | LREAL not supported in S7-300/400; must use ARRAY[0..9] OF BYTEand convert on the host side |
| string | 1…n bytes | STRING[n] | DB1.STRING20 (max 20 characters) | Siemens STRING format: byte 0 = actual length, byte 1 = max length, followed by characters; in E2C Trinity, confirm if first 2 bytes are skipped automatically, otherwise offset by 2 bytes manually before reading |
| Version | Date | Author | Changes |
|---|---|---|---|
| 1.0 | 2025-09-19 | Ken Li | Initial document creation. |