Skip to Content
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 examplesConnection requirements
XGT: XGK, XGI, XGRSelect 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

  1. 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 open Standard Settings.
  2. In Basic, set the fixed IP address, subnet mask and gateway, and select XGT server as Server Mode. The official window below uses 192.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.

XG5000 FEnet standard settings: PLC IP and XGT server

View original image

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.

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

XG5000 FEnet Security: host and port access rules

View original image

  1. Use Online → Connect, then Online → Write to 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.

XG5000 Online menu and Write command

View original image

Cnet: serial format, station and dedicated service

  1. 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 set Operation Mode to XGT server. The illustrated channel 1 uses RS-232C, 9600 bit/s and station 1. The channel 2 P2P settings are unrelated to that connection.

XG5000 Cnet standard settings: serial speed, station and XGT server

View original image

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

XG5000 Cnet advanced settings: data bits, stop bits, parity and direct connection

View original image

  1. 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.
  2. Download the standard parameters with Online → Write, reset the module, and inspect Frame Monitor or Status by Service under Communication 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.

ConnectionGateway configuration
FEnetSelect TcpClient, set remote address 192.168.1.2:2004, and change the device line protocol to FastEthernet.
Direct Cnet serialSelect SerialPort, choose the actual COM port and matching serial format, and keep Cnet.
Cnet through a transparent serial serverSelect TcpClient, enter the serial server’s IP and transparent port, and keep Cnet.
Cnet through an incoming DTUSelect 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.

LS XGT TCP client channel with remote address 192.168.1.2:2004

View original image

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.

LS Electric XGT device and assigned channel

View original image

All device plugin parameters

Protocol fields remain visible; each applies to its respective line protocol.

ParameterMeaning and selection
Line protocolDefault Cnet. Select the Cnet ASCII dedicated protocol or binary FastEthernet matching the PLC service. Recheck the channel when changing protocol.
Cnet stationDefault 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 seriesDefault 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 baseDefault 0, range 0–15. Actual base of the Fast Ethernet communication module, as configured in XG5000.
Module slotDefault 3, range 0–15. Slot of the Fast Ethernet communication module, used with the base. Do not substitute the CPU slot.
Company IDDefault 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 lengthDefault 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.

LS XGT protocol, CPU, module position and packed length

View original image

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.

DTU ID and heartbeat in the LS XGT connection settings

View original image

ParameterMeaning and selection
DTU IDDevice identity for TCP server DTU matching. It is not the Cnet station. Usually blank for direct serial and ordinary FEnet TCP clients.
HeartbeatUsed 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 HexOff by default: match UTF-8 text. Enable for hexadecimal bytes. This changes device heartbeat encoding, not the channel’s DTU ID encoding.
Read/write timeoutDefault 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 delayDefault 0 ms before sending each frame. Increase when required by a serial server or module. It is separate from the collection interval.
Failure retriesDefault 3. Correct service, station, port and address errors before increasing retries, which otherwise keep the faulty request on the link longer.
Read/write duty cycleDefault 3, minimum 1. During continuous writes, schedule a read after n writes. A larger value can slow collection refresh while writes are queued.
Write priorityOff by default. When enabled, writes may cancel an active read. Check collection refresh under frequent writes.
Reverse string bytes within wordsOff 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 formatDefault 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.

LS XGT runtime and data-format settings

View original image

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.

LS XGT variable LS_DW100: Int16, DW100 and array length 1

View original image

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 definitionGateway address and typeLocation
16-bit integer in D WORD 100DW100, Int16 or UInt16Bytes 200–201. Omitted-width D100 also means WORD 100.
Raw bytes at the same locationDB200, Byte, array 2Bytes 200 and 201; same starting position as DW100.
32-bit value at D DWORD 100DD100, Int32/UInt32/FloatBytes 400–403, a different start from DW100.
64-bit value at D LWORD 100DL100, Int64/UInt64/DoubleBytes 800–807.
WORD 10, bit 3MX10.3 or MX103, BooleanDecimal WORD index 10 and hexadecimal bit 3.
WORD 10, bit 10MX10.A or MX10A, BooleanA means decimal 10. Do not enter .10.
Three consecutive 16-bit wordsDW100, Int16, array 3DW100, DW101 and DW102, six bytes total.
Eight-byte text at byte 400DB400;len=8;encoding=ASCII, String, array 1Eight 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.

LS XGT address editor: D area, WORD width and offset

View original image

FieldWhat to enter
AreaPLC monitor area letter; default M. Select D for %DW100.
Access widthBit, Byte, WORD, DWORD or LWORD. Boolean uses Bit; non-Boolean width sets the address-start unit.
OffsetDecimal 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.
BitBoolean bit 0–15; the editor emits hexadecimal notation, so 10 becomes A. Leave blank for non-Boolean values.
TopologyNative 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 overrideBlank inherits the device setting. data=ABCD/BADC/CDAB/DCBA changes only this variable’s numeric interpretation.
Encoding overrideString byte encoding such as ASCII, UTF-8 or Unicode. Character count may differ from byte count.
String byte lengthPositive len= required for String, defining the capacity of each string. Array count is separate.
BCD overrideSelect C8421, C5421, C2421, C3 or Gray only when the source uses that encoding. Leave ordinary binary integers unchanged.
Variable-string-length overridevsl=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.

SymptomWhat to check
TCP connects but protocol requests time outXGT server mode, TCP 2004/custom port and host table. Do not send Cnet frames to a FEnet port.
No Cnet ACK or a NAK responseStation, 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 errorActual CPU series, module base and slot, and whether the parameters were downloaded.
Single point works but grouped reads failArray bytes, packed limit, address gaps and unallocated PLC areas in the requested span. Reduce the range, then extend it.
Values come from an unexpected positionCheck 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 wrongCheck 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.