A PC-based HMI needs a communication driver for your PLC’s protocol, not a display driver. To set up a serial link, install the USB or serial adapter driver, find its COM port, add the matching protocol driver in the HMI, and set the same baud rate, data bits, parity, stop bits and station address on both ends. Then map tags to PLC addresses and test one value before building screens.
| Setting | What to enter | Common mistake |
|---|---|---|
| Driver | Protocol used by the PLC, such as Modbus RTU | Choosing a similar but different protocol |
| COM port | Number shown in Device Manager | Port changed after moving the USB adapter |
| Baud rate | Same on every device | One device left at its default |
| Data, parity, stop | Often 8E1 or 8N1 | Parity mismatch |
| Station address | Modbus RTU: 1 to 247 | Duplicate address |
| Timeout | Suited to the link | Too short for a slow bus |
Which Driver Does an HMI Need?
The word “driver” causes confusion. A display driver runs the computer’s graphics. A communication driver lets the HMI read and write PLC data. If your HMI is showing bad values or no connection, updating the graphics driver will not fix it.
| Driver type | What it does | Where it is set up |
|---|---|---|
| Display driver | Runs the PC monitor | Windows |
| USB serial adapter driver | Creates a COM port | Windows Device Manager |
| HMI communication driver | Speaks Modbus or another protocol | HMI software |
The HMI itself does no control. It reads PLC values, displays them and writes operator commands. For background, see what a PLC is and PLC vs DCS vs SCADA.
How to Set Up Serial Communication
- Confirm the PLC port and protocol from its manual.
- Connect the cable. For RS-232, see our DB9 pinout guide. For RS-485, connect A to A and B to B.
- Install the adapter driver if you use USB to serial.
- Find the COM port in Device Manager under Ports (COM & LPT).
- Add a channel in the HMI and select the protocol driver.
- Enter the serial settings exactly as configured in the PLC.
- Add the device with its station address.
- Create one test tag and confirm it matches the PLC value.
- Add the remaining tags, then build the screens.
Example settings from a real driver
| Parameter | PTC Modbus RTU Serial Driver |
|---|---|
| Baud rate | 1200, 2400, 9600, 19200 |
| Parity | Odd, Even, None |
| Data bits | 8 |
| Stop bits | 1 or 2 |
| Request timeout | Usually 1000 ms by default |
| Attempts before timeout | Typically 3 by default |
Modbus Address and Wiring Basics
Modbus RTU device addresses run from 1 to 247. Address 0 is broadcast and 248 to 255 are reserved. Every device on a bus needs a unique address.
| Link | Topology | Key point |
|---|---|---|
| RS-232 | Point to point | Suited to one short connection |
| RS-485 | Multidrop daisy chain | Check A/B polarity and termination |
On longer or faster RS-485 runs, fit 120 Ω termination at the two physical ends of the bus. Terminal labels are not consistent between manufacturers, so an A/B swap is a common cause of no response.
Estimate the Poll Time
Serial links are slow, so too many tags make the screens lag. A Modbus function 03 read uses an 8-byte request and a response of 5 bytes plus 2 bytes per register.
Wire time = 33 × 10 bits ÷ 9600 = 34.4 ms
With an assumed 20 ms device delay and 10 reads, a poll cycle takes about (34.4 + 20) × 10 = 544 ms, before retries. To speed it up, group neighboring registers into blocks, poll slow values less often or use a higher baud rate that every device supports.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Port cannot open | Wrong COM port or another program using it | Check Device Manager, close the other program |
| Timeout on every device | Serial settings, wiring or adapter | Check settings, then A/B |
| One device times out | Address, power or local wiring | Check that device |
| CRC or framing errors | Baud, parity or noise | Recheck settings and termination |
| Value is wrong but updates | Address offset, scaling or word order | Compare with the PLC |
| Slow screens | Too many tags or long cycle | Group and slow down polling |
A parity mismatch can look exactly like a wiring fault because the device may simply ignore the frame. Change one setting at a time and record the result.
The display hardware is a separate choice from the driver: see the industrial monitor guide for sealing, touch type and mounting.
Frequently Asked Questions
What drivers does a PC-based HMI need?
It needs a communication driver for the PLC protocol. If it uses a USB serial adapter, Windows also needs the adapter’s driver so the port appears as a COM port.
Is a display driver the same as an HMI driver?
No. A display driver runs the PC’s graphics hardware. An HMI communication driver lets the software exchange data with a PLC.
What serial settings must match?
Baud rate, data bits, parity and stop bits must match on the HMI and every device on the link. Each device also needs the correct station address.
What is the valid Modbus RTU address range?
Device addresses are 1 to 247. Address 0 is broadcast, and 248 to 255 are reserved.
Why does my HMI show a communication timeout?
Common causes are a wrong COM port, address, serial setting or A/B wiring, a powered-off device, or a timeout too short for the link.
Should I swap A and B on RS-485?
If a device does not respond, swapping A and B at one end is a low-risk check after isolating as needed, because manufacturers label these terminals inconsistently.
Do I need a termination resistor?
Long or fast RS-485 runs normally use 120 Ω termination at the two physical ends. A short bench cable may work without it.
How do I find my USB adapter COM port?
Open Windows Device Manager and look under Ports (COM & LPT). Note the COM number and select it in the HMI driver.
Sources and Further Reading
- PTC: Modbus RTU Serial Driver Help: channel, device and timing properties.
- MachineCDN: Modbus RTU Serial Link Tuning: addresses, parity and RS-485.
- Techeia: USB to RS485 Converter Driver Setup: COM ports and troubleshooting.
- Things Embedded: How Does an HMI Work With a PLC?: HMI role, tags and drivers.
