Skip to main content
Version: 3.2

AutomationDirect ECOM Nodes

Read and write V memory, inputs, outputs and relays of DirectLOGIC PLCs from a pipeline, through their ECOM Ethernet module.

Operations
Read Device · Read Block · Write Device
Limits
63 words a request; one bit per bit write
Writes
Sent once, whole or not at all; never buffered

Use DirectLOGIC PLCs in pipelines. Each function authored on an AutomationDirect ECOM connection is available as a matching node in the Pipeline Designer: AutomationDirect ECOM Read Device, AutomationDirect ECOM Read Block and AutomationDirect ECOM Write Device.

For connection setup (the module's address, the PLC model and the waits), the octal addresses and the data types, see the AutomationDirect ECOM connection guide.

A PLC does not send data on its 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 AutomationDirect ECOM 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 AutomationDirect ECOM 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 AutomationDirect ECOM node delivers _metadata.method (the operation that ran, e.g. adecom.read.device), _metadata.connectionId (the connection it ran over) and _metadata.protocol (adecom).


AutomationDirect ECOM Read Device nodeAutomationDirect ECOM Read Device node

Read Device node

AutomationDirect ECOM Read Device Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
AutomationDirect ECOM Read Device (connected.adecom.read.device)adecom.read.deviceRead one typed value, or a run of consecutive values, from an addressA part counter on a schedule, a timer's current value, a motor output

The node reads the address the function names, as its data type, or Count consecutive values. See Read Device for the parameters and Addresses for the data types.

Output Structure​

{
"result": {
"device": "V2000",
"dataType": "WORD",
"value": 1234,
"quality": "good"
}
}

With Count more than 1, value is a list.

KeyMeaning
result.deviceThe address read, in one standard octal form: v2000 comes back as V2000
result.dataTypeThe type the value was decoded as. An empty data type comes back as the address's own
result.valueThe value: a number, text for a STRING, or true/false for a bit. A list of values when Count is more than 1
result.qualitygood. A refusal or a lost answer 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["Part Count"].result.value.


AutomationDirect ECOM Read Block nodeAutomationDirect ECOM Read Block node

Read Block node

AutomationDirect ECOM Read Block Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
AutomationDirect ECOM Read Block (connected.adecom.read.block)adecom.read.blockRead many typed datapoints in the fewest requestsA line's counters, setpoints and motor outputs in one node

The node reads every point of the function and returns each value by its name. Points whose words lie close together are read in one request, with what lies between them, when it fits. A point that is refused, or outside the PLC model's memory, is reported by name without failing the others; the node fails only when the module does not answer at all. See Read Block for the parameters.

Output Structure​

When every point was read:

{
"result": {
"count": 3,
"values": { "PartCount": 1234, "Rate": 21.5, "MotorOn": true },
"quality": "good",
"totalDataPoints": 3,
"totalReads": 2
}
}

Here PartCount (V2000) and Rate (V2002) share one request and MotorOn (Y0) takes a second.

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": { "PartCount": 1234, "MotorOn": true },
"errors": {
"Spare": "adecom: V50000 to V50000 is not inside one of the DL-260's V memory ranges (...)"
},
"quality": "bad",
"totalDataPoints": 3,
"totalReads": 2
}
}
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 merged 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 2"].result.values.PartCount. Check $node["Line 2"].result.errors before relying on every point being present.


AutomationDirect ECOM Write Device nodeAutomationDirect ECOM Write Device node

Write Device node

AutomationDirect ECOM Write Device Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
AutomationDirect ECOM Write Device (connected.adecom.write.device)adecom.write.deviceWrite one typed value, or a run of consecutive values, to an addressSetpoints, recipes, a control relay the PLC program watches

The node writes the function's value, or a list of values to consecutive V words, in one request of at most 63 words; or sets or resets one bit with the PLC's own bit command. A bit inside a V word cannot be written alone. The write is sent once. 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 type fails the node before anything is sent to the PLC.

Output Structure​

{
"result": {
"device": "V2100",
"dataType": "REAL",
"value": "21.5"
}
}
KeyMeaning
result.deviceThe address written, in one standard octal form: v2100 comes back as V2100
result.dataTypeThe type the value was encoded as
result.valueThe value as given, after parameter substitution: "21.5", or the list "[120, 45, 3]"
Safety First

Always validate values in a Condition node before writing to a PLC. A setpoint or an output can move a machine immediately.


Errors​

ErrorMeaningRetried by the node settings?
no answer from the ECOM module …No answer to any attempt: the module is off or out of reachYes. A write sent again leaves the PLC as one write of the same value does
… acknowledged the request but the PLC's answer did not come …The module took the request; the PLC's completion did not arrive. A write may have been carried outYes
the ECOM module refused the request … / the PLC did not complete the request …A refusal, with its status code. AutomationDirect does not publish what the codes meanYes
A refusal before anything is sent (an address that is no address, outside the PLC model's memory, a data type the address does not hold, a bit inside a V word, a value its type cannot hold, a list too long for one request)MaestroHub refused the request; nothing reached the PLCNo
not connected to the ECOM moduleThe connection is downYes

The full list of messages, with what to change for each, is in the guide's Troubleshooting.


Settings Tab​

All AutomationDirect ECOM 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 MaestroHub refused before sending (see Errors).

Test before wiring

Use the Test button in the function form (on the connection page) to run every AutomationDirect ECOM function against the live PLC before wiring it into a pipeline. It is the fastest way to catch a wrong PLC model, an address the PLC does not have, or a BCD value read as WORD.