![Azbil F4Q Скачать руководство пользователя страница 38](http://html1.mh-extra.com/html/azbil/f4q/f4q_user-manual_3042611038.webp)
5-4
Chapter 5. Modbus Communication (RTU Mode)
z
Example of CRC calculation
Device address is 1, function code is 03, start data address is 2001 (0x07D1), and
the number of data records to read is 1.
Address
01
Function
03
Data address (upper byte)
07
Data address (lower byte)
D1
Number of data records to read
(upper byte)
00
Number of data records to read
(lower byte)
01
CRC: 1st byte
D5
CRC: 2nd byte
47
The part of the message from the device address to immediately before the check
code (01 03 07 D1 00 01) is used for the calculation. In this case, the result of
calculation is 47D5.
For the calculation, see the CRC check code calculation method described above.
When the calculation result “47D5” is entered into the message, the order is
changed so that the lower byte precedes the upper byte: D547.
Error termination code
If an error occurs, an error response according to the Modbus protocol is returned.
The error response is the same for all function codes.
Error response format
Frame structure
Number of bytes
Description
Start
0
Silent interval
Address
1
Device address
Function
1
Function code + 0x80
Exception code
1
Error termination code
CRC check
2
Check code (lower byte
→
upper byte)
End
0
Silent interval
Содержание F4Q
Страница 10: ......
Страница 14: ......
Страница 46: ......
Страница 66: ...7 2 Chapter 7 Device Operation by Communication Commands...
Страница 68: ......
Страница 70: ......
Страница 71: ...Revision History CP SP 1458E Printed Edn New Page No Description June 2021 1...
Страница 72: ......
Страница 73: ......