MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › What steps do you follow when the PLC and HMI will not connect?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

What steps do you follow when the PLC and HMI will not connect?

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.

1. First split the two lines: serial and Ethernet

LineTop-3 causesQuick test
RS485 / RS232 serial① protocol/station/baud mismatch ② A/B lines swapped ③ wrong driver modelCompare the parameter table; try swapping A/B
Ethernet① IP not on one subnet ② wrong driver/port ③ cable/switch problemPing 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.

2. Serial: five parameters one by one

ParameterWhat to verifyCommon pit
Protocol / driverHMI driver matches the PLC's protocol (e.g. MITSUBISHI FX, MODBUS RTU)Choosing the driver that "looks like" it
Station numberHMI station = PLC comms-parameter stationPLC default 0/1 versus HMI default differ
Baud / data bits / stop / parityAll four identical on both sidesParity (N/E/O) is the most-missed one
A/B line order485's D+/D- wired correspondinglySwapping A/B is the first 485 move
Common / terminatorsRS485 terminators at both ends, common groundWithout 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.

3. Ethernet: three layers

① 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).

4. PLC-side settings: the layer most often skipped

FamilySettings to verifyTypical symptom
Mitsubishi FXCommunication format setting (D8120-class) / Ethernet parametersFormat mismatch → silence
OMRON CP1ESerial protocol (Host Link / NT Link) and station (DIP or software)Wrong protocol mode → totally dead
Siemens S7-200 SmartSystem-block comms settings, connection resourcesResources exhausted → new HMI cannot connect
Domestic makesTheir "serial/Ethernet communication settings" chaptersDefaults 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.

5. Interference and stability

"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.

6. The troubleshooting record table (copy and use)

StepActionPass criterion
1Read the PLC-side comms parametersActual station/baud/IP in hand
2Compare the HMI parameters item by itemFive (serial) / three (Ethernet) all identical
3Physical check: line order, terminators, pingPing OK / wiring matches drawing
4Re-verify the HMI driver modelExactly matches PLC model and protocol
5Single-HMI single-connection testOther hosts disconnected first
6Swap A/B or the cable if still deadCabling factor isolated
7One hour of stable runningNo dropouts, data refreshing

7. Notes

"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.

8. References

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.

9. Cautions

⚠️ Three traps to avoid:
① Parity overlooked — N versus E, one letter, total silence;
② HMI parameters guessed instead of read from the PLC side;
③ "Occasional dropouts" treated as fate when the 485 runs parallel to the power lines.

Once it works, copy the final parameters onto a "comms parameter card" taped inside the panel door — the next maintainer skips the archaeology.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL