IMD SolutionComputing LibraryShop main store

How-to

Collect drive parameter data without master communication

Edge computing and IIoT Published 6 min read

Short answer

Node-RED reads ctrlX DRIVE and IndraDrive parameters through the ctrlX CORE Data Layer and the Drive Connect app, with no changes to the master control program. Same-subnet Ethernet covers every fieldbus case except EtherCAT, EtherCAT needs a configured EoE tunnel, and drives behind a gateway controller need a route on the collection CORE plus an explicit registration per drive address.

On this page
  1. Choose the network path
  2. Meet the prerequisites
  3. Install Drive Connect and expose the drives in the Data Layer
  4. Route the CORE to drives in 172.31.254.x behind a gateway at 192.168.1.25
  5. Register each gateway-connected drive with Drive Connect
  6. Read the parameters with Node-RED
  7. Store and display the collected data
  8. Questions asked

You can collect drive parameters without touching the machine's master communication: install the Drive Connect app on a ctrlX CORE, bring the CORE to Operation Mode, and read every axis with its parameters from the Data Layer using Node-RED. Same-subnet Ethernet covers every fieldbus case except EtherCAT; an EtherCAT installation needs a configured Ethernet over EtherCAT tunnel; and drives behind a gateway controller need a route on the collection CORE plus an explicit add-device registration for each drive address. None of the three paths adds a single read to the master's control program, so data collection, monitoring and later analytics stay off the machine's control load.

Choose the network path #

Pick the architecture from the drive's reachable network interface, not from the fieldbus used for motion control. A physical Ethernet cable to a controller does not by itself give you IP access to the drives behind it.

Path Request route Required network arrangement Applies to
Same-subnet Ethernet Collection CORE, then LAN, then drive CORE and drive interfaces in one subnet all fieldbus cases except EtherCAT
CORE as EtherCAT master Collection CORE, then EoE tunnel, then drive working Ethernet over EtherCAT configuration EtherCAT with the CORE as master
CORE through a gateway controller Collection CORE, then controller, then tunnel, then drive route on the CORE plus per-drive registration controller acting as gateway over an EoE or MLC tunnel

The decision: use direct same-subnet Ethernet whenever the drive exposes an Ethernet interface on the accessible LAN, because it removes the gateway and the route from the collection path. Use the EoE path when the CORE is itself the EtherCAT master; never treat the EtherCAT segment as an ordinary Ethernet LAN. Use the gateway arrangement when a separate CORE must reach drives through another controller. It preserves the controller's role as master but adds two commissioning tasks, IP routing and per-drive registration.

Meet the prerequisites #

The published setup for this collection method lists these items:

  • A ctrlX CORE with a network interface toward the drives
  • ctrlX DRIVE or IndraDrive drives, with IndraDrive firmware newer than version 20
  • The Drive Connect app installed on the CORE
  • The Node-RED app installed on the CORE
  • The CORE in Operation Mode
  • A working network path: same-subnet Ethernet, a configured EoE tunnel, or a routed gateway path

For EtherCAT, note one documented behavior of the ctrlX CORE: once EoE is configured, the system adds the virtual network adapter for the tunnel to the controls automatically. Check the master's communication state before you troubleshoot the tunnel; a working cyclic control connection proves the control path, not IP reachability.

Install Drive Connect and expose the drives in the Data Layer #

  1. Verify the physical link on every hop that carries collection traffic: the CORE interface, the intervening LAN, and the drive's Ethernet port. For EtherCAT, include the tunnel configuration.
  2. Read the actual IP address and subnet mask from the CORE, the drives and any gateway controller. Compare configured network prefixes rather than similar-looking addresses.
  3. Install Drive Connect through the CORE's application management.
  4. Set the CORE to Operation Mode.
  5. Browse the Data Layer to devices -> drives. With the three conditions satisfied, every axis appears there with its available parameters listed.

If a drive is missing at this step, the fault is in the network path or the registration, not in the Data Layer read. Successful access to a gateway controller's own interface proves only the first hop, never the final hop to the drive.

Route the CORE to drives in 172.31.254.x behind a gateway at 192.168.1.25 #

This worked example covers the gateway arrangement: a collection CORE reaching IndraDrive or ctrlX DRIVE axes through a controller that acts as gateway. Use it only for a network that actually matches these addresses; read the route, prefix and interface from the installed topology on any other machine.

Inputs

  • Collection CORE interface toward the controller: XF10 (from the reference setup)
  • Gateway controller address: 192.168.1.25, reachable from the CORE on its connected network
  • Drive-side address range: 172.31.254.x, the master communication network in the reference setup
  • Example drive address: 172.31.254.10, an address within that range; read each complete address from the drive or master configuration
  • Drive-side subnet mask: 255.255.255.0 in this example; read the actual mask from the controller's drive-side interface, because the address pattern alone does not define the prefix

Rule in words: the destination network is the drive address AND the subnet mask. Add a route on the collection CORE that sends traffic for that destination network to the controller, out of the interface that faces it.

Arithmetic: take the example drive address 172.31.254.10 and the example mask 255.255.255.0, octet by octet: 172 AND 255 = 172; 31 AND 255 = 31; 254 AND 255 = 254; 10 AND 0 = 0. The destination network is therefore 172.31.254.0 with a 24-bit prefix.

Result: the route on the collection CORE reads: destination 172.31.254.0/24, gateway 192.168.1.25, interface XF10.

