26.02.2015 Views

User Manual - CNC4PC

User Manual - CNC4PC

User Manual - CNC4PC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7-1-2 RS-232 Communication protocol and format<br />

Baud rate 9600bps (Selection by Cn037.1 )<br />

Parity<br />

No<br />

Data bit 8<br />

Stop bit 1<br />

※ Symbol H in folling sentence is for Hex representation.<br />

(1) Read a word from servo drive Function code format: R5XxSs<br />

Xx : A request to read register “ Xx ” from slave device( Unit :Byte, Hex representation)<br />

Ss : Check Sum Ss =’R’+’5’+’X’+’x’ ( Unit :Byte、Hex representation)<br />

Ex1: Read register address 30H and<br />

( Convert『R530』into ASCII codes )<br />

Check Sum=52H+35H+33H+30H=EA H<br />

R 5 3 0<br />

Obtain Function code for read register address 30H:『R530EA』<br />

Servo drive response : %XxYySs<br />

Ss is Check Sum, Ss=’%’+’X’+’x’+’Y’+’y’<br />

Response message of example 1:<br />

0008H is the data store in register address 30H:<br />

Check Sum=25H+30H+30H+30H+38H=EDH<br />

% 0 0 0 8<br />

Drive response message:『%0008ED』<br />

* When function code incorrect , drive response :『!』(ASCII code: 21H )<br />

7-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!