Explainer
Store and forward load data from Ignition Edge stations
Short answer
An Ignition Edge station cannot open a MySQL connection of its own, and a remote tag provider only reads tags, so neither gives you a queued, acknowledged insert. Split the system into identification lookup through a remote tag provider, capture of each completed load in restart-persistent storage at the station, and a central commit that acknowledges each record by id. Storage is not the constraint: a 72-hour outage buffers about 90 kilobytes per station at 60 loads a day and 500 bytes a record.

On this page
- Can an Ignition Edge station write to a MySQL log table?
- Can the station read driver data from MySQL through a remote tag provider?
- Why doesn't store and forward protect the load records?
- How should you split lookup, capture and commit?
- How does the central commit and acknowledgment loop run?
- How much buffer does a 72-hour outage need?
- When is Edge the wrong station platform?
- Questions asked
An Ignition Edge station cannot open a MySQL connection of its own, so a 10-20 station water-hauler data entry system needs three functions rather than one database write: identification lookup, which a remote tag provider carries well; capture of each completed load in restart-persistent storage at the station; and a central commit that acknowledges every record before the station clears it. Ignition's store-and-forward protects tag history, not business inserts from Edge, so the offline protection is a design you build, not a module you enable. Sizing is on your side: a 72-hour outage buffers about 90 kilobytes per station, so persistence and acknowledgment decide the design, not storage.
Can an Ignition Edge station write to a MySQL log table? #
No. Ignition Edge has no database connection service of its own, so it cannot run the insert a full gateway would run, and no tag setting changes that. Two separate connections get conflated here. The station-to-central link runs over Ignition's gateway network; the central-gateway-to-MySQL link is a database connection that exists only on the central gateway, so a healthy first hop proves nothing about the second. The Edge edition has no database connections and no SQL Bridge module, which means no query tag, no transaction group and no store-and-forward queue on the station aimed at your log table.
The tag path does not substitute for it either: remote tag providers are read-only. An Edge station can read a central gateway's tags but cannot write them, and the central gateway reads Edge tags the same way. Any design that ends with "the station inserts the row" is wrong for Edge in every variant.
Decision: the insert belongs to the central gateway; the station's job is to make each record reachable, identifiable and removable by id.
Can the station read driver data from MySQL through a remote tag provider? #
Yes, for reads this works: put the MySQL connection and the identification query tag on the central gateway, then add that gateway's tags to each Edge station as a remote tag provider. This is the leg the remote-provider architecture was built for, and it is the same read path walked through in Can Ignition Edge run SQL queries through a central gateway. The central gateway owns the connection and the query; each station subscribes to the provider and shows the result.
Two lookup designs sit on top of that path. A live lookup sends each keyed code toward the central gateway and displays the matching response. A published roster pushes the whole identification dataset to the station, which searches it locally; 400 drivers × 80 bytes a row = 32,000 bytes, about 32 kilobytes, comfortable in one dataset or document tag.
Live lookups carry a concurrency trap: one shared response tag serves every station, so two haulers who key in during the same scan can read each other's identity. Give each station its own response tag, or use the roster and skip the round trip. For offline behavior, do not accept a last value as a cache on faith: pull the central link and read the tag's quality, then restart the Edge service and read it again. What survives those two tests, and with what quality, decides how you treat stale identification.
Decision: run the published roster as the primary lookup and keep live-lookup tags only where dispatch must see an edit reach the station immediately.
Why doesn't store and forward protect the load records? #
Because store and forward belongs to the Tag Historian and SQL Bridge modules, which buffer tag history and transaction-group rows toward a database, and Edge has neither the modules nor a database to point them at. The mechanism is real and reliable: those modules hold data locally through a connection loss and forward it on recovery. But the payload is whatever those modules produce, and both need a database connection at the far end. On an Edge station there is no database connection and no SQL Bridge, so no queue exists that points at your MySQL server at all.
The history Edge does record stays on the station itself — the location is covered in where the Ignition Edge tag historian writes its data — and it is tag history, not a transaction ledger. Enabling history from the History section of the Tag Editor on your load tags gives you samples of values over time, the wrong shape for this job: a load must appear exactly once, with driver, time and volume intact, and everyone downstream must be able to tell whether it was committed. Rebuilding one-row-per-load inserts from history samples is a reconstruction project, not a configuration.
Decision: count store and forward out for load records on Edge, and design persistence and acknowledgment yourself, which the sizing below shows is cheap.
How should you split lookup, capture and commit? #
Split it into three functions with three owners: identification lookup reads centrally, capture writes each completed load to restart-persistent storage at the station, and commit inserts the row centrally and acknowledges it.
| Function | What it needs | What carries it | What it must survive |
|---|---|---|---|
| Identification lookup | A central MySQL connection and a query tag or roster dataset | Remote tag provider subscription at each station | Link loss, with a roster copy of a defined maximum age |
| Load capture | Restart-persistent local storage and a unique id per load | Station scripting appends records to a local pending file, mirrored into a dataset tag | Station restart and link loss |
| Central commit | The central database connection and one insert per record | Central gateway reads the pending list, inserts, and publishes the committed id | Duplicate delivery, absorbed by the unique load id in MySQL |
The ordering rule is the heart of the design: the station never discards a pending record because a timer expired; it discards a record only when the central side has published that record's id as committed. Anything else can be repaired after an outage; a record deleted on a timeout cannot.
Capture is the function that decides whether Edge stays. With scripting licensed at the station, append each load to a pending file on the station's drive, mirror the list into a dataset tag the central side can read, and rebuild the tag from the file after a restart. Without scripting there is no restart-persistent ledger on Edge at all; that case gets its decision in the last section.
One function stays out of this system entirely: anything that protects people or prevents a tank overflow belongs in the PLC or in hardwired logic, never behind a tag whose quality depends on this link.
Decision: build the three functions in this order — capture and acknowledgment first, because identification has a manual workaround (dispatch confirms a driver by radio) while a lost load record has none.
How does the central commit and acknowledgment loop run? #
The central gateway reads each station's pending records through the gateway network, inserts them one at a time, and publishes the committed load id, which the station reads back and uses to clear exactly that record. Because remote tag providers are read-only, neither side writes through the provider; both sides read. The loop runs like this:
- The station appends the completed load to its pending file and pending dataset, tagged with a unique id.
- The central gateway reads the pending dataset through the remote provider — the pull setup is described in pull Ignition Edge tags to the main gateway with a remote tag provider.
- It inserts the row; a duplicate-key outcome counts as already committed.
- It writes the committed id into a per-station acknowledgment tag on the central gateway.
- The station, subscribed to that tag, removes the acknowledged record and presents everything else on the next poll.
Step 3 carries the whole weight of the system: the insert's success signal must mean the transaction committed, not merely that the call returned, a distinction spelled out in why an Ignition named query's success requires a completed commit.
The opposite direction also works: the station pushes each record to an HTTP endpoint on the central side, and the endpoint's response is the acknowledgment — the reasoning is in why an edge gateway needs an HTTP endpoint to write a database. That variant needs station scripting for the call and an inbound opening on the central side. The pull loop needs neither, keeps every write inside the central gateway, and is the easier design to defend on an OT network.
Decision: use the pull loop unless the stations already run scripting and your security design prefers a single authenticated inbound endpoint.
How much buffer does a 72-hour outage need? #
Almost nothing: at 60 loads per station per day and 500 bytes per record, a three-day outage buffers 180 records, about 90 kilobytes per station. Take the top of the range to check it: 20 stations, 60 loads per station on a busy day, an outage design of 72 hours, and 500 bytes per record covering time, driver code, volume, station and unique id.
- Records per station: 60 loads/day × 3 days = 180 records.
- Buffer per station: 180 records × 500 bytes = 90,000 bytes, about 90 kB.
- Whole fleet: 20 stations × 90,000 bytes = 1,800,000 bytes, about 1.8 MB.
- Drain after reconnect, at 5 committed records per second: 180 ÷ 5 = 36 seconds per station; served one station after another, all twenty drain in 20 × 36 s = 720 s, twelve minutes.
A file that size fits on any storage medium made in this century, so no capacity class decides anything here. Give the pending store a week of headroom anyway, and spend the real effort on the restart test: cut station power with records pending, restore it, and confirm the pending count before the link returns.
Decision: at these volumes the buffer is a rounding error; the design lives or dies on persistence and the acknowledgment rule, not on bytes.
When is Edge the wrong station platform? #
Keep Edge when the station license includes scripting for the local pending file and the central pull loop can run; move to a full Ignition gateway at the station when loads must be captured and no restart-persistent store exists. What scripting gives you is the pending file, the mirror into tags and the clear-on-acknowledgment logic; without it, tags alone give you no ledger you can enumerate, replay and clear by id after a restart. If the station must capture loads and that store cannot be built, run a full Ignition gateway there instead: it has database connections, SQL Bridge and store and forward as configured features, so the station-side queue stops being something you build. The lighter alternative keeps Edge for identification only and puts capture into a small local service on the station box that owns the file and pushes to the central HTTP endpoint.
Whichever runtime wins, that is the moment the station box gets specified; a fanless mini PC is the usual host for a gateway that must also keep a pending file in a load-out cabinet.
Decision: keep Edge when scripting is licensed and the pull loop can run; move capture to a full gateway or a local service when it cannot, and put no effort into storage sizing, because the buffer was never the problem.
Questions asked
Do transaction groups on the central gateway replace the commit loop?
Yes for the insert, no for the acknowledgment. Transaction groups can insert rows on their own schedule without loop code, but nothing in a scheduled group tells the station which record to clear. A named query called once per pending record keeps the commit and the acknowledgment in one auditable step, which is why the loop above uses it.
Does the station need a database driver installed?
No. In this design no database client exists at the station at all: the only MySQL connection lives on the central gateway, with its JDBC driver configured there. The station needs the gateway-network connection, storage for its pending file, and nothing on the database side.
How fresh must the driver roster be to authorize a load?
Decide before commissioning and write it into the procedure. A workable example policy: refresh the roster every 15 minutes while connected, honor a local copy up to 24 hours old, and past that have dispatch confirm the driver before loading. Tighten the age when contracts or regulation demand current identification for every load.
Can MQTT carry the load records instead of the gateway network?
Yes, with conditions. Publishing each load at QoS 1 under a persistent session gives at-least-once delivery through the outage, and the unique-key rule absorbs the duplicates that at-least-once permits. The station still needs scripting or a small local publisher to hold records while the broker is unreachable, so MQTT changes the transport, not the persistence requirement.
How do you build the unique id for each load?
From the station number and a sequence counter, for example station 7 with sequence 341, and the counter lives inside the pending file so a restart cannot reuse an id. With that id as the log table's unique key, a replayed record can never become a second row.


