Host Port Command Sequence Examples; Example 1: Setting The Timeout Value - Advanced Energy Pinnacle 20 kW Manual

Table of Contents

Advertisement

Host Port Command Sequence Examples

The following two examples illustrate how you may communicate with the Pinnacle unit using
the AE Bus command protocol.

EXAMPLE 1: SETTING THE TIMEOUT VALUE

This example shows how to use command 40 to set the Host port timeout value to 4.32
seconds. The example assumes that the Pinnacle unit address is 16.
For command 40, the upload packet sent from the PC host to the Pinnacle unit requires the
following information:
• Address of Pinnacle unit
• Number of data bytes in the upload packet
• Data bytes
• Checksum
The first byte of the upload packet contains the unit address and the number of data bytes. The
first five bits contain the address (16 = binary 10000). The last three bits contain the number of
data bytes required for command 40, which is two (2 = binary 010). The whole byte has a hex
value of 82h (binary 10000010).
The second byte of the packet contains the command number.
The third and fourth bytes of the packet are the data bytes, which contain the value for the
command. In this case, the value is in seconds, with two decimal places implied. Since you
want a value of 4.32 seconds, the data bytes should contain a value of 432. Data bytes are sent
least significant byte first, most significant byte last. The value of 432 has a hex value of
01B0h.
The upload packet from the PC host to the Pinnacle unit:
• Byte 1 = 82h – address and # of data bytes
• Byte 2 = 28h – command 40
• Byte 3 = B0h – least significant
• Byte 4 = 01h – most significant
• Byte 5 = 1Bh – checksum
The Pinnacle unit responds to the request by sending a download packet that contains an
acknowledgement, the address and number of data bytes, the command, a command status
response (CSR) code, and a checksum.
The reply packet from the Pinnacle unit to the PC host:
• Byte 1 = 06h – (ACK)
• Byte 2 = 81h – address 16, and 1 data byte (bianary 10000001)
• Byte 3 = B0h – command
• Byte 4 = 00h – CSR code
5702199-A
Page 121 of 182
I/O Communication and Control
Pinnacle™ 20 kW
4-87

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents