What Is Modbus? Ultimate Guide with 7 Real-World IoT Uses

what is modbus

What is Modbus? It is an open industrial protocol, published by Modicon in 1979, that lets controllers, meters and drives exchange data. This IoT Insights Hub guide explains what is Modbus, how Modbus RTU and Modbus TCP differ, and where the protocol is used in IoT.

What is Modbus? Industrial protocol guide cover image from IoT Insights Hub

IoTOctober 19, 202612 min readBy IoT Insights Hub Editorial Team

What Is Modbus? Ultimate Guide with 7 Real-World IoT Uses

Ask an engineer what is Modbus and you will often get a shrug and a smile. It is old, plain and a little awkward. It also sits inside a huge number of energy meters, drives, pumps and controllers, which is why it keeps showing up in IoT projects.

This guide from IoT Insights Hub explains how the protocol works, the difference between RTU and TCP, what registers and function codes are, seven real uses, and where it falls short. Where a figure comes from a vendor page, or is old, the text says so.

New to connected devices? Read our beginner guide to IoT first. Modbus is the wired, industrial cousin of the wireless protocols we cover in our explainer on what is Zigbee.

1979year Modicon published Modbus (Wikipedia, NI)
247servers on one serial bus, addresses 1 to 247 (Wikipedia)
502TCP port used by Modbus TCP (Wikipedia)
253 Bmaximum PDU: function code plus data (Wikipedia, NI)

What is Modbus and where did it come from?

Modbus is an open messaging protocol that lets industrial devices exchange data. Modicon published it in 1979 for its programmable logic controllers, and it is now a de facto standard for industrial electronics. It runs over serial lines, Ethernet or the internet protocol suite, and it is royalty-free.

Per Wikipedia, Schneider Electric bought Modicon in 1997, and in 2004 the rights moved to the Modbus Organization, a trade association of users and suppliers. A National Instruments page repeats a promotional line calling the Modbus Organization the steward of “the world’s most widely adopted industrial communication protocol,” so read that with a grain of salt. The royalty-free part is easier to check: Wikipedia calls the protocol “openly published and royalty-free.”

That openness explains the longevity. A drive maker, a meter maker and a PLC maker can all add Modbus without a licence fee, and a buyer can mix their kit on one cable. National Instruments describes the aim as making communication possible between automation devices, and it says the basic standard has barely changed in decades.

Modbus works at the application layer. It defines what a message means, how data is addressed and how it is formatted, and it leaves the wiring to something else. If you want to see where that sits in a larger design, our guide to IoT architecture maps the layers.

How does Modbus work?

Modbus follows a request and reply pattern. One client, formerly called the master, sends a request to a server, formerly the slave, identified by an address. The server answers with the data or an error. Only the client starts a conversation, so servers never speak unless asked.

The Modbus pattern: the client asks, a server answers.

Wikipedia says a serial bus can carry up to 247 servers, addressed 1 to 247, with address 0 reserved for broadcast. Addresses 248 to 255 are reserved. Schneider Electric’s FAQ describes the same one-client, 247-server layout, and it notes a non-standard two-byte addressing extension that raises the limit to 65,535 servers if both ends support it.

The cost of this design is polling. Wikipedia explains that field devices on serial links cannot send events by themselves, so the client has to keep asking, and that uses bandwidth. Wikipedia notes an exception for Ethernet TCP/IP, sometimes called open-mbus.

In practice, a typical setup has a gateway acting as the client, reading values from meters and drives on a schedule, then forwarding them upward. That forwarding step is often where lightweight messaging takes over, and our explainer on what is MQTT covers the protocol most gateways use to reach the cloud.

What is the difference between Modbus RTU, ASCII and TCP?

All three carry the same Modbus messages. RTU sends compact binary frames over a serial cable, usually RS-485, and checks them with a CRC. ASCII sends readable characters over serial and is slower. TCP wraps the message in a TCP/IP packet, so it needs no extra checksum. The core message is the same, but the frame around it differs.

