Xinje PLC Modbus RTU
Xinje PLC Modbus RTU via the Site Runtime xinje-modbus-rtu (XD/XL/XC letter addresses).
| Property | Value |
|---|---|
| Console protocol id | xinje-modbus-rtu |
| Site Runtime plugin | xinje-modbus-rtu |
| Transport | Serial (RS-232/RS-485), some families also over TCP |
| Read | yes |
| Write | yes — through approved writes |
| Subscribe | — |
| Device families | Xinje XD, Xinje XL, Xinje XC |
| Default group interval | 1000 ms |
| Maturity | Production: complete driver (connection handling, address forms, batching, read and write) |
Create the device
- Open Connectivity → Devices and click Add device.
- Pick Xinje PLC Modbus RTU in the protocol list and make sure the Site Runtime host has the serial port.
- Choose the Site Runtime that can reach the device, fill the connection parameters below and click Create & connect.
- Add a group (poll interval) and tags with the address formats below. See Devices and Groups and tags for the full walk-through.
Connection parameters
Every field the Console shows for this protocol. Required fields must be set before the device can be saved.
| Parameter | Type | Default | Range / options | Required | Description |
|---|---|---|---|---|---|
PLC Modelmodel | map | XD1/XD2/XD3/XL1/XL3 | XD1/XD2/XD3/XL1/XL3, XD5/XDM/XDC/XD5E/XDME/XL5/XL5E/XL5N/XLME, XDH/XLH, XC1/XC2/XC3/XC5/XCM/XCC | yes | |
Physical Linklink | map | Serial | Serial, Ethernet | yes | Serial or Ethernet |
Connection Timeout (ms)timeout | int | 3000 | 1000 – 30000 | yes | |
Maximum Retry Timesmax_retries | int | 0 | 0 – 5 | yes | The maximum number of retries after a failed attempt to send a read command |
Retry Interval (ms)retry_interval | int | 0 | 0 – 10000 | yes | |
Endiannessendianess | map | ABCD | ABCD, BADC, DCBA, CDAB | yes | Tag byte order, ABCD corresponds to 1234 |
Send Interval (ms)interval | int | 20 | 0 – 3000 | yes | |
Serial Devicedevice | string | — | max 30 chars | yes | Shown when Physical Link = Serial. |
Stop Bitsstop | map | 1 | 1, 2 | yes | Shown when Physical Link = Serial. |
Parityparity | map | none | none, odd, even, mark, space | yes | Shown when Physical Link = Serial. |
Baud Ratebaud | map | 9600 | 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200 | yes | Shown when Physical Link = Serial. |
Data Bitsdata | map | 8 | 5, 6, 7, 8 | yes | Shown when Physical Link = Serial. |
IP Addresshost | string | — | — | yes | Local IP in server mode, remote device IP in client mode Shown when Physical Link = Ethernet. |
Portport | int | 502 | 1 – 65535 | yes | Local port in server mode, remote device port in client mode Shown when Physical Link = Ethernet. |
Connection Modeconnection_mode | map | Client | Client, Server | yes | MakeIntelligent as the client, or as the server Shown when Physical Link = Ethernet. |
Tag addresses and data types
Supported data types: INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, BIT, STRING, BYTES. The Console validates each tag address against the pattern for its data type before it is saved:
| Data types | Address pattern (regular expression) |
|---|---|
INT16 UINT16 INT64 UINT64 DOUBLE | ^[0-9]+!((D|ID|QD|SD|TD|CD|ED|ETD|HD|HSD|HTD|HCD|HSCD|FD|SFD|FS)\d+)(#B|#L|)$ |
INT32 UINT32 FLOAT | ^[0-9]+!((D|ID|QD|SD|TD|CD|ED|ETD|HD|HSD|HTD|HCD|HSCD|FD|SFD|FS)\d+)(#BB|#BL|#LL|#LB|)$ |
BIT | ^[0-9]+!(((M|X|Y|S|SM|T|C|ET|SEM|HM|HS|HT|HC|HSC)\d+)|((D|ID|QD|SD|TD|CD|ED|ETD|HD|HSD|HTD|HCD|HSCD|FD|SFD|FS)\d+\.([0-9]|[0-1][0-5])))$ |
STRING | ^[0-9]+!((D|ID|QD|SD|TD|CD|ED|ETD|HD|HSD|HTD|HCD|HSCD|FD|SFD|FS)\d+)\.\d+(H|L|)$ |
BYTES | ^[0-9]+!((D|ID|QD|SD|TD|CD|ED|ETD|HD|HSD|HTD|HCD|HSCD|FD|SFD|FS)\d+)\.\d+$ |