Prerequisites: Modbus TCP PLC on LAN, Slack incoming webhook URL. Run the Modbus read on-prem or via runtime export; Slack needs outbound internet from that host.
Build a factory alert workflow: read a temperature register from a PLC, evaluate warning/critical thresholds, and post to a Slack channel when limits are exceeded.
What this template does
- Every 30 Seconds — cron trigger (template uses
*/1 * * * *; tune as needed). - Read Temperature Register — single holding register from the PLC.
- Check Threshold — critical high 80°C, warn high 60°C.
- Slack Alert — message to
#factory-alerts.
Step 1 — Load the template
- Studio → Templates → search
Modbus Threshold Slack. - Load template #131.
Step 2 — PLC register
- Set Modbus Host, Port (502), and Start address for your temperature register.
- Confirm fieldPath in the threshold node matches Modbus output (
values.0by default).
Step 3 — Thresholds
- Open Check Threshold. Set Critical high and Warn high for your process.
- Add a Condition before Slack if you only want alerts on critical, not every poll.
Step 4 — Slack
- Paste your Slack Webhook URL in the Slack node (or
{{$var.slackWebhook}}). - Customize the message template with
{{values}}and{{zone}}from threshold output.
Step 5 — Run on-prem
- Activate on an on-prem Studio instance or exported runtime near the PLC.
- Simulate high register values in Dry Run if Modbus is unavailable.
- Verify Slack messages and run history.
Related tutorials
- Modbus PLC → InfluxDB Logger — continuous telemetry.
- Approved Device Command — safety gates for device actions.
- Runtime Monitoring — agent dashboard and heartbeats.