IMD SolutionComputing LibraryShop main store

How-to

Edge gateway commissioning sequence for plant data

Edge computing and IIoT Published 7 min read

Short answer

Commission an edge gateway in a fixed order: mount and power it, prove each Ethernet and serial path at the interface level, configure one point, and verify that value against a trusted measurement before adding the rest. A link light or a successful ping proves transport only — never that the engineering value is right.

On this page
  1. The order to follow
  2. Mount and power before you configure
  3. Prove each Ethernet path, port by port
  4. Prove the serial bus before the protocol
  5. Configure one point and verify one engineering value
  6. Size the poll rate from wire time
  7. Set timeouts, access and buffering last
  8. Questions asked

Commission an edge gateway in one fixed order: mount and power it, prove each Ethernet and serial path at the interface level, configure a single point, and verify that one known value against a trusted measurement before the point list grows. A link light or a successful ping proves transport only. It never proves the engineering value is right, and the sequence below exists to catch that difference.

The order to follow #

Work the sequence top to bottom and add no dependency before the layer under it is proven:

  1. Mount and power the appliance; confirm one clean boot with no restart loop.
  2. Record each Ethernet port's role, address, subnet mask and gateway before testing anything.
  3. On every path, prove reachability and then the actual service port — never stop at a ping.
  4. Wire and terminate the serial bus; match framing and station address at both ends.
  5. Map each serial connector to its device name and configure the protocol on that proven port.
  6. Configure one point and verify its value against a trusted measurement while the process changes.
  7. Size the poll rate and the response timeout from measured transaction times.
  8. Change default credentials, restrict network access, enable buffering — then scale the point list.

Mount and power before you configure #

The box goes in the cabinet before any configuration work: an appliance like this is typically a fanless industrial mini PC on a DIN rail, and most such enclosures carry an IP40 rating under IEC 60529 — protected against objects and wires down to about 1 mm, with no water protection at all. That is a cabinet rating, not a machine-frame rating.

Check the supply before the first boot:

  • Verify polarity and terminal assignments against the manual.
  • Measure the voltage at the appliance's terminals under operating load, with field devices connected; a supply that reads correct only when unloaded sags into boot loops and network-port dropouts.
  • Size the supply from the datasheet's maximum demand with every option fitted, not the typical figure — Wi-Fi modules and disk writes push real consumption above it.

One safety note: keep digital outputs and drive setpoints in a controlled, safe state while you wire, and make the first exchanges on this box reads, never writes to live outputs.

Prove each Ethernet path, port by port #

Two Ethernet ports do not provide routing, bridging or isolation by themselves. Draw the path on paper first: which port faces the PLC or drive network, which faces the plant or WAN side, and who initiates each exchange — the gateway normally polls the field side and publishes upstream, so the two ports rarely share a role.

Per port, record the intended address, subnet, gateway and role, then confirm them on the box:

  • Link state and negotiated speed at both ends, on the switch port and on the appliance.
  • Whether each destination sits in the local subnet or needs the gateway entry; a missing route sends traffic out the wrong port.
  • No duplicate addresses on either subnet, because a duplicate makes every later symptom lie.

If the box has no address yet and its management services are closed, set the network from the console first, following the same steps as configuring IP networking on an edge PC with no SSH access.

Then test in two stages. A ping to the PLC proves ICMP reachability and nothing more: on a Modbus TCP field link the acquisition needs TCP port 502 open end to end, so the second test must open that service, not just ping. If the gateway's own interface responds but the PLC still looks dead, work through diagnosing a gateway that is online while the PLC looks offline instead of re-running pings.

Prove the serial bus before the protocol #

RS-232 and RS-485 name electrical interfaces, not protocols; Modbus RTU, BACnet MS/TP and DNP3 serial each carry their own configuration on top of them. No protocol setting survives a reversed pair, so the copper comes first.

On an RS-485 trunk:

  • Use twisted pair, daisy-chained device to device, with short stubs.
  • Terminate only the two physical ends of the bus, each with a resistor equal to the cable's characteristic impedance — 120 ohms on the standard twisted pair — and add the fail-safe bias the device manuals call for so the bus sits in a defined state when idle.
  • Check the result with the bus powered down: a correctly terminated two-end bus reads about 60 ohms between A and B.

On RS-232, verify transmit, receive and the signal reference, plus any handshake lines the device genuinely requires.

Then map each physical connector to its operating-system device name and to the connection object in the acquisition software; never trust cable position. Match baud rate, parity, data bits and stop bits at both ends, set the station address the protocol expects, and read one known register while watching the port's transmit, receive and error counters. A proven link returns a valid frame from the intended station, not flickering activity lights. The same discipline carries over when one serial line serves several drives, as in commissioning five VFD drives on one Modbus gateway.

Configure one point and verify one engineering value #

Settle the role before any configuration: client or server, publisher or subscriber. A gateway that polls Modbus TCP is a client; one that publishes to a broker is a publisher — the pattern used when bridging OPC UA PLC data to MQTT with an edge PC. Mixing these up wastes a commissioning day.

Bring up a single point on the path you already proved:

  • Configure it from the device documentation: register or object address, data type, signedness, word order in multi-register values, scale factor and engineering units.
  • Read it while the process runs and compare it with the device's own display or a handheld meter.
  • Wait for or cause a process change and confirm the value moves by the expected amount.

