Comparison
Redirecting PLC data logging to an external industrial PC
Short answer
Keep the controller logging to its SD card and move completed log files to the PC with a periodic push or pull; collect live OPC UA values on the PC only when losing records during outages is acceptable. The tag count, rate, record size, retention and worst outage fix the storage, and the worked example sizes it.
On this page
- Live values or historical records decides the architecture
- Five ways to move the data, compared
- Why local logging plus periodic transfer wins
- Sizing storage for 200 tags at 1 record per second with 24-hour outage cover
- Choosing the collection PC
- The outage test that proves the design
- The decision for each case
- Questions asked
Yes — the controller keeps logging to its SD card, and a periodic push or pull of the completed log files moves the data to the PC. Collect live OPC UA values on the PC only when you can accept losing every record for the duration of an outage. There is no fixed minimum PC specification to look up: the tag count, sample rate, record size, retention period and worst-case network outage fix the storage, and the worked example below turns those five inputs into a storage number and a go or no-go decision.
Live values or historical records decides the architecture #
Before comparing methods, answer one question: does the PC need the history, or only the present?
If a record written at 03:14 while the network was down must exist on the PC afterwards, the controller has to store it locally first and the PC must receive files. If the PC only needs current values — a dashboard, a condition monitor, a rate counter — logging software reading the controller's OPC UA server is enough, and every outage simply costs you the data in that window. Whether that PC needs a full historian or a plain tag server and flat files is its own sizing question, covered in do you need a historian or just an OPC tag server.
Five ways to move the data, compared #
| Architecture | Data path | Choose it when | The limit that decides |
|---|---|---|---|
| Controller pushes log files | Controller logs locally, then runs a scheduled transfer to the PC | You control the controller's software and want outages fully tolerated | Transfer tool must run on the controller and log its own failures |
| PC pulls log files | PC polls the controller on a schedule and copies completed files | You want the collector, not the controller, to own the schedule | The pull must skip or complete partial files so a record is never ingested twice |
| PC collects live OPC UA data | Logging software reads current values from the controller's OPC UA server | You need only current values and can lose outages | Every PC or network outage is unrecoverable data loss |
| PC queries historical data | An OPC UA historical access client (the successor role of OPC HDA, the OPC Classic archive standard) retrieves what the server has stored | The server exposes the history you need and you want on-demand retrieval | Verify the server implements OPC UA Part 11 historical access on your configuration first |
| Controller writes to a network-mounted volume | Controller's logging path points at a PC-hosted share | Do not choose this as the only record | A network loss can interrupt the logging itself, on the device you trusted to keep recording |
The first two rows are the same store-and-forward pattern used across the plant floor; choosing an edge data path for periodic records works through it for edge boxes in general. Whichever transfer tool you pick, enable its own log file so a failed run is visible in the morning instead of silent.
Why local logging plus periodic transfer wins #
With the controller logging locally, an outage of any length shorter than the storage runway loses nothing: the records sit on the card, and the first successful transfer after restoration carries them across. That runway is a number you can compute, and the example below computes it. Live-only collection cannot offer this at any setting, which is why the decision rule is short: need the history, keep it local; need only the present, collect live and say so in the documentation.
Use a dedicated least-privilege account for the transfer in both directions — the collector must never hold engineering or domain credentials, and the controller must not accept writes from the PC.
Sizing storage for 200 tags at 1 record per second with 24-hour outage cover #
The inputs below are illustrative example values — replace them with your own measured tag count, rate and record size; the formula and the decision rule are the part that carries over.
Inputs: 200 tags logged continuously; 1 record per second per tag; 24 bytes per record (an 8-byte timestamp, an 8-byte value, an 8-byte status); a worst-case network outage of 24 hours; 90 days of retention on the PC; a 4 GB logging partition on the controller's card.
The rule in words: daily volume = tags × records per second per tag × bytes per record × 86,400 seconds. The controller's runway in days = logging partition ÷ daily volume, and it must exceed the worst outage. The PC's storage = daily volume × retention.
The arithmetic: 200 tags × 1 record/s × 24 B = 4,800 B/s. Over a day: 4,800 B/s × 86,400 s = 414,720,000 B ≈ 415 MB/day.
Runway: 4,000 MB ÷ 414.72 MB/day ≈ 9.6 days, against a 24-hour outage — it clears with room to spare, so the transfer interval (15 minutes here) is a convenience, not a risk.
PC storage: 414.72 MB/day × 90 days ≈ 37,325 MB ≈ 37.3 GB. Provision at least 64 GB for the log volume, roughly 1.7 times the requirement, so retention pruning and file rotation have somewhere to work.
The decision: if runway in days is greater than the worst outage in days, local logging plus periodic transfer is safe as designed; if it is not, enlarge the partition or shorten the data life on the card. For this case, 9.6 days against 24 hours means go.
Choosing the collection PC #
At 4,800 B/s the network and processor load are trivial; what the arithmetic buys you is the freedom to size the PC for its other duties — the logging software, retention pruning, whatever else runs beside it — instead of for the data rate. The same rate-driven sizing logic, pushed to much higher rates, is worked through in sizing an edge PC for oversampled PLC data to InfluxDB. Once the storage and I/O budget is fixed this way, the collection host is usually a compact fanless unit such as an industrial mini PC mounted in the same cabinet as the controller, not a rack server.
The outage test that proves the design #
Run the collection normally for a baseline day. Then break the path deliberately: pull the network link for the worst outage you expect, or stop the logging application on the PC, whichever is your real failure mode. After restoration, check four things: the buffered records arrive, timestamps stay ordered, no record is duplicated or missing, and the transfer distinguishes completed files from the file still being written so a half-written record never lands on the PC. For live-only collection, the same test documents the lost interval — write that gap into the record so nobody later trusts the archive across an outage it did not survive.
The decision for each case #
- History must survive outages: controller logs to its SD card, completed files move by scheduled push or pull. Confirm the runway exceeds the worst outage with the arithmetic above.
- Only current values needed: logging software on the PC reads the controller's OPC UA server; accept and document the loss during outages.
- On-demand retrieval from the controller's own archive: only after confirming the server exposes OPC UA historical access on your configuration — and the pull must still handle partial files.
- Logging straight to a PC-hosted network share as the only record: do not do it; a network loss interrupts the logging itself, and local storage plus transfer costs nothing extra to run.
Questions asked
Can an AXC F 2152 or AXC F 3152 send its logged data to an external PC?
Yes. The controller keeps logging locally to its SD card, and a scheduled transfer on the controller pushes the completed files to the PC, or the PC pulls them on a schedule. The third option is logging software on the PC that reads live values over OPC UA, but that path loses whatever happens while the PC or the network is down.
What specifications must the collection PC meet?
No fixed minimum exists because the data rate sets it. Multiply tag count by records per second per tag by bytes per record by 86,400 to get the daily volume; multiply that by the retention period for the PC's storage, and divide the controller's logging partition by the daily volume to get the outage runway. Everything else — processor, memory, network — follows from the logging software you run and that volume.
Does an OPC UA historical access client read the controller's SD-card logs?
Only if the controller's OPC UA server implements the historical access part of the OPC UA specification and exposes the data it has stored. It is a query against what the server chooses to expose, not a generic file read from the card. Verify the server's historical access support on your controller configuration before buying anything that depends on it; a live-data read tells you nothing about it.
What happens to the records when the network is down at transfer time?
With local logging plus a push or pull transfer, the records simply accumulate on the SD card and the next successful run should carry everything pending, so nothing is lost as long as the outage is shorter than the storage runway. With live-only collection the records for that window are gone permanently. The outage test in the article is how you confirm which of the two your setup actually does.