Modbus Basics

Chapter 5: Modbus Help

Modbus ASCII/RTU Basics

The Modbus protocol emerged in the mid-1970s as an early protocol for linking terminals with Modicon PLCs using a master/slave (sometimes called a master/client) relationship. A simple, open, message-based protocol, it caught on quickly and became a defacto standard in the industry. It supports asynchronous point-to-point and multidrop communications and can be used with a variety of serial interfaces (RS-232, RS-422, RS- 485, modems, etc).

The original Modbus specification included two possible transmission modes: ASCII and RTU. Modbus RTU mode is the most common implementation, using binary coding and CRC error-checking. Modbus ASCII messages, though somewhat more readable because they use ASCII characters, is less efficient and uses less effective LRC error checking. ASCII mode uses ASCII characters to begin and end messages whereas RTU uses time gaps (3.5 character times) of silence for framing. The two modes are incompatible so a device configured for ASCII mode cannot communicate with one using RTU.

All Modbus communications are initiated by Modbus masters using a polling query/response format. The master can send broadcast messages (using a slave address of 0), which all slaves accept, but do not reply to. More commonly the master polls individual slaves sequentially. In each poll it sends a message containing a device address, followed by a function code, any data that maybe required, and an error check field. The addressed slave responds with a similar message structure. Typically it repeats back its address and the function code, and then sends a field indicating the number of bytes of data it is sending, followed by the data and the error check field.

Slave addresses can range from 1 to 247. Function codes include several common ones typically used in all applications, and additional ones that may be implemented in specific cases. Common function codes include: Read Coil Status (01), Read Input Status (02), Read Holding Registers (03) and Read Input Registers (04).

When a master sends a message to a slave it expects to receive a valid response within certain length of time. If the slave does not receive the message, or if the slave receives the message but an error is detected, it does not respond. If the slave cannot respond appropriately for some other reason (e.g. it does not recognize the function code), it will return a message containing an exception response.

Manual Documentation Number: Zlinx485m-1808 www.bb-elec.comwww.bb-europe.com

Page 38
Image 38
B&B Electronics Zlinx 485 manual Modbus Help, Modbus ASCII/RTU Basics

Zlinx 485 specifications

B&B Electronics Zlinx 485 is a reliable and efficient wireless serial communication solution designed for industrial applications. This device facilitates robust data transmission over long distances, making it an ideal choice for environments where conventional wired connections may be impractical or cost-prohibitive.

One of the main features of Zlinx 485 is its ability to operate over a wide distance, reaching up to 1 mile (1.6 km) in line-of-sight scenarios. This capability significantly enhances connectivity options for remote devices and sensors, which is particularly valuable in diverse industrial setups.

The Zlinx module is built on the 802.15.4 protocol and operates in the 900 MHz frequency band, which is known for its excellent propagation characteristics and minimal interference from other wireless devices. This technology ensures reliable communication even in challenging environments, making it suitable for applications in factories, warehouses, and outdoor settings.

Another crucial characteristic of the Zlinx 485 is its versatility. The device supports both point-to-point and point-to-multipoint configurations, allowing for flexible network designs that can accommodate a variety of communication needs. This adaptability simplifies integration into existing systems while offering the scalability necessary for future expansions.

Security is a priority, and the Zlinx 485 offers various encryption options to safeguard data transmissions. With features like frequency hopping and error detection, users can be assured of secure and reliable communication, thereby maintaining data integrity across the network.

In terms of ease of use, the Zlinx 485 is designed with user-friendly interfaces that allow for straightforward installation and configuration. The modules can be easily configured using software tools provided by B&B Electronics, enabling users to set up communication parameters quickly without extensive technical expertise.

Additionally, the Zlinx 485 is robustly constructed to withstand harsh industrial environments. Its durable design and resistance to extreme temperatures make it a dependable choice for applications in demanding settings, ensuring longevity and consistent performance over time.

Overall, the B&B Electronics Zlinx 485 stands out as a powerful wireless solution that combines long-range communication, robust security features, versatility, and ease of use, making it an excellent choice for a variety of industrial applications. Its commitment to reliability and performance positions it as a leader in wireless serial communication technology.