MODBUS RTU AIDOO
Note: Available for Aidoo Wi-Fi, Aidoo Pro, Aidoo Z-Wave and Aidoo Zigbee.
The format of the commands for read/write operations is as follows (8 bytes):
Secondary address
1 byte
•
Secondary address. Defines the secondary device to be accessed. Addresses are from 1 to
247, as address 0 is reserved for transmission to all devices (Broadcast).
•
Operation code. Indicates the function that the command will perform.
•
Register address. Indicates the address of the register to be accessed. In commands on
multiple registers, defines the Start Register from which to operate consecutively.
•
Data. Formed by 2 bytes (single operations) or set of 2 bytes (multiple operations) that
contain the command information.
•
CRC. 2 bytes are added to the end of the frame in order to detect errors in transmission or
reception. The Cyclic Redundant Code (CRC) check method is used for this.
The generator polynomial is: CRC-16 = x
Operation code
Register address
1 byte
+ x
+ x
16
15
Data
2 bytes
1...2·N bytes
+ 1.
2
CRC
EN
2 bytes
15