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 />
6.5 Communication Example<br />
The following example explains the communication process in detail.<br />
For the purposes of this example, the amplifier’s address is set to 0.<br />
Parameter WR<br />
Transmission example: Setting the Gain parameter1=5 (comm<strong>and</strong> 21h).<br />
Packet Length Address Comm<strong>and</strong> Code Data Checksum<br />
5 0 21h 5 7Bh<br />
Parameter RD<br />
Example: Reading the Gain parameter1 (comm<strong>and</strong> 21h) using Parameter RD (comm<strong>and</strong> 80h).<br />
Transmitted data:<br />
Packet Length Address Comm<strong>and</strong> Code Data Checksum<br />
5 0 80h 21h F6h<br />
Returned data:<br />
Packet Length Address Response Status Data 1 Data 2 Checksum<br />
6 0 21h 5 <br />
Point Data Save<br />
Transmitted data format:<br />
Packet Length Address Comm<strong>and</strong> code (56h) Point No Direct Comm<strong>and</strong> Code Data Checksum<br />
Example: Storing an incremental move comm<strong>and</strong> (comm<strong>and</strong> 38h) = 4000 (FA0h) to Point No=2.<br />
Packet Length Address Comm<strong>and</strong> Code Point No Comm<strong>and</strong> Data Data Data Data Checksum<br />
9 0 56h 2 38h A0h Fh 0 0 48h<br />
Point data RD<br />
Transmitted data format:<br />
Packet Length Address Comm<strong>and</strong> Code (81h) Point No Checksum<br />
Returned data format:<br />
Packet Length Address Response Status Store Comm<strong>and</strong> Data Checksum<br />
* There is no point number attached to the return data.<br />
Example: Reading the Point data stored at .<br />
Transmitted data format:<br />
Packet Length Address Comm<strong>and</strong> Point No Checksum<br />
5 0 81h 2 88h<br />
Returned data format:<br />
Packet Length Address Response Status Store Comm<strong>and</strong> Data Data Data Data Checksum<br />
9 0 * 38h A0h Fh 0 0 *<br />
6-8