![Azbil F4Q Скачать руководство пользователя страница 42](http://html1.mh-extra.com/html/azbil/f4q/f4q_user-manual_3042611042.webp)
5-8
Chapter 5. Modbus Communication (RTU Mode)
Function 06 (one data write command)
Function 06 is the command for writing one data record.
The command and the normal response have the same format.
Note
•
Error termination code (p. 5-4)
(for details of error response)
z
Send command format
Frame structure
Number
of bytes
Description
Address
1
Device address
Function
1
6 (0x06)
Data
Data address
2
Data address (upper byte
→
lower byte)
Data
2
Data to write (upper byte
→
lower byte)
CRC check
2
Check code (lower byte
→
upper byte)
z
Normal response format
The format is the same as the send command.
Examples:
Sent message: Write “1” (0x0001) to data address 2001 (0x07D1)
Device address
Function code
Data address
Data
CRC
01H
06H
07H
D1H
00H
01H
D5H
47H
Normal response:
Device address
Function code
Data size
Data
CRC
01H
06H
07H
D1H
00H
01H
D5H
47H
Error response:
Device address
Function code
Error termination
code
CRC
01H
86H
02H
51H
32H
The function code when an error occurs (here, 86H) is obtained by flipping the
most significant bit of the function code (0x06) to 1.
Содержание 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: ......