Skip to Content
On this page

Xinje Internal

Xinje PLC internal TCP protocol 24-bit address read/write driver.

Compatible devices and models

Device series / model examplesConnection requirements
Xinje XD/XL-series PLCs exposing the internal TCP protocolEnable 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.

  1. Connect the programming cable and open the project for the actual CPU in XDPPro. Open PLC Config → ethernet and select Read From PLC to retrieve the current parameters.
  2. For a fixed address, select Use the following IP address. This example uses PLC IP 192.168.1.10, mask 255.255.255.0, and a different address in the same subnet for the gateway host.

XDPPro ethernet Set with PLC parameter read and write buttons

View original image

The window is from Xinje’s TCP/IP communication based on Ethernet, version 1.4.3, for the Ethernet models covered by that manual.

  1. Select Write To PLC and restart the PLC as required by its model. With XINJEConfig, select PLC, connect to the device, and open Ethernet → General. Select the physical Ethernet port and Use Static IP. The vendor illustration uses 192.168.6.6; the gateway example below uses 192.168.1.10.

XINJEConfig Ethernet General with static IP, mask and Write

View original image

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.

  1. 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.

Xinje Internal TcpClient channel and remote endpoint

View original image

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.

Xinje Internal device identity, channel and interval

View original image

Plugin properties

Internal station, logical packing and request settings

View original image

PropertyPurpose and setting
Default stationDefault 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 quantityDefault 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 timeoutDefault 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 frameDefault 0 ms. Adds a delay before each request, including split requests. Increase only when the target requires spacing.
Retry countDefault 3. Retries extend a failed polling cycle. Correct unsupported addresses rather than increasing retries.
Read/write duty cycleDefault 3, minimum 1. Schedules a read after the specified number of writes under sustained write traffic.
Write priorityOff by default. Allows writes to cancel an in-progress polling read. Frequent writes can delay displayed values.
Reverse string bytes within WORDOff by default. Enable for reversed character pairs within PLC WORDs. Does not change numeric byte order.
Data orderDefault CDAB; alternatives are ABCD, BADC and DCBA. Match the actual multi-WORD representation. Override a single unusual point in its address editor.

Internal scheduling and CDAB conversion settings

View original image

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.

Internal D100 Int16 variable with one element

View original image

Enter PLC device names rather than Modbus 4xxxx reference numbers. The selected CPU must actually provide the requested device range.

Address classRead/write areasRead-only areas and numbering
Boolean bitsY, M, SM, T, C, for example M100X, S, HSC, ET, HM, HS, HT, HC. X/Y use octal: X10 is continuous bit 8; X8 is invalid.
16-bit WORDsD, SD, TD, CD, HD, FD, ETD, HTD, HCD, HSDHSCD, 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.

Internal address editor with conversion, D area, offset 100 and station override

View original image

Address fieldSetting and effect
Device area / offsetSelect D and enter 100. Boolean requires a supported bit area; numeric types require WORD areas.
Bit indexLeave unset. This driver does not support WORD bit access even though the shared editor offers the control.
Station overrideSelect and enter 1–247, for example s=2;D100; otherwise use the device station.
Byte order overrideOverrides the device conversion for this variable, for example data=ABCD;D100. Names describe the byte arrangement of a four-byte value.
Encoding overrideMatch the actual String encoding, such as encoding=ASCII; or encoding=UTF-8;. Numeric points do not need it.
String byte lengthFor example len=10;D200 occupies 5 WORDs. Count encoded bytes, not characters.
BCD overrideSelect the actual BCD/Gray representation only when used by the PLC, for example bcd=C8421;. Leave unset for normal binary values.
Variable-length string overrideUse 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

  1. Monitor D100 online in XDPPro and confirm its type and value. Choose a non-control observation point that the program does not immediately overwrite.
  2. Enable the channel, device and variable. Compare the gateway value and check that collection timestamps keep advancing.
  3. For a single request, open Protocol debugging → Read/write and read D100, Int16, length 1. Use Messages to inspect the request and response.
  4. 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.