7-
4
(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 )
Summary of Contents for TSTA Series
Page 1: ......
Page 12: ...1 6 1 4 2 Direction and Distance Fan Fan ...
Page 15: ......
Page 45: ......
Page 59: ......
Page 69: ......
Page 175: ......
Page 206: ...9 4 Dimension for TSTA 15 and TSTA 20 ...
Page 207: ...9 5 Dimension for TSTA 30 ...
Page 208: ...9 6 Dimension for TSTA 50 and TSTA 75 ...
Page 211: ...DIMENSION TSB 07 08 SERIES 9 9 ...
Page 214: ......
Page 215: ......
Page 218: ......