On this page
LS Electric XGT
Reads and writes PLC addresses through LS Electric Cnet or Fast Ethernet. LSIS is the manufacturer’s former name.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| XGT: XGK, XGI, XGR | Select the actual CPU series. Fast Ethernet requires an interface or module supporting the XGT dedicated server protocol, such as XGL-EFMTB. Cnet requires its corresponding serial service. |
| XGB (instruction-based or IEC) | Select the instruction-based or IEC XGB CPU type. Ethernet requires an interface exposing the corresponding dedicated protocol, such as XBL-EMTA. Modbus mode is not XGT Fast Ethernet. |
Enable communication in XG5000
Choose either the XGT server on FEnet or the XGT server on a Cnet serial channel. They use different frames. A PLC configured as a Modbus server, P2P station or user-frame service requires its corresponding protocol.
FEnet: Ethernet and XGT server settings
- Open an XG5000 project matching the actual CPU and communication module. Add the module under
Undefined Network, entering its base and slot. For an existing installation, read and check the I/O information. Double-click the FEnet module to openStandard Settings. - In
Basic, set the fixed IP address, subnet mask and gateway, and selectXGT serverasServer Mode. The official window below uses192.168.1.2 / 255.255.255.0; the gateway example uses the same IP. Configure routing at both ends when they are on different subnets.

This window is from LS ELECTRIC’s XGT FEnet User Manual V3.71 for the illustrated FEnet modules. Allocate dedicated connections according to the module and firmware: older versions expose 1–16, while V6 and later use different connection rules. The illustrated value 3 is not a universal limit.
- Connect the gateway to the XGT dedicated service over TCP 2004. UDP 2005 is a different transport, and programming port 2002 is not the collection port. If the project sets a custom service port, use that port instead.
- Check
Security. When a host table is enabled, allow the actual gateway IP and service port according to the site’s policy. The addresses and Block/Enable entries below are examples of where the rules are configured.

- Use
Online → Connect, thenOnline → Writeto download the selected module’s standard parameters. The manual requires resetting the PLC after writing; schedule this when the equipment may be stopped and reset. Editing the offline project alone does not change the running module.

Cnet: serial format, station and dedicated service
- Register the actual Cnet module in XG5000 and open
Standard Settings – Cnet. For the channel being used, select RS-232C, RS-422 or RS-485, its speed and station, and setOperation ModetoXGT server. The illustrated channel 1 uses RS-232C, 9600 bit/s and station 1. The channel 2 P2P settings are unrelated to that connection.

- Check data bits, stop bits, parity and modem type in
Advanced Settings. The direct connection shown uses8 / 1 / NONEandNull Modem; configure the gateway for 9600, 8 data bits, 1 stop bit and no parity. Change both ends when using a different format.

- Wire RS-232C TXD, RXD and signal ground using the module’s terminal definitions. For RS-422 check transmit/receive pairs; for RS-485 check polarity, reference ground and termination at the bus ends. Connector layouts vary by module. Do not assume that a module uses the PC serial connector’s pin numbers. Every bus station needs a unique address.
- Download the standard parameters with
Online → Write, reset the module, and inspectFrame MonitororStatus by ServiceunderCommunication Module Settings and Diagnosis → System Diagnosis. These Cnet windows are from LS ELECTRIC’s XGT Cnet User Manual V3.6.
A serial server or DTU must transparently carry Cnet ASCII frames with matching serial settings. It does not automatically convert them to FEnet.
Create the gateway channel and device
Open Development Configuration → Collection Configuration. Create a channel, then a device.
| Connection | Gateway configuration |
|---|---|
| FEnet | Select TcpClient, set remote address 192.168.1.2:2004, and change the device line protocol to FastEthernet. |
| Direct Cnet serial | Select SerialPort, choose the actual COM port and matching serial format, and keep Cnet. |
| Cnet through a transparent serial server | Select TcpClient, enter the serial server’s IP and transparent port, and keep Cnet. |
| Cnet through an incoming DTU | Select TcpService, bind the local listening address/port and match the DTU identity. Keep Cnet. |
FEnet supports TCP client channels only. This channel matches the official PLC IP example.

Select that channel and the LS Electric XGT device plugin. Common collection interval, enable and logging settings are described in Collection configuration. You can save the device disabled while preparing its addresses.

