What is Modbus and How does it Work?

RealPars
3 Dec 201808:58

Summary

TLDRThe video script introduces the Modbus communication protocol, a widely used standard in process automation and SCADA systems. Modbus, developed by Modicon (now part of Schneider Electric) in 1979, facilitates communication between industrial electronic devices. It operates on various physical media, including RS-232, RS-485, and Ethernet, and supports both point-to-point and multidrop networks. The protocol uses a master/slave architecture where the master initiates transactions and slaves respond with requested data. Modbus messages are structured with error checking to ensure data integrity. The video also highlights the importance of understanding Modbus for professionals in the field, emphasizing its role in integrating devices from different manufacturers and its demand in the industry.

Takeaways

  • ๐Ÿ“ˆ **Open Protocols**: Open protocols like Modbus allow for device interoperability, enabling manufacturers to integrate their products easily into the market, providing users with a wide range of device choices.
  • ๐Ÿค **Community Support**: Open protocols are often backed by a diverse group including corporations, user groups, professional societies, and governments, offering robust community support.
  • ๐Ÿš€ **Modbus Protocol**: Modbus is a widely used communication protocol in process automation and SCADA systems, essential for electrical technicians and engineers to understand and implement.
  • ๐Ÿ”Œ **Modbus Versions**: Several versions of Modbus exist, including RTU, ASCII, TCP, and Plus, each designed for different types of communication media and network architectures.
  • ๐Ÿ’ฌ **Communication Architecture**: Modbus operates on a master/slave architecture, with the master device initiating transactions and the slave devices responding with the requested data.
  • ๐ŸŒ **Physical Media**: Modbus can communicate over various physical media such as RS-232, RS-485, RS-422, and Ethernet, with the choice depending on the specific application and distance requirements.
  • ๐Ÿ”„ **RS-485 Advantages**: RS-485 is preferred for Modbus implementations due to its support for longer distances, higher speeds, and the ability to connect multiple devices on a single network.
  • ๐Ÿ“จ **Modbus Messaging**: Modbus messages are sent in plain text over dedicated networks or embedded within Ethernet packets when co-existing with other protocols on TCP/IP networks.
  • ๐Ÿ“ก **Point-to-Point and Multidrop**: Modbus supports both point-to-point and multidrop networks, allowing for flexible communication setups.
  • ๐Ÿ”‘ **Master/Slave Communication**: In Modbus, only the master can initiate transactions, while slaves respond to queries and do not initiate communication unless addressed directly.
  • ๐Ÿ›ก๏ธ **Error Checking**: Modbus includes error checking mechanisms to ensure the integrity of the data being transmitted between devices, with the master verifying the accuracy of the received information.

Q & A

  • What is the significance of using open protocols in device to device communication?

    -Open protocols allow for greater interoperability between devices from different manufacturers. They are published specifications that can be used freely or by license, enabling a wide range of devices or systems to be utilized for specific applications. This provides users with more choices and the ability to stay current and add capabilities in the future.

  • What are the advantages of using open protocols in industrial automation?

    -The advantages include support from multiple manufacturers, software vendors, and install/service organizations, active community groups for support, and the ability to integrate devices from different manufacturers, making professionals more valuable and marketable in the industry.

  • What is the Modbus communication protocol?

    -Modbus is a communication protocol published by Modicon in 1979 for use with its programmable logic controllers (PLCs). It provides a common language for devices and equipment to communicate with one another and is used extensively in process automation and SCADA systems.

  • What types of Modbus communication are commonly used in the industry?

    -The most common types of Modbus communication used in the industry are Modbus RTU, Modbus ASCII, Modbus TCP, and Modbus Plus. These versions cater to different needs and physical media such as serial ports and Ethernet.

  • How does Modbus enable communication between devices?

    -Modbus enables devices to communicate by allowing them to send and receive messages. For example, devices measuring temperature and humidity can communicate their results to a supervisory computer or PLC using Modbus.

  • What is the role of the Modbus Organization?

    -The Modbus Organization is an association of users and suppliers of Modbus-compliant devices. It manages the development and updates of Modbus protocols.

  • What is the architecture of Modbus communication interface?

    -The Modbus communication interface is based on a master/slave architecture. Communication between Modbus nodes is achieved with send request and read response type messages.

  • How does Modbus communication work over different physical media?

    -Modbus communicates over several types of physical media such as serial RS-232, RS-485, RS-422, and over Ethernet. The physical media is selected at the time of purchasing the devices. Modbus messages are sent in plain form over simple interfaces like RS-485 and RS-232, while over Ethernet, they are embedded in Ethernet packets.

  • What is the main message structure of Modbus?

    -The main Modbus message structure is peer-to-peer. It can function on both point-to-point and multidrop networks, using a master/slave technique where only the master can initiate transactions.

  • How does a Modbus master communicate with slaves?

    -A Modbus master communicates with slaves by addressing individual slaves or initiating a broadcast message to all slaves. The master's query consists of a slave address, a function code with a read or write data command, and an error checking field.

  • What happens if a Modbus slave encounters an error or is unable to perform a requested action?

    -If a slave encounters an error or is unable to perform the requested action, it will return an exception message as its response. The error check field in the slave's message frame allows the master to confirm the validity of the message contents.

  • What is the next step for someone interested in learning more about Modbus and PLC programming?

    -For further learning on Modbus and PLC programming, one can visit realpars.com, which offers easy-to-understand formats to enhance career prospects in these fields.

