On this page
Xinje Internal
Xinje PLC internal TCP protocol 24-bit address read/write driver.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| Xinje XD/XL-series PLCs exposing the internal TCP protocol | Enable the matching internal TCP service and use the 24-bit address rules used by this plugin. Use Xinje Modbus for Modbus interfaces. |
Configure Ethernet in the PLC
This driver accesses 24-bit logical addresses over TCP. Use an interface that supports Xinje internal extension commands. For a standard Modbus slave interface, select Xinje Modbus.
- Connect the programming cable and open the project for the actual CPU in XDPPro. Open
PLC Config → ethernetand selectRead From PLCto retrieve the current parameters. - For a fixed address, select
Use the following IP address. This example uses PLC IP192.168.1.10, mask255.255.255.0, and a different address in the same subnet for the gateway host.

The window is from Xinje’s TCP/IP communication based on Ethernet, version 1.4.3, for the Ethernet models covered by that manual.
- Select
Write To PLCand restart the PLC as required by its model. With XINJEConfig, selectPLC, connect to the device, and openEthernet → General. Select the physical Ethernet port andUse Static IP. The vendor illustration uses192.168.6.6; the gateway example below uses192.168.1.10.

The XINJEConfig illustration is version 2.3.0.9. Read retrieves the PLC settings; Write applies changes. Closing the dialog alone does not download parameters.
- Connect the PLC and gateway host through Ethernet. Check link LEDs and IP reachability. Enter the internal protocol service port configured for the CPU/module; this example uses
502. XNet programming connections and EtherNet/IP use different messages.
Create the channel and device
Open collection configuration and create a TcpClient channel with remote address 192.168.1.10:502. Leave the bind address empty for normal routing, or select the appropriate local interface on a host with multiple adapters. Leave SSL off for a plain PLC TCP interface.

Only TCP client channels are supported. Use maximum concurrency 1; the driver exchanges one request at a time. Channel connection timeout applies to TCP establishment, while the plugin read/write timeout applies to protocol responses.
Create a device, select Xinje Internal, associate the channel and use an execution interval such as 1000 ms. Configure addresses before enabling the channel and device. See Collection configuration for shared fields.

Plugin properties

| Property | Purpose and setting |
|---|---|
| Default station | Default 1, range 1–247. Match the target station. A variable prefix such as s=2; overrides it. IP selects the network endpoint; station selects the protocol target. |
| Maximum logical packing quantity | Default 120. Limits a contiguous read plan in bits for Boolean areas and 16-bit WORDs for numeric areas. Reduce it when the PLC rejects a large range. The driver also splits requests at 1920 bits or 120 WORDs per read frame. It is neither a byte count nor a variable count. |
| Read/write timeout | Default 3000 ms. Bounds the wait for a complete response. Allow for network and PLC response time; a larger timeout does not fix an incorrect port. |
| Delay before frame | Default 0 ms. Adds a delay before each request, including split requests. Increase only when the target requires spacing. |
| Retry count | Default 3. Retries extend a failed polling cycle. Correct unsupported addresses rather than increasing retries. |
| Read/write duty cycle | Default 3, minimum 1. Schedules a read after the specified number of writes under sustained write traffic. |
| Write priority | Off by default. Allows writes to cancel an in-progress polling read. Frequent writes can delay displayed values. |
| Reverse string bytes within WORD | Off by default. Enable for reversed character pairs within PLC WORDs. Does not change numeric byte order. |
| Data order | Default CDAB; alternatives are ABCD, BADC and DCBA. Match the actual multi-WORD representation. Override a single unusual point in its address editor. |

Variables and addresses
For a signed 16-bit PLC value at D100, create Xinje_Internal_D100, select this device, enter address D100, type Int16, array length 1 and read-only access. A PLC value of 1234 should appear identically in the PLC monitor and gateway.

Enter PLC device names rather than Modbus 4xxxx reference numbers. The selected CPU must actually provide the requested device range.
| Address class | Read/write areas | Read-only areas and numbering |
|---|---|---|
| Boolean bits | Y, M, SM, T, C, for example M100 | X, S, HSC, ET, HM, HS, HT, HC. X/Y use octal: X10 is continuous bit 8; X8 is invalid. |
| 16-bit WORDs | D, SD, TD, CD, HD, FD, ETD, HTD, HCD, HSD | HSCD, SFD, ID, QD. Other numbers are decimal, for example D100. |
Logical addresses and the end of a contiguous range must fit 0–16777215. That encoding range does not imply that every CPU provides all those devices. Internal does not accept WORD bit addresses such as D100.0; use a supported bit area or read the complete WORD and extract its bit.
Select Field editor beside the address. Enter supported extended device names directly when they are absent from the shared area list.

| Address field | Setting and effect |
|---|---|
| Device area / offset | Select D and enter 100. Boolean requires a supported bit area; numeric types require WORD areas. |
| Bit index | Leave unset. This driver does not support WORD bit access even though the shared editor offers the control. |
| Station override | Select and enter 1–247, for example s=2;D100; otherwise use the device station. |
| Byte order override | Overrides the device conversion for this variable, for example data=ABCD;D100. Names describe the byte arrangement of a four-byte value. |
| Encoding override | Match the actual String encoding, such as encoding=ASCII; or encoding=UTF-8;. Numeric points do not need it. |
| String byte length | For example len=10;D200 occupies 5 WORDs. Count encoded bytes, not characters. |
| BCD override | Select the actual BCD/Gray representation only when used by the PLC, for example bcd=C8421;. Leave unset for normal binary values. |
| Variable-length string override | Use only with the corresponding length-bearing string layout. Leave unset for a fixed character area; encoding and byte length still must match. |
Int32, UInt32 and Float occupy two WORDs; Int64, UInt64 and Double occupy four. Array length counts elements of that type: D100, Int32, length 3 covers D100–D105. Boolean arrays advance through consecutive bits. There are no additional plugin-specific variable properties or special methods. Shared alarms, expressions and RPC settings are documented in collection configuration.
Compare values and diagnose
- Monitor
D100online in XDPPro and confirm its type and value. Choose a non-control observation point that the program does not immediately overwrite. - Enable the channel, device and variable. Compare the gateway value and check that collection timestamps keep advancing.
- For a single request, open Protocol debugging → Read/write and read
D100,Int16, length1. Use Messages to inspect the request and response. - For write checks, use an allowed non-control writable area, configure write permission and method invocation, read back the result, and restore the original value as required. Read-only PLC areas remain read-only regardless of gateway permission.
For no response, check IP, port, station and internal extension support. For address rejection, check the area, type and WORD-bit syntax. For incorrect floating-point values, check consecutive WORDs and CDAB order. For reversed character pairs, check string byte reversal.
Related operations
- Xinje Modbus: XC/XD/XL mapping, RTU and mixed TCP access.
- Collection configuration: shared channel, device, variable and access fields.