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 )
Содержание JSDAP Series
Страница 1: ......
Страница 17: ...1 11 1 2 Surface and Panel Board JSDAP 10A 15A 20A 30A JSDAP 50A3 75A3 100A3 25B 35B 50B ...
Страница 21: ...1 15 1 4 2 Direction and Distance ...
Страница 25: ...2 2 400V Class ...
Страница 98: ...5 12 PA PB PZ 90 PA PB PZ 90 TIME A leads B CW CCW B leads A TIME ...
Страница 236: ...9 5 Dimensions for JSDAP 150A3 75B 100B Dimensions for JSDAP 200A3 300A3 ...
Страница 249: ...A 1 Appendix A Accessories ...
Страница 250: ...A 2 ...
Страница 251: ...A 3 ...
Страница 255: ......