}
}
return(crc_value);
}
10.7 Example
10.7.1
RTU mode, read 2 data from 0004H
The request command is:
START
Node address
Command
High byte of start address
Low byte of start address
High byte of data number
Low byte of data number
Low byte of CRC
High byte of CRC
END
The reply is :
START
Node address
Command
Returned byte number
Higher byte of 0004H
Low byte of 0004H
T1-T2-T3-T4 (transmission time of 3.5 bytes)
T1-T2-T3-T4 (transmission time of 3.5 bytes)
T1-T2-T3-T4 (transmission time of 3.5 bytes)
118
01H
03H
00H
04H
00H
02H
85H
CAH
01H
03H
04H
00H
00H