Prerequisites: PLC reachable on LAN (Modbus TCP port 502), InfluxDB 2.x endpoint. This template is on-prem only — run in Studio on-prem or export a runtime agent on the gateway PC.
Build an industrial Modbus telemetry pipeline: poll PLC holding registers on a schedule and write readings to InfluxDB for dashboards and alerting.
What this template does
- Every Minute — Cron Schedule trigger.
- Read PLC Registers — Modbus TCP Request (holding registers).
- Write to InfluxDB — time-series point with tags for PLC identity.
Step 1 — Load the template
- Studio → Templates → search
Modbus PLC InfluxDBor IoT Automation. - Load template #128. Confirm the cloud badge shows on-prem requirement on Modbus nodes.
Step 2 — PLC connection
- Select Read PLC Registers. Set Host to your PLC IP (e.g.
192.168.1.10). - Configure Unit ID, Start address, Count, and Data type per your device manual.
- Use Direct connect — no Discovery scan required for Modbus TCP.
Step 3 — InfluxDB
- Select Write to InfluxDB. Set URL, token, org, bucket, and measurement name.
- Map Value from
{{values}}or a specific register index. - Store credentials in
{{$var.influxToken}}rather than plain text when possible.
Step 4 — Schedule
- Adjust the cron expression if one minute is too aggressive for your PLC.
- Example:
*/5 * * * *for every five minutes.
Step 5 — Test on-prem
- Run from an on-prem Studio host or exported runtime on the same subnet as the PLC.
- Dry Run validates graph wiring; live Modbus requires activation.
- Check InfluxDB for new points and Jobs → History for run traces.
Deploy to edge
For factory gateways, export the runtime agent and install as a Windows/Linux service. The agent polls locally — no cloud hop for PLC traffic.
Related tutorials
- Modbus Threshold → Slack Alert — alert when a register exceeds limits.
- File Drop Automation — another on-prem pattern.
- Modbus TCP Request — node reference.