You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
(3) Write a word to drive Function code format: W5XxYyZzSs<br />
Xx : Address for write data ( Unit :Byte、Hex representation)<br />
YyZz : Writes the data contents ( Unit :word, Hex representation)<br />
Ss : Check Sum,Ss =’W’+’5’+’X’+’x’+’Y’+’y’+’Z’+’z’ ( Unit :Byte, Hex representation)<br />
Ex3:Write data 0008H to register 30H<br />
( Convert『W5300008』into ASCII codes )<br />
Check Sum=57H+35H+33H+30H+30H+30H+30H+38H=1B7H<br />
W 5 3 0 0 0 0 8<br />
Obtain Function code for write data 0008H to register 30H : 『W5300008B7』<br />
Drive response message :『%』(ASCII code :25H)<br />
* When function code incorrect , drive response :『!』(ASCII code: 21H )<br />
(4) Write consecutive 2 words to drive Function code format: M5NnXxYyAaBbSs<br />
Nn : Address for write data( Unit :Byte、Hex representation)<br />
XxYy : Writes the data contents of address Nn+1 ( Unit :Word、Hex representation)<br />
AaBb : Writes the data contents of address Nn ( Unit :Word、Hex representation)<br />
Ss : Check Sum , Ss =’M’+’5’+’N’+’n’+’X’+’x’+’Y’+’y’+’A’+’a’+’B’+’b’ ( Unit :Byte、Hex representation)<br />
Ex4: Write data 0002 000BH to register 60H<br />
( Convert『M5600002000B』into ASCII codes )<br />
Check Sum=4DH+35H+36H+30H+30H+30H+30H+32H+30H+30H+30H+42H =27CH<br />
M 5 6 0 0 0 0 2 0 0 0 B<br />
Obtain Function code for write data 0002000BH to register 60H:『M5600002000B7C』<br />
Drive response message:『%』(ASCII code :25H )<br />
* When function code incorrect , drive response :『!』(ASCII code: 21H )<br />
7-4