You may have heard of Modbus (a widely used communications protocol), but do you know why it is often used with Campbell Scientific dataloggers? Do you know how to use Modbus for communication between your dataloggers and other Modbus-capable devices? Modbus is just one of the communications protocols that you can use with your Campbell Scientific dataloggers. In this article, we’ll introduce the Modbus protocol and briefly explain how you can use it in your network.
Modbus is likely the most widely used open-standards communications protocol in the area of industrial supervisory control and data acquisition (SCADA) systems. For example, SCADA systems often use Modbus to connect remote terminal units (RTUs) with a supervisory computer to relay measurement data, device status, control commands, and configuration information.
Over the last 35 years, because of its popularity and the ease with which Modbus can be implemented, the protocol has been used by many devices and adapted to many communication link types. You will find many devices, including those offered by Campbell Scientific, which support or facilitate Modbus communication over wired or wireless connections. Not only can intelligent devices such as microcontrollers and programmable logic controllers (PLCs) communicate with Modbus, but many intelligent sensors have a Modbus interface that enables them to send their data to host systems.
The popularity of Modbus has grown because its messaging structure is independent of the type of physical interface or connection that is used. Modbus can coexist with other types of connections at the same physical interface at the same time. You can operate the protocol over several data links and physical layers.
In a standard Modbus network, there is a master-slave relationship between the devices. A single Modbus master device initiates requests for information, sending the requests to one or more Modbus slave devices on the same network. Only the Modbus master can initiate communication. Modbus slaves, in turn, only communicate when responding to the requests from the Modbus master. While the Modbus master does not have a Modbus address, each Modbus slave on a shared network has a unique address from 1 to 247. (A maximum of 247 slave devices can be connected to the same Modbus network.) For these reasons, Modbus is very good at providing you with a polled and contention-less network.
We have incorporated the Modbus protocol in the operating systems for the majority of our dataloggers. Campbell Scientific dataloggers can function as Modbus masters and Modbus slaves–or even both at the same time! This proves particularly helpful when your datalogger needs to use Modbus to query data (as a master) from localized sensors or other data sources, and then serve that data up to another Modbus master on a wider area network.
Many of our customers leverage Modbus communication to provide environmental data to SCADA systems, grid operators, and utilities.
This capability enables you to acquire and transfer data from sensors or other devices that are compatible with Modbus.
You can use the Modbus protocol with Campbell Scientific dataloggers for a variety of purposes. Some practical examples include the following:
We hope this brief introductory article has helped you better understand what the Modbus protocol is, how it works, and how you can leverage it with your Campbell Scientific dataloggers. Future blog articles will offer more details on the communications protocols that you can use with your Campbell Scientific dataloggers.
Do you have Modbus comments or questions? Feel free to share them.