The table below uses Wikipedia, National Instruments and Schneider Electric. Where we add a judgement, it is marked as our view.

FeatureModbus RTUModbus ASCIIModbus TCP
MediumSerial, usually RS-485SerialEthernet and IP networks
EncodingBinaryTwo ASCII characters per byteBinary
FrameAddress, PDU, 2-byte CRCStarts with “:” and ends with CR/LFMBAP header plus PDU
Error checkCRC-16LRC checksumNone added, lower layers provide it
Frame boundarySilent gap of 3.5 character timesStart and end charactersLength field in the header
Max frame (ADU)256 bytes256 bytes (RS-232/485)260 bytes
PortNot applicableNot applicableTCP 502
Our viewThe usual pick on a shared cableMostly for slow or flaky linksThe usual pick for new network installs

Two points are easy to miss. First, RTU depends on timing. Wikipedia says frames are separated by silent intervals of 3.5 character times, and National Instruments warns that USB-to-serial adapters can introduce gaps that cause RTU timing errors. Second, the TCP header carries a unit ID, which National Instruments says is typically unused on devices that have their own IP address.

RTU usually rides on RS-485. Wikipedia describes it as a multi-drop bus, supports at least 32 unit loads, recommends wiring it as a line rather than a star, and says cables should be terminated at each end to match the cable’s impedance, typically 120 ohms for twisted pair. It puts the reach at up to 1,200 m (4,000 ft), but only at lower speeds.

National Instruments says ASCII is worth a look if RTU causes timeouts or the link is very slow, such as 300 bps or a dial-up modem. Modern installs rarely need that. For a sense of speed, Schneider Electric’s page uses 9600 baud as a typical serial example, and Grundfos calls Modbus slower than many other fieldbuses but stable, simple and proven.

Modbus at a glance infographic from IoT Insights Hub comparing Modbus RTU and Modbus TCP, data tables and function codes
Modbus at a glance: client and server, RTU versus TCP, the four data tables and common function codes.

What are Modbus registers and function codes?

Every Modbus server stores data in four tables: coils and discrete inputs hold single bits, while input registers and holding registers hold 16-bit words. Function codes tell the server what to do with a table, such as read coils (1), read holding registers (3) or write multiple registers (16).

Per Wikipedia, each table allows up to 65,536 items, addressed 0 to 65,535. Two are read-only and two are read and write.

TableAccessSizeClassic reference range (NI)
CoilsRead and write1 bit00001 to 09999
Discrete inputsRead only1 bit10001 to 19999
Input registersRead only16 bits30001 to 39999
Holding registersRead and write16 bits40001 to 49999

Here is where beginners trip. The familiar numbers such as 40001 are reference names, not the address sent on the wire. National Instruments explains that coil 1 sits at address 0 in the message itself, so many tools shift everything by one. When a reading looks wrong by one slot, that is the first thing to check.

Function codeWhat it does
1Read coils (up to 2,000 per request, per Wikipedia)
2Read discrete inputs
3Read holding registers
4Read input registers
5Write a single coil
6Write a single holding register
15Write multiple coils
16Write multiple holding registers

Wikipedia lists many more, including 22 (mask write), 23 (read and write multiple registers) and 43 (device identification). National Instruments adds that function 43 is “not commonly implemented,” so do not count on it. If a request fails, the server replies with an exception code: 01 for an illegal function, 02 for an illegal address, 03 for illegal data and 04 for an unrecoverable server error.

Some practical limits matter. National Instruments says masters often limit reads to 125 holding registers at a time. A 32-bit value needs two registers, and the standard does not define byte or word order, so you must match each device’s habit. In IoT Insights Hub’s view, that single gap causes more first-day debugging than anything else.

What is Modbus used for? 7 real uses