Decision: without this route, the CORE hands drive traffic to its default gateway and the request never reaches the controller's drive-side network, so the collection fails regardless of Drive Connect. With the route in place, addressed traffic crosses to the tunnel and the drive. Then check the return path: a request that reaches the drive still fails if the reply cannot come back to the CORE, so confirm the controller forwards responses through the tunnel and that the CORE's route serves the reply side as well. Where overlapping networks exist, resolve the addressing conflict before relying on a route to distinguish devices.

Register each gateway-connected drive with Drive Connect #

Network reachability and device discovery are separate functions. The route lets addressed packets cross the gateway; it does not carry the local discovery traffic that finds drives on a directly connected subnet. That is why the gateway arrangement is not automatic: Drive Connect needs each drive's address supplied explicitly.

Add every drive with a REST request to Drive Connect naming its IP address, or supply the same address through a Data Layer node in Node-RED. Read the request method, payload, headers and authentication requirements for the add-device operation from the Drive Connect app installed on your CORE, since both registration routes exist to give the app the target address; neither replaces the route nor brings up a missing tunnel.

If you go the Data Layer route, the page on configuring ctrlX Data Layer methods for REST access walks through the method calls involved: https://industrialmonitordirect.com/blogs/knowledgebase/configuring-ctrlx-data-layer-methods-for-rest-access

Read the parameters with Node-RED #

Install Node-RED on the CORE and add the node-red-contrib-ctrlx-automation package. Its configuration node holds all settings for the connection to a device, and every other node embedded in the flow shares that one session, so you configure the connection once.

  1. Create the configuration node against the collection CORE.
  2. Add read nodes for the Data Layer nodes under the drive objects you found earlier.
  3. Poll the parameters you need on an interval that suits the analysis, not the motion loop.

A typical first flow reads the drive's power draw and its diagnostic message on an interval, which is enough to monitor energy consumption and surface faults without a single change to the master program.

Store and display the collected data #

Once the parameters arrive in Node-RED, store them in a time-series database and chart them. The article on connecting Node-RED to InfluxDB 2.6 with the v2 API covers the write side: article:connect-node-red-to-influxdb-2-6. For the dashboard side, the article on routing MQTT sensor data into Grafana on an edge PC shows the same display layer fed from an edge host: article:route-mqtt-sensor-data-into-grafana-on-an-edge-pc.

From there the drives of one machine become one data source among many: the same collection CORE, the same Node-RED runtime and the same database serve other equipment on the floor, and none of it loads the machine's master communication.

Questions asked

Does a working cyclic EtherCAT connection prove the drives are reachable over IP?

No. The cyclic motion traffic and the IP service on the drive are separate functions on the same cable. The Ethernet over EtherCAT tunnel must be configured and must forward IP traffic before any parameter read works. Test reachability by addressing a drive directly, not by confirming that the master exchange runs without errors.

Which firmware do the drives need for this setup?

The published setup lists IndraDrive units with firmware newer than version 20, alongside ctrlX DRIVE. Check the compatibility requirements of the Drive Connect app version installed on the CORE against the firmware actually running on each axis before commissioning the collection flow.

Why does Drive Connect not discover drives behind a gateway controller?

A route forwards addressed packets across the gateway; it does not carry the local discovery traffic that Drive Connect relies on. In the gateway arrangement, discovery is never the commissioning method. Add every drive explicitly with a REST request that names its IP address, or use a Data Layer node in Node-RED to supply the same address.

Which Node-RED package talks to the ctrlX CORE?

The node-red-contrib-ctrlx-automation package provides nodes for the ctrlX platform. Its configuration node holds all settings for the connection to a device, and the other nodes embedded in the flow share that one session. Configure the connection once in the config node and reuse it for every parameter read in the flow.

Where should the collected drive parameters be stored?

A common pairing after collection is an InfluxDB database written from Node-RED, with Grafana reading the same database for trends and dashboards. Both run on the same machine class as the collection host, so one box can gather, store and display the drive data without touching the machine's master control program.

Keep reading

  • Selection guide

    SCADAPack 47Xi RTU tags into AVEVA Insight: pick the path

    When the SCADAPack 47Xi sites already report to GeoSCADA Expert or AVEVA System Platform, forward to Insight with that platform's connector; standalone sites should run Node-RED against AVEVA's Historian Data REST API from a verified host, with a disk-backed queue sized from collection interval and worst outage — about 20 MB covers 100 tags at one sample per minute through an 8-hour outage.

    Edge computing and IIoT

  • Comparison

    MQTT broker versus direct TCP from a Node-RED edge device

    Both paths make the edge device open the connection as a client. MQTT is TCP plus a broker — one address at the publisher, TLS on 8883, a unique client ID per client, topic-based delivery — while a direct tcp out to tcp in link is faster to build but pins the publisher to each consumer's address and port. Build direct TCP for one fixed pair; build the broker for anything that grows.

    Edge computing and IIoT

  • Selection guide

    Selecting a Revolution Pi Connect gateway for S7-1500 and Azure MQTT

    A RevPi Connect covers both jobs: two Ethernet ports separate the PLC network from the Azure uplink, up to five extension modules carry the analog and fieldbus hardware, and Node-RED is preinstalled. Size the analog side by counting 4-20 mA loops against the AIO's current-capable channels, and take Modbus TCP for the read-only feed so the S7-1500 keeps PUT/GET closed.

    Edge computing and IIoT

Managing recipes on Ignition Edge without a database