Comparison of Modbus Over TCP/IP and PROFINETAugust 26, 2020 by David Peterson
Two of the most common protocols are Modbus and Profinet. They are similar in many ways, but there are some crucial differences.
Industrial computer networking is the ability to allow data to be transferred between all of the devices in the facility with processors. Sometimes, communication ports are built right into the front of the processor modules, while other times is an add-on card or module. Regardless of the physical method, we must understand how the various protocols differ in order to build effective networks. Two of the most common are Modbus and Profinet - they can appear similar in many ways. Still, there must be some differences, or there would be no reason to purchase different communication modules.
If you work in a facility with cables sharing data between PLCs, motor drive units, HMIs, remote I/O distribution blocks, and most likely PCs, then you probably need to understand some of the basic network principles.
Many end devices, such as this VFD, require an adapter (the blue device) to take the application data of normal Modbus and wrap it up in the physical and transmission standards of Ethernet TCP/IP.
Industrial networking relies on coordination between three different parts of the communication message, the physical and transmission standards, and the application data - two of these are identical between Modbus and Profinet, the last one is where the difference occurs.
This includes the common term ‘Ethernet’ which is common in home and industrial networks. This part of the network is identical between Modbus and Profinet, and any other network relying on internet transmission and addressing protocols.
Ethernet is the physical standard that limits what types of connectors, wires, voltages, and speeds may be allowed to ensure compatibility. This means that any related protocol, including Modbus TCP/IP and Profinet, will be precisely the same in the area of physical specs.
The connector is quite recognizable as a square plastic plug with eight metal contacts and a locking tab. This is the Registered Jack 45 (RJ45). It appears in nearly all modern industrial processor-based equipment, although again, sometimes requires an add-on module.
A subtle but critical difference in the physical connectors - the larger 8-pin RJ45 at the top is for the Ethernet TCP/IP connection, but the smaller 6-pin RJ12 at the bottom is for the Modbus connection. Profinet is always RJ45.
Some equipment is switching to fiber-optic connections due to speed and electrical noise immunity, and the connector is slightly different. It usually looks like a side-by-side locking hole in the communication module with an optical transmitter and receiver hidden inside.
The transmission speeds are limited by the devices on each end and the network switches. Speed is usually 100 Megabit per second or 1 Gigabit per second on modern “gigabit’ switches.
This category is also the same between the Modbus and Profinet network types. This part of the network specification includes two pieces, the Internet Protocol (IP) and the Transmission Control Protocol (TCP), which is why the networks are listed as TCP/IP.
The Internet Protocol, which defines the addresses, are required to get to the proper network and device. Many documents can be found which explain IP addresses, subnet masks, gateways, and server addresses. Since these are globally standardized, proper addressing allows these devices to work right alongside any laptop or PC connected to the network switch.
The other piece, the Transmission Control Protocol (TCP), is the part that establishes what action should take to prevent data collision, and what should happen if an error does occur.
Once again, this part of the protocol is the same between all TCP/IP networks so that they may work alongside each other and never cause problematic data collisions and conflicts.
Finally, we reach the part of the communication which is different and specific to every module being used.
Modbus defines a header of information that tells the receiving device what data to expect. This header is 7 bytes (56 bits) which is relatively short and simple. The most dynamic info in the header is the length of the data - it tells the receiver how much information it’s about to send.
The actual data is limited to just a couple of possible types of commands:
-- Reading boolean inputs
-- Writing to (also reading from) boolean outputs
-- Reading register inputs (like analog inputs, integer calculations, or motor control values for example)
-- Writing to (also reading from) register outputs
Modbus is superior in its simplicity, short messages, and direct interaction with control devices like PLCs, and simple, integer-based network devices like VFDs and HMIs. Don’t expect to see Modbus in use between computers in the office to share information that usually doesn’t match that list above.
This PLC allows device connections for Ethernet using TCP/IP standards and an RS-485 for Modbus-specific communication.
Profinet shares the same characteristics of using a header to define a message length, but the type of data in the field of Profinet can be far more complex.
Industrially, much of the information is still just I/O data, so it seems that the complexity of Profinet doesn’t make it any better than the simple I/O and Modbus data sharing. Recall, however, that as technology advances, much more complex information must be shared - camera data for machine vision applications and much longer strings of information for large process control systems.
Therefore, it would be logical to see Profinet in use for larger networks with more complex data. It might be the preferred choice for systems that are likely to see sizeable future expansion. An example might be a processing facility with large PLC/PAC systems interfacing with robots and sending data to office PCs in remote locations.
Modbus may be a more likely choice for smaller, simpler networks with devices that don’t require large amounts of shared complex information such as a single small PLC with a few I/O devices interfacing with just a couple of VFDs for a simple machine center.
Industrial networks can be equated to talking on a radio. The physical devices are the actual handhelds, wires, and wireless signals. The transmission control helps to allow each person to speak without talking over others. Finally, the actual application is the language of the two people talking - it has nothing to do with the radio equipment itself. Still, communication is impossible without a shared understanding of the data sent between the two devices.