When the PLC and HMI will not talk, the symptom is always the same ("communication failure" on screen, data all zeros) and the causes concentrate in five places: parameter mismatch, cabling, network configuration, driver selection and PLC-side settings. A layered search finishes in twenty minutes without thrashing. The route below runs serial and Ethernet lines separately.
| Line | Top-3 causes | Quick test |
|---|---|---|
| RS485 / RS232 serial | ① protocol/station/baud mismatch ② A/B lines swapped ③ wrong driver model | Compare the parameter table; try swapping A/B |
| Ethernet | ① IP not on one subnet ② wrong driver/port ③ cable/switch problem | Ping the PLC — if it answers, it is configuration |
The guiding order: confirm "physically connected" first (serial: wiring; Ethernet: ping), then compare "parameter tables", and only then suspect hardware — reversing the order guarantees a detour.
| Parameter | What to verify | Common pit |
|---|---|---|
| Protocol / driver | HMI driver matches the PLC's protocol (e.g. MITSUBISHI FX, MODBUS RTU) | Choosing the driver that "looks like" it |
| Station number | HMI station = PLC comms-parameter station | PLC default 0/1 versus HMI default differ |
| Baud / data bits / stop / parity | All four identical on both sides | Parity (N/E/O) is the most-missed one |
| A/B line order | 485's D+/D- wired correspondingly | Swapping A/B is the first 485 move |
| Common / terminators | RS485 terminators at both ends, common ground | Without terminators, long lines always fail |
Read which layer the error reports: HMI "timeout" → parameters or wiring; "format error" → protocol or data bits; data occasionally jumps → noise or grounding. Treat the layer, do not shotgun.
① Physical: cable seated, switch port lit; swap cable and port to test. ② Network: ping the PLC's IP from the PC — success means physics and routing are fine; failure means check the IP (factory PLC IPs rarely match the plant subnet; HMI and PLC must share a subnet or route to each other). ③ Application: the HMI driver's PLC type and port (own protocols usually default; MODBUS TCP — check the 502 port is not disabled on the PLC), and connection-count limits (a PLC's Ethernet connections are capped; several HMIs/hosts can exhaust them and the new one cannot connect).
| Family | Settings to verify | Typical symptom |
|---|---|---|
| Mitsubishi FX | Communication format setting (D8120-class) / Ethernet parameters | Format mismatch → silence |
| OMRON CP1E | Serial protocol (Host Link / NT Link) and station (DIP or software) | Wrong protocol mode → totally dead |
| Siemens S7-200 Smart | System-block comms settings, connection resources | Resources exhausted → new HMI cannot connect |
| Domestic makes | Their "serial/Ethernet communication settings" chapters | Defaults often differ from the HMI's defaults |
On unfamiliar equipment, read the PLC-side comms parameters first (online via the programming software), write them down, and make the HMI's parameter table follow the PLC — never configure the HMI by guessing.
"Connects but drops occasionally" is another class: ① 485 running parallel to power lines — drops whenever the inverter starts: separate the runs, shield earthed one end; ② no common ground — the level reference drifts: tie the signal grounds; ③ long line without terminators — fit 120 Ω at the ends; ④ HMI polling too aggressive, saturating the PLC's serial port — relax the polling, cut unneeded data on low-traffic screens.
| Step | Action | Pass criterion |
|---|---|---|
| 1 | Read the PLC-side comms parameters | Actual station/baud/IP in hand |
| 2 | Compare the HMI parameters item by item | Five (serial) / three (Ethernet) all identical |
| 3 | Physical check: line order, terminators, ping | Ping OK / wiring matches drawing |
| 4 | Re-verify the HMI driver model | Exactly matches PLC model and protocol |
| 5 | Single-HMI single-connection test | Other hosts disconnected first |
| 6 | Swap A/B or the cable if still dead | Cabling factor isolated |
| 7 | One hour of stable running | No dropouts, data refreshing |
"HMI cannot reach PLC" means "the two sides fail to agree": the physical layer must agree (wires, levels), the data-link layer (station, frame format), the application layer (protocol, address mapping). Troubleshooting is confirming agreement layer by layer, each with hard evidence (parameter tables, ping, wiring) — never device-swapping roulette.
Serial parameters and Modbus/Host Link requirements follow the respective protocol specifications and the PLC/HMI communication manuals; cabling and noise control follow GB 5226.1 / IEC 60204-1 and RS485 installation practice; Ethernet connection limits follow the PLC's specification.
Once it works, copy the final parameters onto a "comms parameter card" taped inside the panel door — the next maintainer skips the archaeology.