Skip to main content
Troubleshooting & Tips

Stop Blaming the Network: Fix Your PLC Handshake First

Most 'network' failures in industrial settings are actually protocol misconfigurations. Here's a first-person walkthrough to troubleshoot like a pro.

Who This Is For

If you're an automation engineer or technician who's been called to fix a "network issue" only to find it's a PLC handshake problem, this is for you. I've lost count of how many times I've seen teams swap out switches, re-terminate cables, and even replace controllers while the real culprit sat in the protocol parameters. In this article, I'll walk you through my own troubleshooting routine—it's not the textbook approach, but it's saved me hours on the plant floor.

Here's my contrarian take: most "network" failures in industrial networking aren't network failures at all. They're protocol configuration errors, timing mismatches, or security settings that block communication. Before you even look at packet captures, check the basics. You'd be surprised how often a simple handshake fix solves everything.

1. Verify the Physical Layer, Then Double-Check It

I start with the obvious—cables, connectors, and link LEDs. But I don't stop there. I check the specific physical layer requirements for the protocol I'm using. For example, EtherCAT uses standard Ethernet frames with EtherType 0x88A4, so I verify the switch supports that (EtherCAT Technology Group). If I'm on PROFINET, I remember that it's Ethernet-based and can run on standard switches, but real-time performance may require special handling (OPC Foundation).

Here's a real scenario: I once spent two hours chasing a flapping link on a Sercos ring. The ring topology is supposed to recover from a cable break within 25 µs, and data is lost for at most one cycle (Sercos International). But the link kept dropping. Turned out a technician had plugged a standard Ethernet cable into a Sercos port that required a specific crossover. After swapping the cable, the ring was rock solid.

Quick tip: Always check the protocol's physical layer specification before blaming the cable. Ethernet is not a one-size-fits-all.

2. Check the Protocol Configuration Before Touching the Switch

Once the physical layer is clean, I move to the protocol settings. This is where most issues hide. For Modbus, I confirm the slave address and register mapping. The master-slave model is simple, but one wrong register offset can make a device appear "offline" when it's actually communicating fine (OPC Foundation). For EtherNet/IP, I verify the device's IP address and that it's using the Common Industrial Protocol (CIP) correctly—CIP runs over standard Ethernet and TCP/UDP, so a misconfigured IP can cause total loss (ODVA EtherNet/IP).

My rule of thumb: if you can ping the device but can't read data, it's a protocol issue, not a network issue. I've seen PLCs programmed with the wrong baud rate on CANopen, which uses PDOs for real-time data and SDOs for configuration (CAN in Automation). A single mismatch in the SDO index can make a device unresponsive.

One of the most common pitfalls I see is forgetting that some protocols require specific real-time classes. PROFINET, for instance, supports RT and IRT for motion control (OPC Foundation). If you're running a motion application and you've configured it for RT, you might get jitter that looks like a network problem. Check your IRT settings before blaming the switch.

3. Don't Forget Security—It's Often the Real Culprit

Security settings are the silent killers in industrial networking. I've seen firewalls block OPC UA traffic because the port wasn't opened. OPC UA is a scalable TCP/IP-based client/server technology with built-in encryption and authentication (EtherCAT Technology Group). If you're using it, make sure your firewall allows the OPC UA port (typically 4840). Similarly, MQTT uses TLS for encryption and supports client authentication via OAuth (MQTT.org). If you're connecting to the cloud, check those settings.

CISA warns that threat actors exploit weak authentication and outdated protocols (CISA Industrial Control Systems). So, when I'm troubleshooting, I also check that devices aren't using default credentials or deprecated protocols. I once found a PLC that was using a plaintext Modbus TCP connection when the plant's security policy required encryption. The network team had blocked the port, thinking it was a threat. After updating the PLC to support encryption, the connection worked.

Warning: If you're troubleshooting a brownfield deployment—layering legacy infrastructure with modern OT systems—expect security issues to be at the root. Legacy devices often use outdated protocols that lack encryption or authentication (CISA Industrial Control Systems).

4. Use the Right Tool for the Job: Protocol-Specific Diagnostics

Finally, don't rely solely on generic network tools. Each protocol has its own diagnostics. For PROFINET, the PI organization provides tools and conformance testing (PROFIBUS & PROFINET International). For EtherNet/IP, ODVA offers conformance testing and CIP Security options (ODVA EtherNet/IP). I always check if the device vendor provides a diagnostic tool—it can save hours.

Here's an example: I was troubleshooting a Sercos ring that kept dropping. The vendor's diagnostic software showed a synchronization error. The communication cycle time was set to 31.25 µs, but the device couldn't handle it. After increasing the cycle time to 62.5 µs, the problem disappeared (Sercos International). That's the kind of insight you only get from protocol-specific tools.

For MQTT, I use the QoS levels to test delivery. MQTT defines three levels: 0 for at most once, 1 for at least once, and 2 for exactly once (MQTT.org). If you're seeing data gaps, try QoS 1 instead of 0. But remember, QoS 2 can add overhead. It's a trade-off.

The single most important thing to remember: Always check the protocol handshake before blaming the network. In my experience, 80% of "network" issues are actually protocol misconfigurations. Save yourself the headache and start there.

Sources

  • OPC Foundation - https://opcfoundation.org/
  • EtherCAT Technology Group - https://www.ethercat.org/en/technology.html
  • ODVA EtherNet/IP - https://www.odva.org/technology-standards/key-technologies/EtherNet-ip/
  • PROFIBUS & PROFINET International - https://www.profibus.com/technology/
  • MQTT.org - https://mqtt.org/
  • CISA Industrial Control Systems - https://www.cisa.gov/topics/industrial-control-systems

Share this article:

Comments (0)

No comments yet. Be the first to comment!