LS Electric XGT Nodes
Read and write bits, words and every PLC data type on XGK, XGB, XGI, XGR and XEC PLCs from a pipeline.
- Operations
- Read Device · Read Block · Write Device
- Limits
- 1400 bytes per FEnet request (500 on XGB, XEC); 60 words per Cnet read
- Writes
- Bits written as bits; never buffered
Use LS Electric XGT PLCs in pipelines. Each function authored on an LS Electric XGT connection is available as a matching node in the Pipeline Designer: LS Electric XGT Read Device, LS Electric XGT Read Block and LS Electric XGT Write Device.
For connection setup (FEnet, Cnet on a serial line, Cnet over TCP), the device addresses of each PLC family and the data types, see the LS Electric XGT connection guide.
These PLCs do not send data on their own, so there is no trigger node: to poll one, drive the reads from a Schedule trigger.
Configuration Quick Reference
| Field | What you choose | Details |
|---|---|---|
| Parameters | Connection, Function, Function Parameters, Timeout Override | Select the LS Electric XGT connection, pick a function, bind parameters with expression support, and optionally override the timeout. |
| Settings | Description, Timeout (seconds), Retry on Timeout, Retry on Fail, On Error | Node description, maximum execution time, retry behaviour and error strategy. All execution settings default to pipeline-level values. |
Every node shares the same Parameters: Connection (the LS Electric XGT connection profile), Function (a function of the node's type on that connection), Function Parameters (auto-populated from the function schema, with expression syntax {{ expression }} for dynamic values) and an optional Timeout Override in seconds. Each node receives the output of the previous node as input, which function parameter expressions can reference as $input.
The call's own facts ride along under _metadata next to the four every connected node carries. Every LS Electric XGT node delivers _metadata.method (the operation that ran, e.g. lsxgt.read.device), _metadata.connectionId (the connection it ran over) and _metadata.protocol (lsxgt).


Read Device node
LS Electric XGT Read Device Node
Supported Function Types:
| Node | Function | Purpose | Common Use Cases |
|---|---|---|---|
LS Electric XGT Read Device (connected.lsxgt.read.device) | lsxgt.read.device | Read one typed value, or a run of consecutive values, from a device address | A production count on a schedule, a timer's current value, an alarm relay |
The node reads the device the function names as its data type, or Count consecutive values, in one request. See Read Device for the parameters and Devices for the addresses of each family.
Output Structure
{
"result": {
"device": "D00100",
"dataType": "DINT",
"value": 1234,
"quality": "good"
}
}
With Count more than 1, value is a list:
{
"result": {
"device": "M00100",
"dataType": "BIT",
"value": [true, false, false, true],
"quality": "good"
}
}
| Key | Meaning |
|---|---|
result.device | The device read, as the function names it, in upper case |
result.dataType | The type the value was decoded as: BIT, WORD, INT, DWORD, DINT, REAL, LREAL or STRING |
result.value | The value: a number, true/false for a BIT, text for a STRING. A list of values when Count is more than 1 |
result.quality | good. A refusal by the PLC fails the node instead of storing a value, so a value that reached the result is the PLC's own reading |
Read a value with $node["Read Count"].result.value, and one of a list with $node["Read Relays"].result.value[0].


Read Block node
LS Electric XGT Read Block Node
Supported Function Types:
| Node | Function | Purpose | Common Use Cases |
|---|---|---|---|
LS Electric XGT Read Block (connected.lsxgt.read.block) | lsxgt.read.block | Read many typed, named devices in the fewest requests | A machine's counts, setpoints and alarm bits in one node |
The node reads every point of the function and returns each value by its name. Points of the same size are named together, up to sixteen devices to a request. A point the PLC refuses is reported by name without failing the others; the node fails only when the link fails. See Read Block for the parameters.
Output Structure
When every point was read:
{
"result": {
"count": 3,
"values": { "Count": 1234, "Speed": 72.5, "Alarm": true },
"quality": "good",
"totalDataPoints": 3,
"totalReads": 2
}
}
Here Count (D00100 as DINT) and Speed (D00104 as REAL) share one request of word devices and Alarm (M0172C) takes a request of bits.
When a point was not read, it is missing from values, its reason is in errors under its name, and quality is bad:
{
"result": {
"count": 2,
"values": { "Count": 1234, "Alarm": true },
"errors": {
"Spare": "lsxgt: the PLC refused the request: device area exceeded: the address is beyond the PLC's memory (FEnet error 0x0004)"
},
"quality": "bad",
"totalDataPoints": 3,
"totalReads": 4
}
}
| Key | Meaning |
|---|---|
result.values | Every point that was read, by its name |
result.errors | The reason for each point that was not read, by its name. Present only when a point was not read |
result.count | How many points were read |
result.totalDataPoints | How many points were requested |
result.totalReads | How many requests the points were packed into, including the requests that asked again point by point after a refusal |
result.quality | good when every point was read, bad when one was not |
Read a point with $node["Line Status"].result.values.Alarm. Check $node["Line Status"].result.errors before relying on every point being present.


Write Device node
LS Electric XGT Write Device Node
Supported Function Types:
| Node | Function | Purpose | Common Use Cases |
|---|---|---|---|
LS Electric XGT Write Device (connected.lsxgt.write.device) | lsxgt.write.device | Write one typed value, or a run of consecutive values, to a device address | Setpoints, recipes, alarm acknowledgement bits |
The node writes the function's value, or a list of values to consecutive devices in one request. A bit is written as a bit, so bits the program changes in the same word are never overwritten. The system flags (F) and N cannot be written. See Write Device for the parameters and the write rules.
A write is never buffered for later delivery, and it is refused in a run started by a late (replayed) input unless the node allows late input. A value that does not fit its data type fails the node before anything is sent to the PLC.
Output Structure
{
"result": {
"device": "D00200",
"dataType": "REAL",
"value": "72.5"
}
}
| Key | Meaning |
|---|---|
result.device | The device written, as the function names it, in upper case |
result.dataType | The type the value was encoded as |
result.value | The value as given, after parameter substitution: "72.5", or the list "[120, 45, 3]" |
Always validate values in a Condition node before writing to a PLC. A setpoint or a bit can move a motor, valve or actuator immediately.
Errors
| Error | Meaning | Retried by the node settings? |
|---|---|---|
the PLC refused the request: … naming the address or the data type (device area exceeded, no such device, address format, data type) | The PLC refused the request, with its FEnet error code or Cnet NAK code | No: the result is permanent |
the PLC refused the request: the module has as many connections as it takes, … got no answer from the CPU, … its queue is full | The FEnet module is busy | Yes |
| A refusal before anything is sent (a device the family does not have, a value that does not fit, a write to F or N, a run too long for one request) | MaestroHub refused the request; nothing reached the PLC | No |
no answer from the PLC | The request was sent and not answered in time | Yes. A write sent again leaves the PLC in the same state as one write of the same value |
the PLC's reply is damaged, the reply does not answer the request | A reply that failed its checksum or answers another request | Yes |
not connected | The connection is down | Yes |
The full list of messages, with what to change for each, is in the guide's Troubleshooting.
Settings Tab
All LS Electric XGT node types share the same Settings tab:
| Setting | Type | Default | Description |
|---|---|---|---|
| Description | Text | - | Optional description displayed on the node |
| Timeout (seconds) | Number | Pipeline default | Maximum time the node may run before timing out |
| Retry on Timeout | Toggle | Pipeline default | Automatically retry the node if it times out |
| Retry on Fail | Toggle | Pipeline default | Automatically retry the node if it fails |
| On Error | Selection | Pipeline default | Error strategy: Pipeline Default (the pipeline's Error Handling setting), Stop Pipeline or Continue Execution |
When left at their defaults, these settings inherit from the pipeline-level execution configuration. The retry settings do not retry a request the PLC refused for its address or its data type (see Errors).
Use the Test button in the function form (on the connection page) to run every LS Electric XGT function against the live PLC before wiring it into a pipeline. It is the fastest way to catch a wrong PLC family, a device the PLC does not have, or a bit that lands in the wrong place.