Industrial Communication

How controllers, drives, sensors and software exchange data: serial links, Modbus, fieldbuses, industrial Ethernet, IP networking, OPC UA and MQTT, with cabling, security, platform set-up and troubleshooting.

A machine is rarely one box. A PLC talks to drives, remote I/O, meters, HMIs and other controllers, and increasingly to databases and the cloud. Each link uses a protocol (the agreed message format and rules) over a physical layer (the cable and electrical signals). This guide covers both, from the basics of how a serial character is built to industrial Ethernet, OPC UA and MQTT, with the hands-on part that most references leave out: connection recipes for the common PLCs, cabling and grounding, network security, and how to troubleshoot a link with a meter, a USB adapter and a sniffer. Every number (a frame size, a cycle time, a voltage, a cable length) is worked out so you can reuse the method.

Start here: what do you need?

I need to…Go to
understand layers, topologies, latency and how protocols fit togetherNetworking Fundamentals
wire RS-232 or RS-485, set baud rate and parity, terminate and bias a busSerial Communication: RS-232, RS-422 and RS-485
set up Modbus RTU or TCP, read a register map, decode a frame, fix a word-order problemModbus RTU, ASCII and TCP
understand or maintain PROFIBUS, CANopen, DeviceNet, AS-Interface, IO-Link or HARTFieldbuses and Device Networks
design or fix an EtherNet/IP, PROFINET or EtherCAT network, switches, multicast and ringsIndustrial Ethernet: EtherNet/IP, PROFINET and EtherCAT
choose IP addresses and masks, subnets, gateways, ports and VLANsIP Addressing, Subnets and VLANs
send data to SCADA, a historian or the cloud with OPC UA or MQTTOPC UA, MQTT and Industrial IoT
connect a particular PLC, drive or HMI: Allen-Bradley, Siemens, Mitsubishi, Omron and othersConnecting PLCs, Drives and HMIs
choose cable and connectors, route and shield them, or fit fiberCabling, Grounding and Noise
protect a control network: zones, firewalls, remote access, hardeningIndustrial Network Security
find out why a link does not work, with a method and symptom tablesTroubleshooting Industrial Networks
use USB adapters, loopback plugs, serial sniffers, Wireshark and a scopeSniffers, Analyzers and Serial Tools

A suggested order

If you are new to industrial networks, read the pages in this order. Each builds on the one before, and the previous and next links at the top and bottom of every page follow it. If you already work with networks, jump to the page you need.

  1. Networking Fundamentals: Layers and protocol stacks, network levels, topologies, messaging models, speed, latency and determinism.
  2. Serial Communication: RS-232, RS-422 and RS-485: How a serial character is built, the three electrical standards, DB9 pinouts and null modems, and a correct RS-485 bus.
  3. Modbus RTU, ASCII and TCP: Frames, function codes, addressing, data formats, exceptions, timing and gateways, with computed examples.
  4. Fieldbuses and Device Networks: PROFIBUS, CAN, CANopen, DeviceNet, AS-Interface, IO-Link, HART and CC-Link: how each works and where it fits.
  5. Industrial Ethernet: EtherNet/IP, PROFINET and EtherCAT: The Ethernet physical layer, the real-time protocols, switches, VLANs, multicast and ring redundancy.
  6. IP Addressing, Subnets and VLANs: Addresses and masks, subnet math, gateways, DHCP and BOOTP, ports, VLANs and a machine-network design example.
  7. OPC UA, MQTT and Industrial IoT: The information model, client/server and publish/subscribe, Sparkplug, gateways and edge architectures.
  8. Connecting PLCs, Drives and HMIs: Step-by-step connection recipes for Allen-Bradley, Siemens, Mitsubishi, Omron, IDEC, Unitronics, AutomationDirect and CODESYS.
  9. Cabling, Grounding and Noise: Cable types and connectors, shielding and grounding, routing, fiber, and an installation checklist.
  10. Industrial Network Security: Zones and conduits, segmentation, firewalls, remote access, hardening and the IEC 62443 approach.
  11. Troubleshooting Industrial Networks: A layered method, symptom tables for serial, Modbus and Ethernet faults, diagnostics and a commissioning checklist.
  12. Sniffers, Analyzers and Serial Tools: USB serial adapters, loopback plugs, terminal and Modbus tools, serial and Ethernet sniffing, Wireshark and scope checks.