Outlines

00:00

๐Ÿ“ก Introduction to Device Communication and Modbus Protocol

This paragraph introduces the concept of device-to-device communication in the automation industry, emphasizing the use of both proprietary and open protocols. Open protocols, such as Modbus, are highlighted for their benefits, including widespread support and the ability to integrate various devices from different manufacturers. The Modbus protocol, in particular, is discussed as a critical skill for technicians and engineers, given its prevalence in process automation and SCADA systems. The paragraph also provides a brief history of Modbus, its development by Modicon (now part of Schneider Electric), and the different versions of the protocol, including RTU, ASCII, TCP, and Plus. The Modbus Organization's role in managing the protocol is also mentioned.

05:00

๐Ÿ”Œ Modbus Communication: Structure and Function

The second paragraph delves into the technical aspects of Modbus communication, explaining how messages are sent and received over a network. It covers the plain form of Modbus messages over a dedicated network and the embedding of Modbus messages in Ethernet packets for networks with multiple heterogeneous devices. The paragraph outlines the peer-to-peer structure of Modbus messages and their operation on both point-to-point and multidrop networks. The master/slave communication technique is described, with the master initiating transactions and slaves responding with requested data or actions. The message structure, including slave addressing, function codes, data commands, and error checking, is detailed. The response mechanism of slaves and the error handling process are also explained. The paragraph concludes with a teaser for the next video, which will further explore the characteristics of Modbus communication, and a call to action for learning PLC programming.

Mindmap

Keywords

๐Ÿ’กModbus

Modbus is a communication protocol designed for use with programmable logic controllers (PLCs) and other industrial devices. It was developed by Modicon in 1979 and is used to allow electronic devices to communicate over various types of networks. In the context of the video, Modbus is described as essential for any technician or engineer in process automation and SCADA systems. The video discusses various forms of Modbus, including Modbus RTU, ASCII, TCP, and Plus, indicating its versatility and widespread adoption in industry.

๐Ÿ’กOpen protocol

An open protocol refers to a communication standard whose specifications are published and accessible either freely or via license. The video emphasizes that such protocols, including Modbus, allow for broad interoperability among devices from different manufacturers, which benefits users by providing a wider choice of compatible equipment. Open protocols are typically supported by a mix of corporations, professional societies, and user groups.

๐Ÿ’กSCADA

SCADA stands for Supervisory Control and Data Acquisition, a type of software and hardware system that allows industrial organizations to control processes locally or at remote locations, monitor, gather, and process real-time data. The video points out that knowing Modbus is crucial for working in SCADA systems, as it is one of the most commonly used protocols in these applications.

๐Ÿ’กRS-485

RS-485 is a standard defining the electrical characteristics of drivers and receivers for use in serial communications systems. It is mentioned in the video as one of the physical media for Modbus communications, favored for its ability to support long distances, high speeds, and multiple devices on a single network, which is ideal for industrial environments.

๐Ÿ’กMaster/Slave

This refers to a communication model where one device (the master) controls one or more other devices (the slaves). In the context of the video, Modbus utilizes a master/slave architecture to manage communications in a network. Masters can send requests to slaves, which respond back but do not initiate communication, ensuring controlled and orderly data exchange.

๐Ÿ’กEthernet

Ethernet is a family of networking technologies commonly used in local area networks (LAN). The video discusses Modbus TCP, which is a version of the Modbus protocol that operates over Ethernet, allowing Modbus communication to integrate with more complex and capable network infrastructures, supporting a mix of different protocols.

๐Ÿ’กProgrammable Logic Controllers (PLCs)

PLCs are industrial digital computers which have been ruggedized and adapted to control manufacturing processes, such as assembly lines, robotic devices, or any activity that requires high reliability, ease of programming, and process fault diagnosis. Modbus was originally designed for PLCs by Modicon, now part of Schneider Electric, as highlighted in the video.

