IMD SolutionComputing LibraryShop main store

Selection guide

Choosing a data transport from Flexy to a custom SCADA

Edge computing and IIoT Published 7 min read By IMD Solution engineering team

Short answer

Choose by reachability, then update rate. A local Flexy publishes Modbus TCP or OPC UA for the SCADA to poll. A Talk2M remote unit sends history to DataMailbox and serves slow live values through the M2Web API, but the account allows 30,000 calls/day and a 1 Hz stream needs 86,400, so fast live data must leave the unit as MQTT through a broker.

On this page
  1. Reachability splits the problem
  2. The four paths and what binds each
  3. The M2Web API allowance, worked
  4. Verify the MQTT path before you build on it
  5. Landing the values in your own application
  6. The decision for each case
  7. Questions asked

Pick the transport with two questions: can your SCADA reach the Flexy on the plant network, and how fast must values refresh? A locally reachable Ewon Flexy 205 publishes its tags as Modbus TCP or OPC UA, and your application polls it like any other server. A unit that only talks through Talk2M pushes history to DataMailbox and serves live values through the M2Web API — but that API carries one account budget of 30,000 calls/day, which a single 1 Hz stream alone outruns nearly threefold, so fast live data must leave the unit as MQTT publishing through a broker instead. The sections below work that allowance, verify the MQTT path, and close with the transport for each case.

Reachability splits the problem #

If the SCADA host can open a connection to the Flexy — same cabinet, same plant VLAN, a routed line — publish the tags from the Flexy as Modbus TCP or OPC UA and let the SCADA's own driver poll. That is the complete answer for a local unit: no Talk2M, no API program, no allowance to manage. Reserve the cloud paths for units the plant network cannot reach.

A remote unit reached only through Talk2M leaves three documented paths, and the update rate picks between them: DataMailbox for history, the M2Web API for slow live values, MQTT publishing for fast live values.

The four paths and what binds each #

Read the table on two columns: reachability decides which rows are open to you, and the binding constraint decides whether a row survives your rate requirement.

Path Reachability What it delivers Binding constraint
Modbus TCP or OPC UA published by the Flexy Flexy and SCADA share a network Live values, polled by the SCADA driver The network and the driver decide; no Talk2M involved
DataMailbox through Talk2M Remote unit, Talk2M only Tag history the Flexy pushes on schedule Retrieval latency; not a live channel
M2Web API through Talk2M Remote unit, Talk2M only Live values on request 10 calls/second and 30,000 calls/day per account, shared by all users and units
MQTT publishing through a broker Any unit with an outbound route to your broker Live values pushed at the publish interval Broker addressing, certificate naming, payload design

MQTT needs no Talk2M at all: the Flexy connects straight to your broker, which is why the fastest path is also the one with the fewest shared limits.

The M2Web API allowance, worked #

Both counters attach to the Talk2M account: 10 calls per second and 30,000 calls per day, aggregated over every user and every device under that account, including anyone browsing the fleet through M2Web. Before counting calls, confirm the unit exposes live data to M2Web at all — Live data and KPI's sits under Setup > System > Main > Net services on the Flexy.

Worked example, assumptions first: one API call refreshes one remote unit's tags; the daily counter resets each day with nothing carried over; nothing else draws on the account. Requirement: refresh that one unit every second, 1 Hz.

  • Demand: 1 call/s × 60 s/min × 60 min/h × 24 h/day = 86,400 calls/day.
  • 86,400 ÷ 30,000 = 2.88 — one 1 Hz stream needs 2.88 times the entire account's daily allowance, so the M2Web API fails this requirement outright.
  • Best case, the whole allowance devoted to this one stream: 86,400 s ÷ 30,000 = 2.88 s between calls — one refresh every 2.88 seconds at the very best.
  • Ten units sharing the account: 30,000 ÷ 10 = 3,000 calls/day per unit, and 86,400 s ÷ 3,000 = 28.8 s, so one poll per unit every 28.8 seconds. A 30-second refresh fits with 1.2 seconds of margin; a 10-second refresh costs 8,640 calls/day per unit and 86,400 across the fleet, 2.88 times the allowance.
  • Instantaneous check: ten units polled every 28.8 seconds average 10 ÷ 28.8 = 0.35 calls/s in total, far under the cap; that cap binds only when portal sessions and polling bursts stack on top.

So the M2Web API is a slow-live-values channel: at best one refresh every 2.9 seconds for a single stream, at best one poll per unit every 28.8 seconds for a ten-unit fleet. Faster than that, the answer is MQTT.

Verify the MQTT path before you build on it #