The big picture

Networks are arranged in levels. Fast, deterministic links connect the controller to field devices; standard Ethernet joins controllers and supervisory systems; IT-style protocols carry data upwards. The boundaries are not strict: Ethernet-based protocols now reach down to the field level.

Enterprise and cloudMQTT, HTTPS, OPC UA, SQLtime scale: seconds to minutesPlant: SCADA, MES, historianOPC UA, Modbus TCP, EtherNet/IP, PROFINETtime scale: 100 ms to secondsControl: PLC to PLC, HMIEtherNet/IP, PROFINET, OPC UA, S7, FINStime scale: 10 to 100 msDevice: drives, remote I/O, motionPROFINET, EtherNet/IP, EtherCAT, PROFIBUS, Modbustime scale: 0.1 to 10 msSensor: simple field devicesIO-Link, AS-Interface, HART, 4-20 mA, switchestime scale: 1 to 10 msHigher levels are slower but carry more data; lower levels must be fast and predictable.
Typical protocol families by plant level, and the time scale that matters at each level.

Protocols at a glance

ProtocolMediumSpeedModelBest forPage
RS-232DB9 cable, 15 mto 115 kbit/sPoint to pointProgramming ports, instrumentsSerial
RS-485 / Modbus RTUTwisted pair, 1 200 m9.6 to 115 kbit/sMaster / slaveMeters, drives, sensorsModbus
Modbus TCPEthernet100 Mbit/sClient / serverSimple device integrationModbus
PROFIBUS DPRS-485, violet cable9.6 kbit/s to 12 Mbit/sMaster / slaveExisting Siemens and process plantsFieldbuses
CANopen / DeviceNetCAN bus125 kbit/s to 1 Mbit/sMulti-master, producer/consumerMachines, drives, mobile equipmentFieldbuses
AS-Interface, IO-LinkFlat cable; 3-wire M12cycles of 0.4 to 10 msMaster / slaveBinary and smart sensorsFieldbuses
EtherNet/IPEthernet100 Mbit/s or 1 Gbit/sProducer / consumerRockwell and many drivesIndustrial Ethernet
PROFINET RT / IRTEthernet100 Mbit/s or 1 Gbit/sController / devicesSiemens and many others; motion with IRTIndustrial Ethernet
EtherCATEthernet100 Mbit/sMaster / slaves, one frameFast motion and many I/O pointsIndustrial Ethernet
OPC UATCP, Ethernet100 Mbit/s and upClient / server, PubSubSCADA, MES, vendor-neutral integrationOPC UA and MQTT
MQTTTCP, Ethernet or cellularanyPublish / subscribeGateways and the cloudOPC UA and MQTT

Quick reference numbers

TopicNumber or rulePage
Serial character timebits per character ÷ baud: 10 bits at 9 600 baud = 1.04 ms (11 bits at 8E1 = 1.15 ms)Serial
Modbus RTU frame gapat least 3.5 character times (1.75 ms fixed above 19 200 baud)Modbus
Modbus CRC-16polynomial A001 (hex), start FFFF, sent low byte firstModbus
Modbus addressregister 40001 is wire address 0; function 03 reads, 06 and 16 writeModbus
RS-485 limits32 unit loads; 1 200 m at 9 600 baud; about 60 Ω across A and B with two 120 Ω terminatorsSerial
Ethernet copper100 m per channel; 100 Mbit/s uses pins 1, 2, 3, 6Cabling
Usable addresses in a subnet2(32 − prefix) − 2: /24 = 254, /26 = 62, /28 = 14IP Addressing
Common portsModbus TCP 502; EtherNet/IP 44818 and 2222; S7 102; FINS 9600; OPC UA 4840; MQTT 1883 and 8883IP Addressing
Frame time at 100 Mbit/s84 bytes (minimum frame with preamble and gap) = 6.7 µs; 1 538 bytes = 123 µsFundamentals
Network loadpackets per second × bytes per packet × 8; keep under 30 to 50 percent of a linkIndustrial Ethernet
Fiber link budgettransmit power − sensitivity − losses (fiber, connectors, splices) = margin; keep at least 3 dBCabling
HART1 200 / 2 200 Hz, ±0.5 mA on a 4–20 mA loop, at least 230 ΩFieldbuses

Tools to carry