๐Ÿ’กBroadcast message

In Modbus communication, a broadcast message is a special type of message sent by the master to all slaves simultaneously. Slaves do not respond to broadcast messages, which are typically used for sending commands that initiate identical or concurrent actions in multiple devices. This feature simplifies network management and reduces traffic.

๐Ÿ’กError checking

Error checking in Modbus communication involves verifying the integrity of message data using fields in the message frame. The video mentions that both the master and slave devices perform error checking to confirm that messages are not corrupted or altered during transmission, ensuring reliable and accurate communication between devices.

๐Ÿ’กPeer-to-peer

Though primarily discussed in the context of Modbus' master/slave architecture, the video also mentions that Modbus supports a peer-to-peer message structure, which enables devices to function on a network either as points on a multidrop bus or in a more interconnected network. This flexibility is part of what has made Modbus a lasting standard in industrial automation.

Highlights

Device-to-device process automation communication occurs systematically over different networks and languages.

Open protocols allow manufacturers to integrate their products into the market more easily.

Open protocols are published specifications that can be used freely or by license.

Modbus is the most popular automation protocol in process automation and SCADA.

Modbus enables devices to communicate results to a supervisory computer or PLC.

Modbus was published by Modicon in 1979 for use with its PLCs.

Modbus provides a common language for devices and equipment to communicate.

The Modbus Organization manages the development and updates of Modbus protocols.

Modbus RTU, Modbus ASCII, Modbus TCP, and Modbus Plus are the most common versions.

Modbus operates on a master/slave architecture with send request and read response messages.

Modbus communicates over various physical media, including serial RS-232, RS-485, RS-422, and Ethernet.

Modbus messages are sent in plain form over simple interfaces like RS-485 and RS-232.

Modbus messages can be embedded in Ethernet packets for networks requiring multiple heterogeneous devices.

Modbus devices use a master/slave technique for communication, with only the master initiating transactions.

A slave device processes information and sends its response to the master using Modbus.

Masters can address individual slaves or initiate a broadcast message to all slaves.

Slaves do not initiate messages but respond to message queries from the master.

The master's query includes a slave address, function code, write command data, and an error checking field.

Slaves return an exception message if an error occurs or if they cannot perform the requested action.

The error check field allows the master to confirm the validity of the message contents.

Transcripts

play00:04

In the real world of device to device process automation communication,

play00:08

a dialogue or conversation between devices occurs systematically,

play00:13

in many cases, over different types of communication networks and in different languages.

play00:21

Depending on the process automation equipment manufacturer,

play00:24

a very specific or proprietary language is used

play00:28

or may be a language that is commonly open to the industry.

play00:32

It is these open protocols many manufacturers adapt

play00:36

to easily integrate their products in a market.

play00:40

An โ€œOpen protocolโ€ means the specifications are published

play00:43

and may be used by anyone freely or by license.

play00:48

Open protocols are usually backed by a combination of corporations,

play00:52

user groups, professional societies, and governments.

play00:57

This provides users with a much wider choice of devices or systems

play01:01

that can be utilized to meet specific applications.

play01:05

Advantages of open protocols include support by multiple manufacturers,

play01:10

software vendors, and install/service organizations,

play01:14

active community groups for support,

play01:17

the ability to stay current and add capabilities in the future.

play01:21

One of the most common automation communication protocols

play01:25

of connecting industrial electronic devices used today is Modbus.

play01:31

In this lesson, we will discuss what Modbus communication protocol is

play01:36

and the types of Modbus communication used in the industry.

play01:53

Before we get into todayโ€™s video,

play01:55

if you love our videos,

play01:57

be sure to click the like button below.

play01:59

and, make sure to click subscribe

play02:01

and the bell to receive notifications of new RealPars videos.

play02:06

This way you never miss another one!

play02:10

The Modbus communication protocol is the oldest

play02:14

and by far the most popular automation protocol

play02:17

in the field of process automation and SCADA

play02:20

(Supervisory Control and Data Acquisition).

play02:24

Knowing how to create Modbus based networks

play02:27

is essential for any electrical technician

play02:30

and engineer working in these occupation fields.

play02:34

Being able to integrate devices from different manufacturers

play02:38

is a skill that is in demand

play02:41

and will ultimately make you more valuable and marketable in the industry.

play02:47

Modbus is a communications protocol

play02:49

published by Modicon in 1979

play02:52

for use with its programmable logic controllers (PLCs).

play02:57

Modicon is now owned by Schneider Electric.

play03:01

Modbus provides common language

play03:03

for devices and equipment to communicate with one another.