All device plugin parameters
Protocol fields remain visible; each applies to its respective line protocol.
| Parameter | Meaning and selection |
|---|---|
| Line protocol | Default Cnet. Select the Cnet ASCII dedicated protocol or binary FastEthernet matching the PLC service. Recheck the channel when changing protocol. |
| Cnet station | Default 5; enter decimal 0–31, corresponding to wire values 00H–1FH. Enter 1 for Cnet channel 1 above. FEnet does not use this field to locate the PLC. |
| CPU series | Default XGK. Select XGK, XGI, XGR, XGB instruction or XGB IEC according to the actual CPU. Fast Ethernet sends the corresponding CPU header; the communication module name alone does not identify the CPU series. |
| Module base | Default 0, range 0–15. Actual base of the Fast Ethernet communication module, as configured in XG5000. |
| Module slot | Default 3, range 0–15. Slot of the Fast Ethernet communication module, used with the base. Do not substitute the CPU slot. |
| Company ID | Default LSIS-XGT. Exactly eight printable ASCII characters in the Fast Ethernet header. Keep the default or match the peer’s specification; spaces count as characters. |
| Maximum packed length | Default 254 business bytes. Configurable range: 1–254 for Cnet, 1–2048 for Fast Ethernet, also constrained by the target module’s service limit. A variable and its array must fit in one request. Gaps between merged addresses count toward the span. Reduce the limit according to the module manual when a length error occurs; variable count is not the byte count. |

For an incoming Cnet DTU connection, enter the identity and heartbeat sent by the DTU in Connection settings. Ordinary FEnet TCP clients normally leave them empty.

| Parameter | Meaning and selection |
|---|---|
| DTU ID | Device identity for TCP server DTU matching. It is not the Cnet station. Usually blank for direct serial and ordinary FEnet TCP clients. |
| Heartbeat | Used only in the default TCP server DTU mode. Overrides the channel heartbeat when supplied; blank inherits the channel value. Match the DTU’s actual heartbeat. |
| Heartbeat Hex | Off by default: match UTF-8 text. Enable for hexadecimal bytes. This changes device heartbeat encoding, not the channel’s DTU ID encoding. |
| Read/write timeout | Default 3000 ms per protocol response. Allow for module processing and round-trip time. Too short causes timeouts; too long delays failure reporting after disconnection. |
| Pre-frame delay | Default 0 ms before sending each frame. Increase when required by a serial server or module. It is separate from the collection interval. |
| Failure retries | Default 3. Correct service, station, port and address errors before increasing retries, which otherwise keep the faulty request on the link longer. |
| Read/write duty cycle | Default 3, minimum 1. During continuous writes, schedule a read after n writes. A larger value can slow collection refresh while writes are queued. |
| Write priority | Off by default. When enabled, writes may cancel an active read. Check collection refresh under frequent writes. |
| Reverse string bytes within words | Off by default. Swaps the two character bytes in each WORD when the PLC stores them in the opposite order. This is not numeric word-order correction. |
| Data format | Default DCBA (little endian). Alternatives are ABCD, BADC and CDAB. Match the meaning of the PLC’s raw bytes; an address override changes one variable without changing all others. |

Map PLC addresses to variables
In XG5000’s online monitor, choose a D area that the program will not continually overwrite. For example, set %DW100 to decimal 1234. Add LS_DW100 in the gateway with type Int16, address DW100, array length 1, initially read-only. Omit % in gateway addresses. This plugin has no additional variable properties; see Collection configuration for scaling, collection groups and common intervals.

