Skip to main content

Xinje PLC Modbus RTU

Device Production Serial

Xinje PLC Modbus RTU via the Site Runtime xinje-modbus-rtu (XD/XL/XC letter addresses).

PropertyValue
Console protocol idxinje-modbus-rtu
Site Runtime pluginxinje-modbus-rtu
TransportSerial (RS-232/RS-485), some families also over TCP
Readyes
Writeyes — through approved writes
Subscribe—
Device familiesXinje XD, Xinje XL, Xinje XC
Default group interval1000 ms
MaturityProduction: complete driver (connection handling, address forms, batching, read and write)

Create the device​

  1. Open Connectivity → Devices and click Add device.
  2. Pick Xinje PLC Modbus RTU in the protocol list and make sure the Site Runtime host has the serial port.
  3. Choose the Site Runtime that can reach the device, fill the connection parameters below and click Create & connect.
  4. 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.

ParameterTypeDefaultRange / optionsRequiredDescription
PLC Model
model
mapXD1/XD2/XD3/XL1/XL3XD1/XD2/XD3/XL1/XL3, XD5/XDM/XDC/XD5E/XDME/XL5/XL5E/XL5N/XLME, XDH/XLH, XC1/XC2/XC3/XC5/XCM/XCCyes
Physical Link
link
mapSerialSerial, EthernetyesSerial or Ethernet
Connection Timeout (ms)
timeout
int30001000 – 30000yes
Maximum Retry Times
max_retries
int00 – 5yesThe maximum number of retries after a failed attempt to send a read command
Retry Interval (ms)
retry_interval
int00 – 10000yes
Endianness
endianess
mapABCDABCD, BADC, DCBA, CDAByesTag byte order, ABCD corresponds to 1234
Send Interval (ms)
interval
int200 – 3000yes
Serial Device
device
string—max 30 charsyesShown when Physical Link = Serial.
Stop Bits
stop
map11, 2yesShown when Physical Link = Serial.
Parity
parity
mapnonenone, odd, even, mark, spaceyesShown when Physical Link = Serial.
Baud Rate
baud
map9600150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200yesShown when Physical Link = Serial.
Data Bits
data
map85, 6, 7, 8yesShown when Physical Link = Serial.
IP Address
host
string——yesLocal IP in server mode, remote device IP in client mode Shown when Physical Link = Ethernet.
Port
port
int5021 – 65535yesLocal port in server mode, remote device port in client mode Shown when Physical Link = Ethernet.
Connection Mode
connection_mode
mapClientClient, ServeryesMakeIntelligent 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 typesAddress 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+$