play03:06

For example, Modbus enables devices on a system

play03:10

that measures temperature and humidity connected on the same network

play03:14

to communicate the results to a supervisory computer or PLC.

play03:19

And the development and update of Modbus protocols

play03:22

have been managed by the Modbus Organization.

play03:26

The Modbus Organization is an association of users and suppliers

play03:30

of Modbus-compliant devices.

play03:33

Several versions of the Modbus protocol exist for the serial port

play03:38

and Ethernet and the most common are Modbus RTU,

play03:42

Modbus ASCII, Modbus TCP and Modbus Plus.

play03:48

Modicon published the Modbus communication interface

play03:51

for a multidrop network based on a master/slave architecture.

play03:56

Communication between the Modbus nodes is achieved

play04:00

with send request and read response type messages.

play04:06

Modbus is an open standard that describes

play04:08

the messaging communication dialog.

play04:11

Modbus communicates over several types of physical media

play04:15

such as serial RS-232, RS-485, RS-422 and over Ethernet.

play04:24

The physical media will be selected at the time when you purchase the devices.

play04:31

The original Modbus interface ran on RS-232 serial communication,

play04:36

but most of the later Modbus implementations use RS-485

play04:41

because it allowed longer distances,

play04:43

higher speeds and the possibility of multiple devices on a single multi-drop network.

play04:50

Master/Slave Modbus communication over serial RS-485 physical media

play04:55

showing two-wire transmit and receive connections.

play05:00

On simple interfaces like RS-485 and RS-232,

play05:05

the Modbus messages are sent in plain form over the network

play05:09

and the network will be dedicated to only Modbus communication.

play05:13

However, if your network requires multiple heterogeneous devices

play05:18

using a more versatile network system like TCP/IP over ethernet,

play05:23

the Modbus messages are embedded in Ethernet packets

play05:26

with the format prescribed for this physical interface.

play05:31

So in this case, Modbus and other types of mixed protocols

play05:34

can co-exist at the same physical interface at the same time.

play05:41

The main Modbus message structure is peer-to-peer.

play05:45

Modbus is able to function on both point to point and multidrop networks.

play05:51

Modbus devices communicate using a master/slave (client-server for Ethernet) technique

play05:58

in which only one device can initiate transactions (called queries).

play06:04

The other devices respond by supplying the requested data to the master,

play06:09

or by taking the action requested in the query.

play06:13

A slave is any peripheral device such as an I/O transducer, valve, network drive,

play06:20

or other measuring types of devices which processes information

play06:24

and sends its response message to the master using Modbus.

play06:31

Masters can address individual slaves

play06:33

or initiate a broadcast message to all slaves.

play06:37

Slaves return a response to all message queries addressed to them individually,

play06:42

but do not respond to broadcast messages.

play06:46

Slaves do not initiate messages on their own

play06:49

and only respond to message queries transmitted from the master.

play06:55

The masterโ€™s query will consist of a slave address (broadcast address),

play07:00

a function code with a read or write data command to the slave,

play07:04

along with the write command data

play07:06

if a write command was initiated by the master,

play07:09

and an error checking field.

play07:12

The error checking is a value the master or slave creates

play07:16

at the beginning of the transmission or response

play07:19

and then checked when the message is received

play07:22

to verify the contents are correct.

play07:25

A slaveโ€™s response consists of fields confirming it received the request,

play07:29

the data to be returned, and an error checking data.

play07:34

If no error occurs, the slaveโ€™s response contains the data as requested.

play07:41

If an error occurs in the message query received by the slave,

play07:45

or if the slave is unable to perform the action requested,

play07:48

the slave will return an exception message as its response.

play07:53

The error check field of the slaveโ€™s message frame

play07:56

allows the master to confirm that the contents of the message are valid.

play08:02

In this video you learned about what Modbus communication protocol is

play08:07

and the types of Modbus communication used in the industry.

play08:11

In the next video, we will discuss the characteristics

play08:14

of how Modbus communication protocol works between devices.

play08:18

Stay tuned!

play08:22

Want to learn PLC programming in an easy to understand format

play08:27

and take your career to the next level?

play08:31

Head on over to realpars.com

Rate This
โ˜…
โ˜…
โ˜…
โ˜…
โ˜…

5.0 / 5 (0 votes)

Related Tags
Modbus ProtocolProcess AutomationDevice CommunicationIndustrial ElectronicsPLC IntegrationModiconSchneider ElectricRS-232RS-485EthernetMaster/SlaveTechnical NetworkingAutomation StandardsModbus RTUModbus TCPEngineering SkillsIndustry ProtocolsTechnical EducationRealPars