Modbus suits any job where a controller or gateway needs to read numbers from, or write settings to, many devices. Common uses include PLC and drive control, energy metering, building management, solar and battery systems, pumps and water systems, SCADA monitoring and gateways that feed IoT platforms.

  1. PLC and drive control. National Instruments says Modbus can replace discrete wiring between a PLC and a variable-frequency drive, covering start and stop, direction, speed setpoint and fault monitoring over one shared cable.
  2. Energy, water and heat metering. MIVO lists energy, electricity, water and heat meters among Modbus applications, with registers such as 40001 for voltage and 40004 for energy consumption in its example. A gateway polls them as the client.
  3. HVAC and building management. Grundfos says Modbus is used in building management systems for offices, schools, airports, hotels and hospitals, and in HVAC. It cites remote control, scheduling, trending and alarming as services.
  4. Solar and battery storage. MIVO lists solar power systems, battery storage, heat pumps and EV charging infrastructure among Modbus uses, usually read by a gateway for an energy management system.
  5. Pumps and water systems. Grundfos names wastewater and water supply among the places its Modbus-connected products serve, alongside process and factory automation. It says status messages, alarms, operation hours and energy use can be passed to the building manager.
  6. SCADA and supervisory monitoring. Schneider Electric says Modbus moves data between instruments, controllers and supervisory systems such as SCADA, which is how plant operators see many devices from one screen.
  7. Gateways that feed IoT platforms. MIVO says a gateway can act as the Modbus client and forward values to cloud IoT platforms, energy management and reporting tools. National Instruments also describes gateways that expose wireless field-instrument data to Modbus masters.

Across all seven, what is Modbus doing? In IoT Insights Hub’s reading, it is moving small, numeric values between devices that were never designed to talk to each other, using one common set of tables. For the wireless side of the same jobs, compare it with our guide to Zigbee vs LoRaWAN, and for mixed estates see our piece on multi-protocol IoT systems.

A reading is only useful if someone sees the alarm. IoT Mail Bridge explains how to turn device events into email in its guide to setting up IoT email automation. For larger fleets, see its write-up on a reliable SMTP relay for IoT and M2M fleet alerts.

A note for founders: selling into industrial IoT? The Business Perspective tracks the money. Its Q3 2026 venture funding analysis puts AI at 64% of funding in its headline finding, and its Indian startup funding report for Q3 2026 covers 63 deals.

Is Modbus secure?

The original protocol is not. Wikipedia says Modbus provides no security against unauthorised commands or interception of data, and MIVO notes it has no built-in encryption. A TLS-based Modbus Security specification, announced in October 2018, adds authentication and uses port 802, but many installed devices still speak plain Modbus.

The Modbus Organization’s 29 October 2018 press release describes Modbus Security as traditional Modbus wrapped in Transport Layer Security. It uses X.509v3 certificates to authenticate both client and server, and a certificate extension carries role-based access control. The release says interoperability was first shown in May 2017 by four member companies and that products were expected in 2019. The specification is free on modbus.org.

IoT Insights Hub could not confirm how many devices ship with it today, so treat adoption as unknown. Our view is that most Modbus you meet in the field is still plain, which means the network around it has to do the protecting.

  • Keep Modbus on its own network segment, away from office and guest traffic.
  • Never expose port 502 to the open internet.
  • Put a gateway between Modbus devices and the cloud, and let the gateway handle encryption and logins.
  • Log which clients write to holding registers and coils, since writes change equipment behaviour.

Those four points are IoT Insights Hub’s practical advice, not quotes from a standard. For wider habits, read our guide to IoT security risks and how to fix them. IoT Mail Bridge covers the data-in-transit side in its piece on edge-to-cloud data security for IoT fleets.

What do critics say about Modbus?

