A PLC to HMI connection error is solved layer by layer: first the physical link, then the IP address, then the protocol port and finally the controller parameters and permissions. A ping reply does not prove the controller accepts the connection. When the error started and whether one or all panels fail points to the cause.
Symptom
The panel shows a lost or not established connection notice, with a code or a text such as “no response” or “connection refused”, and fields are blank, show question marks or are flagged invalid. Sometimes the error appears in the controller, in its diagnostic buffer or on a port indicator. It may be permanent from first power up or show up on a system that had been working.
Here the connection fails or drops with a warning. If the screen gives no warning and only leaves figures still, see stale data on the HMI screen.
Likely causes, from most to least likely
| Cause | How to recognize it | What confirms it | What rules it out |
|---|---|---|---|
| Physical link: cable, connector, switch port or supply | Link light off or error counters rising | Connects after changing cable or port | Stable link with no errors |
| Wrong or duplicate IP address or mask | Started after installing or replacing a device | The answering MAC is not the PLC’s; ping fails or is erratic | A single correct MAC and stable ping |
| Controller parameters in the panel do not match | Never connected, or stopped after changing PLC or project | Model, slot, station number or path differ from the real ones | Parameters checked against the physical configuration |
| Port blocked by firewall, router or VLAN | Ping fine and connection times out | It connects from the PLC’s own network | Requests arrive and the PLC replies |
| Access not enabled or protected in the PLC | Connection refused on a healthy network | The server or external access option is off | Another client of the same type connects |
| Connection limit used up | The last one to connect fails; improves when another client leaves | PLC diagnostics show the maximum reached | Free connections remain |
| Controller faulted or port stopped | All clients fail at once | Fault indicators and diagnostic buffer | The controller runs and serves others |
How to diagnose it
- Copy the exact message with its code, time and the last change made. Look it up in the panel manual: it says whether the socket, the protocol or a variable failed.
- Bound the scope. Do all panels and SCADA fail, or just one? If all, look at the PLC and its switch; if one, that panel, its cable and its configuration.
- Check the link. Lights at both ends, switch port status, negotiated speed and error and drop counters.
- Verify the address. From an authorized computer on the same network, ping the PLC and query the ARP table. Compare the MAC with the label or the controller diagnostics.
- Test the protocol port, without sweeping the network. Common ones are TCP 502 for Modbus TCP, TCP 44818 for EtherNet/IP explicit messaging and TCP 102 for ISO over TCP (RFC 1006); confirm yours in the manual. An immediate refusal means something answered but there is no service on that port or it denies it; a timeout points to filtering, routing or a missing device.
- Capture the attempt. On a mirror port, see whether the panel sends the request, whether the PLC answers the TCP handshake and who closes. If TCP is established and then cut, the problem is in protocol parameters or permissions.
- Compare the panel parameters with the installed controller: model, address, slot or path, station number and project version.
- Count connections in the PLC or module diagnostics. List every client and disconnect, by agreement, those not needed.
If the protocol is Modbus and the connection opens but every read returns an exception code, the case is Modbus TCP answering with an error. How EtherNet/IP separates query messages from input and output messages is covered in EtherNet/IP and CIP.
Illustrative example
Invented figures; real limits are in the manual. A module accepts 8 simultaneous connections. Two panels open 2 each, SCADA opens 2 and a historian 1: that makes 7. The technician connects the programming computer and reaches 8. When a third panel needing 2 is powered, it does not fit and shows a connection error, even though its cable, address and project are right. Closing the programming session frees 1 and it is still 1 short. The solution is not a restart: it is reducing connections, reading through a single server or adding a module.
What to do
- Link: replace the cable or change port; check connectors, shielding and routing next to power cables.
- Address: correct it per the plan and remove duplicates; keep addresses static.
- Parameters: update the panel with the real configuration and download it after backing up the previous project.
- Firewall or VLAN: allow only the needed source, destination and port, and document the rule. Do not open everything to get by.
- PLC access: enable the service at the protection level your policy sets. Such a change requires whoever manages the program.
- Connections: close surplus sessions, review timeouts so that drops free connections and share the load.
- Faulted controller: read diagnostics before restarting and address the cause with people who know the process.
Field checklist
- Message, code and time recorded.
- Scope: one panel or all clients.
- Link lights and port counters.
- Address and MAC confirmed.
- Protocol port reachable.
- Panel parameters against the real controller.
- Connections in use and device maximum.
- Project backups before downloading.
- Link loss and recovery test after the fix.
What not to do
- Do not run the process trusting a panel with invalid values; verify in the field or by the intended means.
- Do not stop the controller or download a program with the machine running without authorization.
- Do not disable the firewall or access protection permanently.
- Do not launch port scans on control devices in production.
- Do not work inside an energized panel without qualified personnel and the site electrical precautions.
When to call us
If the error returns with no pattern, if who connects to the controller needs reorganizing or panel, PLC and SCADA need integrating with clear network rules, we review captures, projects and configuration. We configure it remotely: ask for support with your PLC and HMI.
Related guides
- CIP messaging over Ethernet
- Panel screen that does not refresh
- Modbus TCP registers and port
- Touch panels and their communications
- Controller stopping when the laptop is connected
References
- IEC 61131-2, Industrial-process measurement and control, Programmable controllers, Equipment requirements and tests.
- IEC 61158 and IEC 61784, industrial communication networks.
- IETF RFC 1006, ISO Transport Service on top of the TCP.
- Modbus Organization, Modbus Messaging on TCP/IP Implementation Guide.
Frequently asked questions
If ping replies, why does the HMI not connect?
Ping only proves there is an IP path to something answering on that address. The HMI connection uses a specific port and protocol, which may be blocked, disabled, at their maximum or wrongly parameterized in the panel.
Can a PLC reject a panel because of too many connections?
Yes. Every controller or communication module accepts a limited number of connections, published by the manufacturer. SCADA, a historian, the programming computer and several panels can use them up, and the last one to arrive is rejected.
Is restarting the PLC a solution?
It may release connections left open and make the error vanish for a while, but it stops process control and erases clues. Record messages and counters first, and restart only under safe and authorized conditions.