182
if ( wkg & 0x0001 ) {
wkg = ( wkg >> 1 ) ^ 0xa001;
}
else {
wkg = wkg >> 1;
}
}
}
return( wkg );
}
11.5.8 Response Message
Perform a CRC calculation on the response message according to the above description. The
result of the calculation should match the CRC checksum of the response message.
11.6 Example of Reading / Responding Data
The following are examples of command and response data.
Example: For the drive address 01H, To read 2 consecutive register data for the drive address
01H, the message is “starting address 2422H.
RTU Scheme:
Number of data
(count by byte)
Number of data
(count by world)
Content of data
address 2422H
Content of data
address 2423H
Function code 06H: Write one piece of data to register
Example: For the drive address 01H, 1(01H) will written to the drive internal parameter 0100H
(b1-00).