sent by to the master)
command sent by the master )
For instance: Write 5000 (1388H) to the 0004H address whose slave address is 02H,
Communication Protocol
136
ASCII master command message (the
command sent from master
ASCII slave response message (the
message sent from
to the master)
START
‘: ’
START
‘: ’
ADDR
‘0’
ADDR
‘0’
‘1’
‘1’
CMD
‘0’
CMD
‘0’
‘3’
‘3’
High bit of starting
address
‘0’
Byte number
‘0’
‘0’
‘4’
Low bit of starting
address
‘0’
High bit of data address
0004H
‘1’
‘4’
‘3’
High bit of data number
‘0’
Low bit of data address
0004H
‘8’
‘0’
‘8’
Low bit of data number
‘0’
High bit of data address
0005H
‘0’
‘2’
‘0’
LRC CHK Hi
‘F’
Low bit of data address
0005H
‘0’
LRC CHK Lo
‘6’
‘0’
END Hi
CR
LRC CHK Hi
‘5’
END Lo
LF
LRC CHK Lo
‘D’
END Hi
CR
END Lo
LF
9.4.2.2 Command code: 06H (0000 0110), write one word
then the structure of this frame is listed as below:
ASCII master command message (the
ASCII slave response message (the message
START
‘: ’
START
‘: ’
ADDR
‘0’
ADDR
‘0’
‘2’
‘2’
CMD
‘0’
CMD
‘0’
‘6’
‘6’
High bit of write data
‘0’
High bit of write data
‘0’
‘0’
‘0’
Low bit of write data
‘0’
Low bit of write data
‘0’
‘4’
‘4’
High bit of data content
‘1’
High bit of data content
‘1’
‘3’
‘3’
Low bit of data content
‘8’
Low bit of data content
‘8’
‘8’
‘8’
LRC CHK Hi
‘5’
LRC CHK Hi
‘5’