Skip to main content
Version: 3.2

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​

FieldWhat you chooseDetails
ParametersConnection, Function, Function Parameters, Timeout OverrideSelect the LS Electric XGT connection, pick a function, bind parameters with expression support, and optionally override the timeout.
SettingsDescription, Timeout (seconds), Retry on Timeout, Retry on Fail, On ErrorNode 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).


LS Electric XGT Read Device nodeLS Electric XGT Read Device node

Read Device node

LS Electric XGT Read Device Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
LS Electric XGT Read Device (connected.lsxgt.read.device)lsxgt.read.deviceRead one typed value, or a run of consecutive values, from a device addressA 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"
}
}
KeyMeaning
result.deviceThe device read, as the function names it, in upper case
result.dataTypeThe type the value was decoded as: BIT, WORD, INT, DWORD, DINT, REAL, LREAL or STRING
result.valueThe value: a number, true/false for a BIT, text for a STRING. A list of values when Count is more than 1
result.qualitygood. 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].


LS Electric XGT Read Block nodeLS Electric XGT Read Block node

Read Block node

LS Electric XGT Read Block Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
LS Electric XGT Read Block (connected.lsxgt.read.block)lsxgt.read.blockRead many typed, named devices in the fewest requestsA 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
}
}
KeyMeaning
result.valuesEvery point that was read, by its name
result.errorsThe reason for each point that was not read, by its name. Present only when a point was not read
result.countHow many points were read
result.totalDataPointsHow many points were requested
result.totalReadsHow many requests the points were packed into, including the requests that asked again point by point after a refusal
result.qualitygood 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.


LS Electric XGT Write Device nodeLS Electric XGT Write Device node

Write Device node

LS Electric XGT Write Device Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
LS Electric XGT Write Device (connected.lsxgt.write.device)lsxgt.write.deviceWrite one typed value, or a run of consecutive values, to a device addressSetpoints, 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 happens when the node runs, or not at all

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"
}
}
KeyMeaning
result.deviceThe device written, as the function names it, in upper case
result.dataTypeThe type the value was encoded as
result.valueThe value as given, after parameter substitution: "72.5", or the list "[120, 45, 3]"
Safety First

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​

ErrorMeaningRetried 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 codeNo: 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 fullThe FEnet module is busyYes
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 PLCNo
no answer from the PLCThe request was sent and not answered in timeYes. 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 requestA reply that failed its checksum or answers another requestYes
not connectedThe connection is downYes

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:

SettingTypeDefaultDescription
DescriptionText-Optional description displayed on the node
Timeout (seconds)NumberPipeline defaultMaximum time the node may run before timing out
Retry on TimeoutTogglePipeline defaultAutomatically retry the node if it times out
Retry on FailTogglePipeline defaultAutomatically retry the node if it fails
On ErrorSelectionPipeline defaultError 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).

Test before wiring

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.