EasyManua.ls Logo

TECO JSDAP Series - Page 214

TECO JSDAP Series
255 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7-6
(3) Write a word to drive Function code format: W5XxYyZzSs
Xx : Address for write data ( Unit :Byte、Hex representation)
YyZz : Writes the data contents ( Unit :word, Hex representation)
Ss : Check Sum,Ss =’W’+’5’+’X’+’x’+’Y’+’y’+’Z’+’z’ ( Unit :Byte, Hex representation)
Ex3:Write data 0008H to register 30H
( Convert『W5300008』into ASCII codes )
Check Sum=57H+35H+33H+30H+30H+30H+30H+38H=1B7H
W 5 3 0 0 0 0 8
Obtain Function code for write data 0008H to register 30H : 『W5300008B7』
Drive response message :『%』(ASCII code :25H)
* When function code incorrect , drive response :『!』(ASCII code: 21H )
(4) Write consecutive 2 words to drive Function code format: M5NnXxYyAaBbSs
Nn : Address for write data( Unit :Byte、Hex representation)
XxYy : Writes the data contents of address Nn+1 ( Unit :Word、Hex representation)
AaBb : Writes the data contents of address Nn ( Unit :Word、Hex representation)
Ss : Check Sum , Ss =’M’+’5’+’N’+’n’+’X’+’x’+’Y’+’y’+’A’+’a’+’B’+’b’ ( Unit :Byte、Hex representation)
Ex4: Write data 0002 000BH to register 60H
( Convert『M5600002000B』into ASCII codes )
Check Sum=4DH+35H+36H+30H+30H+30H+30H+32H+30H+30H+30H+42H =27CH
M 5 6 0 0 0 0 2 0 0 0 B
Obtain Function code for write data 0002000BH to register 60H:『M5600002000B7C』
Drive response message:『%』(ASCII code :25H )
* When function code incorrect , drive response :『!』(ASCII code: 21H )

Table of Contents