7-5
7-1-2 RS-232 Communication Protocol and Format
Baud rate
9600bps (Selection by Cn037.1 )
Parity No
Data bit 8
Stop bit 1
※ Symbol H in folling sentence is for Hex representation.
(1) Read a word from servo drive Function code format: R5XxSs
Xx : A request to read register “ Xx ” from slave device( Unit :Byte, Hex representation)
Ss : Check Sum Ss =’R’+’5’+’X’+’x’ ( Unit :Byte, Hex representation)
Ex1: Read register address 30H and
( Convert『R530』into ASCII codes )
Check Sum=52H+35H+33H+30H=EA H
R 5 3 0
Obtain Function code for read register address 30H:『R530EA』
Servo drive response : %XxYySs
Ss is Check Sum, Ss=’%’+’X’+’x’+’Y’+’y’
Response message of example 1:
0008H is the data store in register address 30H:
Check Sum=25H+30H+30H+30H+38H=EDH
% 0 0 0 8
Drive response message:『%0008ED』
* When function code incorrect , drive response :『!』(ASCII code: 21H )
(2) Read consecutive 2 words from drive Function code format: L5NnSs
Nn : A request to read register “ Nn ” from slave device ( Unit :Byte, Hex representation)
Ss : Check Sum、Ss =’L’+’5’+’N’+’n’ ( Unit : Byte, Hex representation)
Ex2: Read data from register address 60H and
( Convert『L560』into ASCII codes )
Check Sum=4CH+35H+36H+30H=E7
L 5 6 0
Obtain Function code for read register address 60H:『L560E7』
Servo drive response: %XxYyAaBbSs
Ss is Check Sum,Ss=’%’+’X’+’x’+’Y’+’y’ +’A’+’a’+’B’+’b’
XxYy is the data store in register address Nn+1,
AaBb is the data store in register address Nn
Response message of example 2:
0001 000AH is the data store in register 60H
Check Sum=25H+30H+30H+30H+31H+30H+30H +30H+41H=1B7H
% 0 0 0 1 0 0 0 A
Drive response message:『%0001000AB7』
* When function code incorrect , drive response :『!』(ASCII code: 21H )