Telemetry Monitoring & Control
A Windows app for monitoring and controlling PLCs and RTUs over Modbus TCP, with live dashboards, alarms and a SQL Server history. WPF, Entity Framework, .NET 4.
Full Stack Developer · 2010 - 2015 · Industrial Automation
Tech: WPF, Entity Framework, .NET 4, Modbus TCP
The problem
Operators needed one station to watch and control industrial equipment spread across the field, and to keep readings for later analysis.
The approach
A Modbus TCP polling engine reads PLCs and RTUs on a fixed scan cycle and writes commands back. A WPF HMI shows live values and alarms, and readings are stored in SQL Server through Entity Framework.
The architecture
A polling engine sits between the field devices (Modbus TCP) and the WPF HMI, feeding dashboards, the alarm manager and SQL Server. Operator commands go back through the engine.
Outcomes
- Live monitoring and control of distributed PLCs and RTUs
- Configurable alarms with operator acknowledgement
- Telemetry history in SQL Server for trends and reports
- One offline RTU no longer stalls the whole scan
Overview
An industrial automation app for monitoring and controlling PLCs and RTUs over Modbus TCP. I built it with WPF and Entity Framework on .NET Framework 4. Operators get a SCADA-style live view of field devices and can send commands back.
The problem
Operators needed one station to watch and control equipment spread across the field. It had to:
- Poll PLCs and RTUs continuously for live tag values over Modbus TCP.
- Show device state in real time and raise alarms when thresholds are crossed.
- Send control commands back to the field safely.
- Keep historical readings for analysis.
Architecture
flowchart LR
subgraph HMI[WPF HMI - .NET 4]
DASH[Dashboards / Trends]
ALM[Alarm Manager]
end
POLL[Modbus TCP Polling Engine]
subgraph Field
PLC[PLCs]
RTU[RTUs]
end
DB[(SQL Server via EF)]
POLL <-->|Modbus TCP| PLC
POLL <-->|Modbus TCP| RTU
POLL --> DASH
POLL --> ALM
POLL --> DB
DASH -->|commands| POLL
How it's built
- A Modbus TCP polling engine reads holding and input registers and coils on a fixed scan cycle, and writes control commands back to devices.
- The WPF HMI binds to live tag values through MVVM and draws trends, gauges and status indicators as values change.
- Alarm thresholds are configurable. Alarms raise and clear on their own, and operator acknowledgements are tracked.
- Readings go through Entity Framework into SQL Server for trend analysis and reporting.
Polling and control loop
sequenceDiagram
participant E as Polling Engine
participant D as PLC / RTU
participant H as WPF HMI
participant DB as SQL Server
loop scan cycle
E->>D: Read registers (Modbus TCP)
D-->>E: Tag values
E->>H: Update live view
E->>DB: Store reading
E->>E: Evaluate alarms
end
H->>E: Operator command
E->>D: Write register / coil
D-->>E: Ack
What was tricky
- Field links drop out. Each device has its own timeout, retries and a communication health status, so one offline RTU doesn't hold up the whole scan.
- Control writes are confirmed and logged. Out-of-range commands are rejected before they reach a device.
Result
Operators can monitor and control distributed PLCs and RTUs from one place, alarms are configurable with acknowledgement, and telemetry history sits in SQL Server for trend analysis.