ToolWhat forPage
MultimeterIdle voltage, termination resistance, supply voltage, continuitySniffers and tools
USB-RS232 and USB-RS485 adapters (isolated)A COM port on a laptop for terminals, Modbus tools and sniffingSniffers and tools
Loopback plug, breakout box, null modem adapterProve the PC side; swap pins without a soldering ironSniffers and tools
Terminal and Modbus softwareTalk to a device without a PLCSniffers and tools
Cable testerWire map, length, opens, shortsCabling
Laptop with WiresharkSee Ethernet traffic: queries, replies, resetsSniffers and tools
OscilloscopeSignal quality on serial linesTroubleshooting
Spare patch cords, terminators, connectorsQuick swapsCabling
The address list and register mapsEverything else depends on themTroubleshooting

Calculators

Safety and security

  • Electrical safety first. Panels contain mains and drive voltages. Isolate and verify before you touch anything, and follow your site’s lockout rules.
  • Do not experiment on a running machine. Do not force, write or reset anything you do not understand, and never connect a sniffer that can transmit to a live control network.
  • Communications are not safety devices. An emergency stop must act through hard-wired or certified safety hardware; a network can lose a message.
  • Protect the network. Keep control networks off the internet, segment them, change default passwords and use a single controlled path for remote access: see Industrial Network Security.
  • Get permission. Plugging a laptop into a production network needs approval on most sites.

FAQ

Where should I start if the link does not work?

Check the physical layer first (power, cable, link lights, polarity), then the settings (addresses, baud rate, names), then prove the device with a PC and a protocol tool, and only then look at the controller program. The page on Troubleshooting Industrial Networks gives a step-by-step method.

What is the difference between Modbus RTU and Modbus TCP?

They carry the same requests and data tables. RTU runs over a serial line (usually RS-485), uses a CRC and silent gaps to frame messages, and handles one transaction at a time. TCP runs over Ethernet, drops the CRC and slave address in favor of a header, and allows several clients. See Modbus RTU, ASCII and TCP.

Why are there 120 ohm resistors on an RS-485 bus?

The cable acts as a transmission line with an impedance of about 120 Ω. An unterminated end reflects the signal back and corrupts data at higher speeds or longer lengths. Resistors at the two ends match the cable and absorb the signal.

Is Ethernet fast enough for motion control?

Standard TCP/IP Ethernet is not deterministic enough. Real-time industrial Ethernet protocols (EtherCAT, PROFINET IRT, EtherNet/IP with CIP Motion) use special mechanisms to give predictable, sub-millisecond cycles on the same style of cable.

Which is better: a fieldbus or Ethernet?

For new designs Ethernet-based networks are the usual choice: they are faster, use standard cabling and tools, and connect easily to IT systems. Fieldbuses remain a sensible choice when extending an existing installation or where the devices you need support only them.

Do I need a managed switch?

For a small network with a few devices and no real-time requirement, an unmanaged industrial switch is often enough. For larger networks, EtherNet/IP I/O, ring redundancy, or when you need diagnostics and VLANs, use managed switches.

Should the PLC be the Modbus master?

Usually, yes: the PLC polls the drives, meters and sensors. An HMI or SCADA system then polls the PLC, which acts as a Modbus server. Only one master may be active on a serial bus.

References

  • Modbus Organization, Modbus Application Protocol Specification V1.1b3, Modbus over Serial Line Specification and Implementation Guide V1.02, and Modbus Messaging on TCP/IP Implementation Guide V1.0b (modbus.org).
  • TIA/EIA-485-A and TIA/EIA-232-F, electrical characteristics of serial interfaces; Texas Instruments application notes on RS-485 design.
  • PROFIBUS & PROFINET International, PROFIBUS Installation Guideline and PROFINET design guidelines (profibus.com).
  • ODVA, EtherNet/IP and DeviceNet specifications (odva.org).
  • EtherCAT Technology Group (ethercat.org); CAN in Automation, CANopen application layer (CiA 301); IO-Link Community specification; FieldComm Group, HART.
  • OPC Foundation, OPC UA specifications (IEC 62541); OASIS, MQTT Version 5.0; Eclipse Foundation, Sparkplug specification.
  • IEC 62443 series, Industrial communication networks: network and system security; IEC 61918, Installation of communication networks in industrial premises.

Last reviewed: October 2026. Speeds, lengths and node counts are typical values: confirm against the specification and the manufacturer’s documentation for the devices you use.