A working transport can still deliver the wrong value: swapped word order or a missing scale produces a plausible number with no communication error anywhere. The acceptance test is therefore a cross-checked value, never a clean error counter. When the device hands over a raw unscaled integer, work the conversion deliberately — the same arithmetic as historian tag scaling for an unscaled PLC integer — before the list grows.

Size the poll rate from wire time #

The poll rate is a wire-time calculation, not a preference. Example: read 2 holding registers from each of 12 drives over one Modbus RTU port at 9600 baud, 8E1, so each byte carries 11 bits.

  • Request 8 bytes plus response 9 bytes gives 17 bytes; at 11 bits per byte that is 187 bits, and 187 / 9600 = 19.5 ms on the wire.
  • Modbus RTU holds the line silent for 3.5 character times around each frame: 2 x 3.5 x 11 = 77 bits, and 77 / 9600 = 8.0 ms.
  • Device turnaround is about 10 ms for drives in this class.
  • One transaction therefore takes 19.5 + 8.0 + 10 = 37.5 ms.

Twelve drives sweep the port in 12 x 37.5 = 450 ms, which is 45% of a 1 s cycle. The decision from these inputs: this port supports a 1 s update per point, and even a retry pass across all twelve devices — another 450 ms, 900 ms total — still fits inside the second. It does not support a 500 ms sweep, and any 250 ms data belongs on Modbus TCP or a second serial port, not on a tighter timeout.

Set timeouts, access and buffering last #

Set the response timeout from a measured value, not from a default. If the slowest normal response on this bus measures about 30 ms, set the timeout near 300 ms — roughly ten times normal, enough to ride out jitter — with two retries, so a dead link is declared in about 900 ms. Tighter chases noise; looser hides outages.

Close out commissioning with the security items before the point list grows:

  • Change every default credential before the box joins the plant network.
  • Disable the services, ports and protocols you are not using.
  • Filter each path to its initiators: the field side accepts only the gateway's polls, and the gateway initiates the upstream side, so inbound connections can stay closed there.
  • Enable store-and-forward buffering sized to the longest WAN outage you intend to ride out — the trade-offs are laid out in choosing an edge data path for periodic records.
  • If a historian subscribes to this gateway, publish only the approved tag set, as described in exposing only approved Ignition tags to an external historian.

Sign the commissioning sheet with the measured sweep time, timeout, retry count and the one verified value with its source — then scale the list.

Questions asked

How do you confirm an IP address is unused before assigning it to the gateway?

Disconnect the gateway, then from a laptop on the same subnet ping the planned address and check the ARP table. A reply or an existing MAC entry means another device already owns it, and the gateway must take a different address. Repeat for both ports after any subnet change, because a duplicate address corrupts every later test.

What should an RS-485 bus read between A and B with the power off?

Roughly 60 ohms, because the two 120 ohm end terminations appear in parallel. Measure at one endpoint with the bus powered down, since bias networks and powered transceivers skew the reading. About 120 ohms means only one end is terminated; an open circuit means none; a few ohms means too many terminators or a shorted pair.

Which point should you verify first on a newly commissioned gateway?

Pick a value you can watch on the device's own display or a handheld meter and that moves with the process, such as a drive's output frequency. A barely changing signal cannot prove scaling, because a wrong word order can sit undetected for months on it. Verify the value moves by the expected amount, then bring up the rest of the list.

How much headroom should a serial poll sweep keep?

Keep the full sweep under about half the required update interval, so a retry pass and normal jitter still fit in one period. The 450 ms example sweep therefore supports 1 s updates but rules out 500 ms. When the process needs faster data than that rule allows, move those points to Ethernet or a second serial port rather than tightening the timeout.

Why commission upstream publishing before scaling the point list?

Because the upstream path brings its own failure modes — broker reachability, credentials, topic layout, payload format — and every added point multiplies the traffic those settings carry. Proving one field value end to end through the broker or historian confirms the chain while only one variable is in play. Scaling afterwards turns any new fault into a point-level problem instead of a mystery.

Keep reading

  • How-to

    Bridging OPC UA PLC data to MQTT with an edge PC

    Keep the OPC UA server on the PLC side and give MQTT publishing its own role on a separate edge PC that acts as the OPC UA client and MQTT publisher. Commission the two links independently — first a verified tag read, then a verified subscriber message — and only then widen the tag set.

    Edge computing and IIoT

  • Comparison

    Getting Wonderware Historian data into Ignition Edge for MQTT

    Yes — Ignition Edge can publish this data as MQTT Sparkplug, but through two separate routes. Live values come from the existing DAServer acquisition layer behind a DA-to-UA gateway, because Edge's OPC client is UA-only. History and aggregates come from SQL queries against the Historian Runtime database, using its documented stored procedures.

    Edge computing and IIoT

  • Selection guide

    Selecting a gateway to publish Modbus data to Azure IoT Hub

    Publish direct from the gateway only when its exact model and firmware documents an Azure IoT Hub connector with a configurable JSON payload and a configurable publish interval; Azure accepts TLS-secured MQTT at QoS 0 or 1 only. Otherwise keep acquisition on the gateway and run Azure messaging on a small edge application beside it.

    Edge computing and IIoT