Selection guide
HMI panel as local data logger for a PLCnext controller
Short answer
An HMI panel with an integrated datalogger, CSV file output and an FTP service can log PLCnext data locally with no separate PC or historian. The decision turns on two numbers: the log volume per day against the panel's free storage, and the controller's protocol server against the panel's driver list, where Modbus TCP is the lowest-friction choice.
On this page
Yes: an HMI panel with an integrated datalogger, CSV-compatible file output and a built-in FTP server can serve as the local data logger for a PLCnext controller, with no separate PC or historian. Two numbers decide it before you configure anything: the daily log volume against the panel's free storage, and whether the controller exposes a protocol the panel's driver list supports. For a Linux-based PLCnext controller, Modbus TCP is that protocol; OPC DA is not.
What the panel must provide #
The requirement has four parts, and each maps to a panel feature you confirm in the datasheet and the engineering tool before you buy or commit:
| Requirement | Panel feature | Where to confirm |
|---|---|---|
| Visualization and runtime | Full HMI runtime with scripting and views | Panel datasheet, runtime license |
| Reach the PLC data | Driver for the controller's protocol server | Panel driver list, PLCnext-side protocol documentation |
| Store history | Integrated datalogger with CSV output | Datalogger configuration in the engineering tool |
| Retrieve later | Panel acts as an FTP server | Panel network and FTP service settings |
| Analyze on the device | Logged data viewable in trend or table objects | Runtime views |
The controller stays the data source and the panel owns the history. A failed panel or a filled file system therefore does not touch the control task, which is the main reason to log on the panel rather than in the PLC program.
If you are choosing the panel against an existing controller and its protocol, the checklist in Selecting a Modbus TCP HMI Panel for an Existing Controller covers the driver-side checks in more depth.
The protocol decision: Modbus TCP, not OPC DA #
The data moves in three hops: the PLCnext process variable, a protocol server on the controller, and the panel's driver writing into the datalogger. Panels in this class list both OPC DA and Modbus TCP among their drivers, but only one runs end to end here.
OPC DA is a Windows COM-based technology. It does not run natively on a Linux-based controller, so an OPC DA path needs an intermediate Windows component, which reintroduces the PC you were trying to avoid. Modbus TCP needs only that the controller presents the values as a Modbus server with a fixed register map, which PLCnext documentation and its function block libraries support. Confirm which protocol servers your PLCnext firmware and installed apps provide, because that list, not the panel, decides the driver. If your data already passes through a Modbus TCP bridge, the path in Getting gateway sensor data onto an HMI with a Modbus TCP bridge is the same shape.
One limit to accept up front: the logged timestamp comes from the panel clock at the moment the driver reads the value, quantized by the poll period. Fast events need a buffer or event record on the controller side.
The sizing decision: log volume against free storage #
Storage fill is the failure that ends a panel-based logger, and it is a straight multiplication:
bytes_per_day = tags x bytes_per_value x (86400 / log_period_s)
Worked example, as an illustration: 50 tags, a CSV row cost of 12 bytes per logged value, a 1 s log period.
50 x 12 B x (86400 / 1 s) = 51.8 MB per day, so a 30-day retention needs 51.8 MB x 30 = 1.55 GB.
The 12-byte row cost is an example; measure the real bytes per row from a test file after one hour of logging and extrapolate with the same formula. What moves the number: doubling the tag count or halving the period doubles the volume; logging on change or with a deadband cuts both the byte count and the flash write cycles for slow signals such as temperatures.
| Quantity | Compare against | Read it from |
|---|---|---|
| Bytes per day | Free panel storage divided by retention days | One day of CSV files; panel storage properties |
| Poll rate x tag count | Driver and network throughput | Driver diagnostics, observed update time |
| File retention | Your FTP retrieval interval | Maintenance schedule |
Commit rule: free storage divided by the measured bytes per day must exceed the retention you promise, with at least 50% margin for files not yet retrieved. If it does not, raise the log period for slow tags or log on change before you consider any other hardware.
Setting it up #
- Put the panel and the controller in one subnet and confirm they reach each other.
- Expose the process variables on the controller as a Modbus TCP register map and record the address list.
- Add the Modbus TCP driver in the panel project and define the tags against that list; the byte-order checks in Displaying a PLC Real Value Over Modbus on an HMI apply to 32-bit values.
- Create the datalogger, assign the tags, and choose the trigger: fixed period, on change, or event. Set CSV output and file rollover so each file stays a manageable size.
- Add a view that shows the logged data for commissioning.
- Enable the FTP service, create a restricted account, and replace any factory credentials before the panel joins a plant network.
- Transfer the project, run it, and pull a log file with an FTP client from a laptop.
Verifying the log #
Force a known value in the controller and compare it against the panel tag and then the CSV row; a scale or byte-order mismatch points at the register map or data type, not the logger. Check consecutive timestamps against the configured period, then unplug the controller cable briefly and confirm how the log marks the outage, since the controller will not back-fill that interval. Open a retrieved file in the spreadsheet tool that will analyze it, because regional decimal settings can turn a comma into a column break. Record the file size after one hour and check it against the sizing formula.
Set the panel's time source and re-check the clock after a power cycle: a lost clock shifts every timestamp in the file.
Decision #
If your PLCnext firmware exposes a Modbus TCP server and your daily log volume fits the panel's free storage with margin, a panel with an integrated datalogger, CSV output and FTP service is the local logger, and Modbus TCP is the driver. If the volume does not fit, raise the period or log on change first; only if neither reaches your retention do you need a logging device with more storage.
Questions asked
What happens if the panel storage fills while the datalogger is running?
New records can no longer be written and the history stops, while the PLCnext control program keeps running because the controller is only the data source. Set file rollover and an old-file deletion rule during commissioning, and size the storage from the daily log volume with margin before the panel goes into service.
What happens if the network between the panel and the PLCnext controller drops?
The panel driver stops receiving values, so the log shows gaps or bad-quality entries for that interval, and the controller does not back-fill them afterwards. If gaps are unacceptable, buffer the values on the controller side and pull them after the link recovers.
Is OPC DA a workable path from a PLCnext controller?
Not directly. OPC DA is a Windows COM-based technology and does not run natively on a Linux-based controller, so an OPC DA path implies an intermediate component on a Windows machine. Modbus TCP avoids that extra hop when the controller presents the values as a Modbus server with a fixed register map.
Does the logged timestamp come from the PLC scan?
No. The timestamp is written by the panel clock at the moment the driver reads the value, so it is quantized by the poll period. Events faster than the poll period need a buffer or event record on the controller side if their timing matters.