09.09.2014 Views

Download PDF - MachMotion.com

Download PDF - MachMotion.com

Download PDF - MachMotion.com

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.

(2) Read consecutive 2 words from drive Function code format: L5NnSs<br />

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

Ss : Check Sum、Ss =’L’+’5’+’N’+’n’ ( Unit : Byte, Hex representation)<br />

Ex2: Read data from register address 60H and<br />

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

Check Sum=4CH+35H+36H+30H=E7<br />

L 5 6 0<br />

Obtain Function code for read register address 60H:『L560E7』<br />

Servo drive response: %XxYyAaBbSs<br />

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

XxYy is the data store in register address Nn+1,<br />

AaBb is the data store in register address Nn<br />

Response message of example 2:<br />

0001 000AH is the data store in register 60H<br />

Check Sum=25H+30H+30H+30H+31H+30H+30H +30H+41H=1B7H<br />

% 0 0 0 1 0 0 0 A<br />

Drive response message:『%0001000AB7』<br />

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

7-3

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

Saved successfully!

Ooh no, something went wrong!