DC Puse Power Supply
【
DC-10-4P
】
8
APPENDIX
90
○
Example of transmitting and receiving Read command
When inquiring the output power with the command "0x92" (output power inquiry) to DC.
Setting of DC Address: Assumed it as "01."
As an example of transmission and reception, the following data transmission and reception are carried out
between the HOST side and the DC side.
(1) HOST side: 81 00 92 13
(2) DC side: 06 (or 15)
(3) DC side: 81 02 92 5D 00 4C (when receiving wrong data:81 00 01 80 etc )
(4) HOST side: 06
(1) A command from the HOST side is transmitted as follows:
Five bytes including 81 00 92 13 are transmitted.
81:
SOF + Address (01) -> 10000001 is transmitted.
00:
Command data length - 0x00 is transmitted as the data of 0x92 is one byte.
92:
Command (maximum electric power inquiry)
13:
Checksum - The value calculated with XOR of the packet other than the checksum.
(2) After receiving the command, the DC transmits ACK (0x06) or NAK (0x15).
(3) The following reply message is transmitted from the DC
When receiving a command correctly.
The DC transmits an ACK and then, a reply message.
When the Read command is transmitted, the DC transmits the details of the inquiry as a reply message.
81 02 92 5D 00 4C
81:
SOF + Address (01), a 10000001 is transmitted.
02:
Command data length - 0x02 is transmitted as the reply data for the inquiry of 0x92 is two bytes.
92:
Command (maximum electric power inquiry)
5D 00: The command "0x92" transmits total two bytes of response data for inquiry (0x005D to 0.93kW)
4C: Checksum The value calculated with XOR of the packet other than the checksum
When the command received is not correct
Following to the ACK or NAK transmission, the DC transmits a reply message.
In this case, the reply message contains only a command status.
For example, the reply message becomes as follows:
81 00 01 80
81:
SOF + Address (01), a 10000001 is transmitted.
00:
Command data length - 0x00 is transmitted as it only contains command status.
02:
Command Status - 0x01 is transmitted.
80:
Checksum - The value calculated with XOR of the packet other than the checksum.
(4) When receiving a reply message from the DC, the HOST side transmits an ACK.
After receiving the ACK, the DC shifts into the command reception waiting mode.
(without ACK, the state becomes time-out after four seconds, and automatically shifts into the command
reception waiting mode).
Содержание DC-10-4P
Страница 103: ......