MODBUS PROTOCOL
MODBUS Protocol is a communication structure used to establish master-slave/client-server communication between
intelligent devices connected on different types of buses or networks.
ES
Each device intended to communicate using Modbus is given a unique address. Master devices send a command in a frame
which contains the address of the device or the end-devices (slaves). All devices are sent the frame, but only the recipient
EN
interprets and executes the command. Modbus commands contain checksum information, to allow the recipient to detect
transmission errors.
FR
Note: It is possible to send information to multiple devices simultaneously using a frame called "Broadcast".
Each message includes redundant information that ensures it is properly received. If, after a certain time, the master does not
IT
receive a confirmation it interprets that an error has occurred and terminates communication.
The mode of transmission used is MODBUS-RTU. Each byte of data is represented by two 4-bit characters in hexadecimal format.
PT
The format of the frame is the following:
Start
0
DE
CONFIGURATION OF THE SLAVE ADDRESS FOR THE AIDOO MODBUS CONTROLLER DEVICE
The Aidoo is a Modbus slave device, so it is necessary to indicate its address. Configurate the following parameters from a
master device:
MODBUS FUNCTION CODES
Modbus basic commands allow the control of a device to change the value of its registers (memory slot) or to request the
content of these registers, depending on the codes:
14
1
2
Register
Description
56
Modbus address
57
Config. Baudrate
58
Config. Port parity
Code
03
04
06
16
3
4
5
Modbus slave address (Default)
0 100 bps ; 1 300 bps
2 500 bps ; 3 1200 bps
4 2400 bps ; 5 4800 bps
6 7800 bps ; 7 9600 bps (Default)
8 19200 bps ; 9 57600 bps
10 115200 bps
0 none (Default), 1 Odd, 2 Even
Function:
Read holding registers
Read input registers
Preset/write single holding register
Preset/write multiple holding registers
6
7
Values
Parity
Stop