Command code: 06H, write 1 word
For example, writing 6000(1770H) to address 0100H of AMD with address 01H.
ASCII mode:
RTU mode:
This is an example of using function code 16 for writing to multiple registers.
Chapter 5: GS1 MODBUS Communications
GS1 Series AC Drive User Manual
5–20
Command Message
ADR 01H
CMD 10H
Starting data
address
20H
00H
Number of data
(Count by byte)
04H
Content of data
address 2000H
00H
02H
Content of data
address 2001H
02H
58H
CRC CHK Low
CRC CHK High
CBH
34H
Response Message
ADR 01H
CMD 10H
Starting data
address
20H
00H
Number of data
(Count by word)
00H
02H
CRC CHK Low
CRC CHK High
4AH
08H
Response Message
STX ':' ':'
ADR 1
ADR 0
'0'
'1'
CMD 1
CMD 0
'0'
'6'
Data Address
'0'
'1'
'0'
'0'
Data Content
'1'
'7'
'7'
'0'
LRC CHK 1
LRC CHK 0
'7'
'1'
END 1
END 0
CR
LF
Command Message
STX ':'
ADR 1
ADR 0
'0'
'1'
CMD 1
CMD 0
'0'
'6'
Data Address
'0'
'1'
'0'
'0'
'1'
'7'
'7'
'0'
LRC CHK 1
LRC CHK 0
'7'
'1'
END 1
END 0
CR
LF