ExamRobotic

Industrial communications

Level: Advanced 6 min read 31 questions

A modern machine is a network: the PLC talks to the HMI, to I/O modules spread around the machine, to the drives, to a robot and to the factory’s production system. When any of that fails, the machine stops just as if a sensor cable had broken, and the technician has to be able to diagnose it. This topic explains the most common networks, how they are addressed and how to find the typical faults.

Who talks to whom

PLC (controller) 192.168.0.1 Switch HMI panel 192.168.0.2 Remote I/O 192.168.0.10 Drive 192.168.0.20 Technician’s PC 192.168.0.50
A typical machine network. All the devices are on the same subnet (192.168.0.x) so they can communicate directly.

Industry talks about a pyramid of levels: at the bottom, sensors and actuators; above them, the PLCs; then supervision (HMIs and SCADA); and at the top, manufacturing execution systems (MES) and business systems (ERP). Each level uses different networks, and the lower you go, the more real time matters.

IP addresses: what you must master

Almost all current industrial networks run over Ethernet and use IPv4 addresses: four numbers from 0 to 255 separated by dots, such as 192.168.0.1. Alongside the address goes the subnet mask, which shows which part of the address is the network and which part is the device.

On siteTo connect your laptop to a PLC with IP 192.168.0.1, your network card must be on the same subnet, for example 192.168.0.50 with mask 255.255.255.0, without repeating the address of any device on the machine.

PROFINET

PROFINET is the industrial Ethernet network most used with Siemens PLCs. Its key concepts:

Typical mistakeReplacing a faulty remote I/O station with a new one and not assigning it the device name. The PLC cannot find it and reports a communication error even though the cable is perfect. In TIA Portal it is assigned from the online functions (“Assign device name”), or the PLC does it by itself if device replacement without exchangeable medium is enabled and the topology is configured.

Modbus: the universal language

Modbus is a simple and very widespread protocol for connecting equipment from different manufacturers: power meters, drives, temperature controllers. It comes in two variants:

The data is organised in four tables:

TableContentsUsual numbering
CoilsRead/write bits0xxxx
Discrete inputsRead-only bits1xxxx
Input registersRead-only 16-bit words3xxxx
Holding registersRead/write 16-bit words4xxxx
Typical mistakeThe off-by-one register offset. Many manuals call the first holding register 40001, but in the Modbus message its address is 0. If you read “40010” and get the value next to it, try one register lower. Another classic: 32-bit values take up two registers, and each manufacturer may order the two words the other way round.

On RS-485, the bus is wired in a line (not a star), with 120 Ω termination resistors at both ends, and with twisted, shielded cable. Without termination, or with long stubs, errors appear that depend on length and speed.

OPC UA: going upwards

OPC UA is a vendor-independent standard for connecting machines to supervision systems, MES or office applications. As well as the data, it describes what it means (names, units, structure) and includes security with certificates and encryption. It is the usual way of taking production data, such as OEE, from the PLCs to the company’s systems.

Cybersecurity on machines

A badly protected machine network is a real risk: a virus from the office or uncontrolled remote access can stop a line. The basics:

Diagnosing a communication fault

  1. Look at the LEDs on the port and the module: link, activity and error.
  2. Check the cable and the connector, especially in areas with movement or knocks.
  3. Ping the device’s IP from the laptop, with your network card on the same subnet.
  4. On PROFINET, check that the device has the right name and that there are no duplicate names or IPs. TIA Portal shows the accessible devices and their online diagnostics.
  5. On Modbus RTU, check the slave address, baud rate, parity, terminations and the order of wires A and B.

Summary

Test what you have learned

31 practical questions with explained answers. Free, no sign-up.

Start the test