For instance: As for whose slave address is 01H, the starting address of internal storage
whose slave address is
Communication Protocol
135
Low bit of CRC
ADH
High bit of CRC
14H
END
T1-T2-T3-T4 (transmission time of 3.5 bytes)
9.4.1.4 Command code: 10H, continuous writing
Command code 10H means that if the master writes data , the data
number depends on
the "data number" in the command code. The max. continuous reading number is 16.
For example, write 5000(1388H) to 0004H
02H
and 50(0032H)
to 0005H, the frame structure is as below:
The RTU request command is:
START
T1-T2-T3-T4 (transmission time of 3.5 bytes)
ADDR
02H
CMD
10H
High bit of write data
00H
Low bit of write data
04H
High bit of data number
00H
Low bit of data number
02H
Byte number
04H
High bit of data 0004H
13H
Low bit of data 0004H
88H
High bit of data 0005H
00H
Low bit of data 0005H
32H
Low bit of CRC
C5H
High bit of CRC
6EH
END
T1-T2-T3-T4 (transmission time of 3.5 bytes)
The RTU response command is:
START
T1-T2-T3-T4 (transmission time of 3.5 bytes)
ADDR
02H
CMD
10H
High bit of write data
00H
Low bit of write data
04H
High bit of data number
00H
Low bit of data number
02H
Low bit of CRC
C5H
High bit of CRC
6EH
END
T1-T2-T3-T4 (transmission time of 3.5 bytes)
9.4.2 ASCII mode
9.4.2.1 Command code: 03H (0000 0011), read N words (Word) (N
≤
16 words)
is 0004, read two words continuously, the structure of this frame is listed as below: