5. Commands and Functions - Sanyo Denki America, Inc.
5. Commands and Functions - Sanyo Denki America, Inc.
5. Commands and Functions - Sanyo Denki America, Inc.
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
6. Communication specifications<br />
<br />
Program Data Save<br />
Transmitted data format:<br />
Packet Length Address 57h Program No. Line Number (2 bytes) Comm<strong>and</strong> Code Data Checksum<br />
Example: This program is PRG number 0, which performs a zero-return <strong>and</strong> a 200ms Timer Wait, <strong>and</strong> then<br />
executes an incremental move.<br />
Line Comm<strong>and</strong> Code<br />
0 Zero-return (each direction push origin, velocity 75min -1 , grid shift=200, counter=0) 45h<br />
1 Zero-return complete wait (false, this line waits to complete) 67h<br />
2 Timer Wait (200ms) 61h<br />
3 Absolute travel distance (velocity: 1000min -1 , accel. / decel. rate: 100min -1 /ms, absolute position=4000) 44h<br />
4 PRG exit 52h<br />
<br />
Packet ADR Comm<strong>and</strong> PRG No. Line (lower) Line (higher) Comm<strong>and</strong> Data (n bytes) Sum<br />
12h 0 57h 0 0 0 45h 13h,4B,4B,C8,0,0,0,0,0,0<br />
Bh 0 57h 0 1 0 67h 0,1,0<br />
Ah 0 57h 0 2 0 61h C8h,0<br />
13h 0 57h 0 3 0 44h E8h,3,64h,64h,A0h,Fh,0,0,0,0,0<br />
8 0 57h 0 4 0 52h -<br />
Program data RD<br />
Transmitted data format:<br />
Packet Length Address 82h Program No. Line Number (2 bytes) Checksum<br />
Returned data format:<br />
Packet Length Address Response Status Comm<strong>and</strong> Code Data (n bytes) Checksum<br />
* There is no program number or line number attached to the return data.<br />
Parameter CLR<br />
Transmitted data format:<br />
Packet Length Address 02h Checksum<br />
Parameter Save<br />
Transmitted data format:<br />
Packet Length Address 03h Checksum<br />
Parameter Load<br />
Transmitted data format:<br />
Packet Length Address 04h Checksum<br />
6-9