Address width and variable data type
Areas are P, M, L, K, F, T, C, D, S, Q, I, N, U, Z, R. Existence, capacity and write permissions depend on the CPU, modules and program allocation. Variable types are Boolean, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double and String.
B/W/D/L in the address determines the offset unit; the data type determines how many bytes are read. For example, DW100 + Float reads four bytes starting at byte 200, rather than only one WORD.
| PLC definition | Gateway address and type | Location |
|---|---|---|
| 16-bit integer in D WORD 100 | DW100, Int16 or UInt16 | Bytes 200–201. Omitted-width D100 also means WORD 100. |
| Raw bytes at the same location | DB200, Byte, array 2 | Bytes 200 and 201; same starting position as DW100. |
| 32-bit value at D DWORD 100 | DD100, Int32/UInt32/Float | Bytes 400–403, a different start from DW100. |
| 64-bit value at D LWORD 100 | DL100, Int64/UInt64/Double | Bytes 800–807. |
| WORD 10, bit 3 | MX10.3 or MX103, Boolean | Decimal WORD index 10 and hexadecimal bit 3. |
| WORD 10, bit 10 | MX10.A or MX10A, Boolean | A means decimal 10. Do not enter .10. |
| Three consecutive 16-bit words | DW100, Int16, array 3 | DW100, DW101 and DW102, six bytes total. |
| Eight-byte text at byte 400 | DB400;len=8;encoding=ASCII, String, array 1 | Eight bytes per string; array element 2 would start at byte 408. |
Boolean requires an explicit X address. In compact MX103, the final digit is a hexadecimal bit number and the preceding digits are a decimal WORD index; it does not mean absolute bit 103. Boolean arrays may read across WORD boundaries. A Boolean write accepts one 0/1 value at a time, not a batch of bits.
Array length must be positive. Numeric offsets in ordinary non-Boolean addresses are non-negative decimal integers. The byte end must not exceed the 20-bit byte space, 1048576, and must also stay within the PLC’s actual allocation.
The ten address-editor fields
Open the editor next to the variable address. Selecting D, WORD and offset 100 generates DW100.

| Field | What to enter |
|---|---|
| Area | PLC monitor area letter; default M. Select D for %DW100. |
| Access width | Bit, Byte, WORD, DWORD or LWORD. Boolean uses Bit; non-Boolean width sets the address-start unit. |
| Offset | Decimal index of an ordinary address. Enter 100 for WORD 100, without first multiplying it by two. The UInt32 input capacity does not override byte-space and PLC-capacity limits. |
| Bit | Boolean bit 0–15; the editor emits hexadecimal notation, so 10 becomes A. Leave blank for non-Boolean values. |
| Topology | Native dotted position for non-Boolean U/I/Q addresses. When enabled and supplied, it is used directly; the ordinary offset is not added to it. |
| Data-format override | Blank inherits the device setting. data=ABCD/BADC/CDAB/DCBA changes only this variable’s numeric interpretation. |
| Encoding override | String byte encoding such as ASCII, UTF-8 or Unicode. Character count may differ from byte count. |
| String byte length | Positive len= required for String, defining the capacity of each string. Array count is separate. |
| BCD override | Select C8421, C5421, C2421, C3 or Gray only when the source uses that encoding. Leave ordinary binary integers unchanged. |
| Variable-string-length override | vsl=true/false, for the corresponding source string representation. Ordinary fixed raw-byte text keeps this off/inherited. It does not change the requested byte capacity. |
In a two-part U topology the first part is hexadecimal and the second decimal: U1.2 maps to WORD 34, byte 68. Three-part U topology uses decimal components: U1.2.3 maps to WORD 579, byte 1158. I/Q three-part topology is also decimal: I1.2.3 maps to WORD 75, byte 150. Use these only when the actual module allocation matches. Boolean topology addresses are unsupported.
Compare online values and diagnose faults
Save the variable and enable its channel, device and variable. Monitor DW100 in XG5000 and the gateway together. For a PLC decimal value of 1234, the gateway Int16 should also show 1234 with advancing collection timestamps. Change the PLC test value to 1235 and check refresh before extending the configuration to Float, strings and arrays.
For a one-shot operation, open the current device’s Protocol Debug → Read/Write and use the same address, type and count. The Messages tab shows requests and responses to compare with module diagnostics. Test writes only to an allowed test register, enable the required variable or method permission, and read back in XG5000.
| Symptom | What to check |
|---|---|
| TCP connects but protocol requests time out | XGT server mode, TCP 2004/custom port and host table. Do not send Cnet frames to a FEnet port. |
| No Cnet ACK or a NAK response | Station, RS-232/422/485 wiring, all serial-format settings, XGT server mode and frame spacing. Use the module Frame Monitor to check incoming requests. |
| FEnet CPU or module-position error | Actual CPU series, module base and slot, and whether the parameters were downloaded. |
| Single point works but grouped reads fail | Array bytes, packed limit, address gaps and unallocated PLC areas in the requested span. Reduce the range, then extend it. |
| Values come from an unexpected position | Check B/W/D/L units. DW100 starts at byte 200; do not multiply by two and also select WORD. |
| Int16 works but Float or text is wrong | Check PLC raw bytes and types before changing per-variable byte order or encoding. String reversal changes the two characters within a word. |
Official documentation: FEnet manual , Cnet manual . See Collection configuration for common settings and the Plugin index for other drivers.