MQTT inverts the model: the Flexy pushes the tags you map to the broker you choose, at the interval you set, and your application subscribes. No shared allowance exists to exceed — the publish interval is a design decision, not a quota. Of the two push options most sketches begin with, MQTT and a direct HTTPS call into your own endpoint, the documented Flexy push path in this material is MQTT; build the receiving side of your SCADA around an MQTT client.

Three checks on your own unit before the parser gets written:

Landing the values in your own application #

Every path ends in the same work: a program that turns what arrives into what your application stores. On the local paths the SCADA driver does it — map the Flexy's Modbus registers or OPC UA nodes onto your tag list. On the MQTT path your program subscribes, parses the payload, maps each topic to a tag and carries a timestamp, in the payload or at arrival. On the DataMailbox path the Flexy pushes records on its own schedule and your collector pulls them through the DataMailbox API and converts them; an evaluation of Talk2M DataMailbox history in Grafana walks through what such a retrieval client reads and must transform.

The arriving values still need a store, and that store belongs to your application — choosing a site historian for a PC-based SCADA host is the decision that follows the transport.

The republisher variant hides the cloud API from the SCADA entirely: a second unit beside the SCADA pulls the remote fleet through the M2Web API and republishes locally as Modbus TCP or OPC UA, so your application connects with its own driver — while inheriting the same account allowance, so the refresh rate never improves. The collector does not have to be a second Flexy: an industrial mini PC beside the SCADA host can run the polling program and serve Modbus TCP or OPC UA to the application, and for the MQTT variant MQTT to Modbus TCP with Node-RED on an edge gateway lays out that bridge.

The decision for each case #

  1. SCADA reaches the Flexy on the plant network: publish the tags as Modbus TCP or OPC UA and poll with the SCADA's own driver. No Talk2M, no allowance, nothing else to choose.
  2. Remote unit and the product is history: DataMailbox. The Flexy pushes on schedule; your collector pulls and converts.
  3. Remote unit, live refresh of about 30 seconds or slower, small fleet: M2Web API polling, after dividing the account's daily allowance across your units and checking the result against the refresh you were asked for.
  4. Remote unit, live refresh faster than roughly one poll every three seconds, or a fleet whose division comes up short: MQTT publishing to your broker, with the SCADA subscribing directly or through a collector bridge.
  5. A direct HTTPS push into your own endpoint: not among the documented output paths, so the push design is MQTT.

None of these channels is a safety function — keep protective trips in the controller and treat everything arriving in the custom SCADA as supervisory data. Whatever you pick, prove it before cutover with one tag, one value, one timestamp arriving at the required rate.

Questions asked

How fast can one remote Flexy be polled through the M2Web API?

If the entire account allowance served one stream, 30,000 calls per day spread over the 86,400 seconds of a day gives a poll every 2.88 seconds, and ten units sharing the account reduce that to one poll per unit every 28.8 seconds. Anything faster has to leave the unit as MQTT publishing rather than M2Web API polling.

Is the API allowance shared between devices and users?

Yes. Both caps attach to the Talk2M account rather than to a device, and the instantaneous limit aggregates over all users under that account — 10 calls per second in total. Devices placed under separate Talk2M accounts each get their own allowance, which is one way to relieve a crowded fleet.

Why does a DataMailbox retrieval return no data?

Check the sending side before the retrieval side. DataMailbox only holds what each Flexy pushes to it on its own schedule, so a unit that was never configured to send — or was just added and has not completed a transfer yet — leaves the mailbox empty even though the API call itself succeeds. Confirm the unit's DataMailbox sending configuration first, then re-run the pull.

What is left to design on the MQTT path?

The topic layout, the payload format and the publish interval are yours: the Flexy publishes the tags you map to the topics you define, so design both around the parser the SCADA will run. Keep topic names stable, version the payload, and prove one publish-and-subscribe round trip on your unit's firmware before building the full parser.

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

  • How-to

    Sending PLC data to an IoT hub without custom software

    You do not need custom software to move PLC data to an IoT hub: a configurable edge package with an S7, Modbus TCP or EtherNet/IP driver, a channel mapping and an MQTT publisher replaces hand-written acquisition code. Verify two things before you commit: the driver covers the protocol your controller actually speaks, and the publisher covers the destination's authentication and message format. Software still does the work — you configure it instead of writing it.

    Edge computing and IIoT

  • Troubleshooting

    Sparkplug B sends data but receives no SCADA commands

    Sparkplug B telemetry that reaches SCADA while SCADA writes never arrive is usually a direction-of-function fault: the open-source IEC SparkplugB library V1.0.0.0 implements only sending controller data to SCADA. Verify the broker path, session and authorization, watch the 30-minute demo window of the MQTT Client SL dependency, and choose a documented receive-capable implementation when writes are required.

    Edge computing and IIoT

Historian or SQL database for discrete part-driven data