Critics say Modbus is dated: it has no security, no device discovery, no event reporting on serial links and a simple numeric data model. Supporters answer that its simplicity is the point, and that millions of installations prove it works. Both are true, so the right choice depends on the job.

  • No security: Wikipedia says there is no protection against unauthorised commands, and MIVO says there is no built-in encryption.
  • Polling overhead: on serial links the client must keep asking, per Wikipedia, which wastes bandwidth and adds delay.
  • Manual setup: MIVO says each device typically needs to be configured by hand, because Modbus has no automatic device identification.
  • Thin data model: MIVO says it is designed mainly for numbers. The standard defines only the bit and the unsigned 16-bit word, per National Instruments, so strings and floats vary by vendor.
  • Address limits: 247 servers on one serial link, per Wikipedia.
  • Fragmentation: Wikipedia says variants such as Pemex Modbus and Enron Modbus are extensions that are not interoperable with the rest.
  • Vendor bias: several pages IoT Insights Hub read come from companies selling Modbus gateways or meters, so their praise for simplicity is not neutral.

It is also worth separating Modbus from newer options. If you need self-describing data, events and strong security, protocols such as MQTT or OPC UA fit better, though that comparison is our view and not a finding from the sources above. For power trade-offs on the wireless side, see our guide to energy-efficient IoT protocols.

Modbus FAQs

What is Modbus in simple words?

Modbus is a plain, open way for industrial devices to share data. One device, the client, asks others, the servers, for values such as a temperature or a meter reading, and they reply. Modicon published it in 1979, and it now runs over serial cables and Ethernet.

What is the difference between Modbus RTU and Modbus TCP?

Modbus RTU sends compact binary messages over a serial cable, usually RS-485, and protects them with a CRC. Modbus TCP carries the same core message inside a TCP/IP packet over Ethernet, typically on port 502, and needs no extra checksum. RTU suits shared cables, while TCP suits networks.

How many devices can a Modbus network have?

Wikipedia says a serial bus supports up to 247 servers, addressed 1 to 247, with address 0 used for broadcast. Schneider Electric describes the same limit and notes a non-standard two-byte addressing extension that raises it to 65,535 servers, but both the client and the servers must support it.

What are Modbus registers?

Registers are the 16-bit slots where a Modbus server keeps numeric values. There are two types: input registers, which are read only, and holding registers, which can be read and written. Two more tables, coils and discrete inputs, hold single on or off bits. Each table allows 65,536 items.

Is Modbus secure?

Not by default. Wikipedia says the original protocol offers no protection against unauthorised commands or interception. The Modbus Organization announced a TLS-based Modbus Security specification in October 2018, using certificates and port 802. Keep plain Modbus on an isolated network and never expose port 502 to the internet.

Is Modbus still used in 2026?

Yes. MIVO says Modbus has been in use for more than 40 years and sits in millions of installations, including energy meters, HVAC, solar and battery systems. That is a vendor claim with no source count, so treat it as a broad indication. It remains common because it is simple and royalty-free.

Sources behind this what is Modbus guide from IoT Insights Hub

  • Wikipedia, “Modbus” (history, variants, data model, function codes, frame formats, port 502, limits, security)
  • Modbus Organization, “Modbus Security” press release, 29 October 2018 (TLS, X.509v3 certificates, port 802)
  • National Instruments, “The Modbus Protocol In-Depth” (updated 30 May 2025; RTU, ASCII and TCP, addressing, limits)
  • Schneider Electric, “What is Modbus and how does it work?” (client and server roles, 247 servers, serial setup)
  • Wikipedia, “RS-485” (physical layer: multi-drop bus, 120 ohm termination, distance and speed trade-off)
  • Grundfos, “Modbus” (uses in building management and process automation)
  • MIVO, “Modbus, what it is and how it works” (meters, solar, HVAC, gateways, limitations)

Is Modbus still worth using?

For reading numbers from meters, drives and controllers, yes. It is simple, open and understood by almost every industrial vendor. For anything that needs security, events or rich data, put a gateway in front of it and use a modern protocol upstream. If you remember what is Modbus in one line: a plain, durable way for a client to ask devices for numbers.

IoT Insights Hub will keep publishing practical, sourced guides on IoT protocols and industrial networks. For the business side of building in this space, read The Business Perspective’s guide to raising seed funding.

About The Author