![Ulvac DC-10-D Скачать руководство пользователя страница 59](http://html2.mh-extra.com/html/ulvac/dc-10-d/dc-10-d_operation-manual_4836559059.webp)
DC Power Supply
【
DC-10-D/DC-20-D/DC-10-DH/DC-20-DH
】
6. SERIAL Communication
-50-
○
Example of transmission/reception of Read command
For a query to the power supply about the maximum electric power of Secondary 1 (DC-20-D) by
Command 0x85 (READ UNIT POWER)
When the Address of the power supply is set to 30:
As an example of transmission and reception, data are transmitted and received between the
HOST side and the power supply side as follows:
①
HOST side:
9E 01 85 01 1B
②
Power supply side:
06 or 15
③
Power supply side:
9E 01 85 C8 D2 (When NAC [15] is received: 81 00 02 83 etc.)
④
HOST side:
06
①
The command is sent from the HOST side as follows:
Five bytes of 9E 01 85 01 1B are sent.
9E: SOF + Address (30)
➡
10011110 is sent.
01: When the command data length is 0x85, 0x01 is sent since the data is 1byte long.
85: Command (READ UNIT POWER: a query about the maximum output electric power)
01: The command data is (only 1byte for 0x85) 0x01.
(Query to secondary 1) is sent.
1B: The checksum is a value calculated with XOR for packets other than the checksum.
②
After receiving the command, the power supply sends ACK (0x06) or NAK (0x15).
③
After sending ACK (0x06) or NAK (0x15), the power supply continuously sends data.
When the command has been correctly received.
Following ACK (0x06), the power supply sends an acknowledgment message.
When a Read command has been sent, the power supply sends the content of the query as an
acknowledgment message.
The acknowledgment message is as follows:
9E 02 85 C8 D2
9E: SOF + Address (30)
➡
10011110 is sent.
01: When the command data length is 0x85, 0x01 is sent since the data is 1byte long.
85: Command (READ UNIT POWER: a query about the maximum output electric power)
C8: For the command data, 0xC8 (200) of one byte is sent as an acknowledgment data.
D2: The checksum is a value calculated with XOR for packets other than the checksum.
When the received command is incorrect
The power supply sends ACK (0x06) and NAK (0x15), and then an acknowledgment message
containing the command status.
In this case, the command status is a value other than 0.
The acknowledgment message is as follows:
9E 00 02 9C
9E: SOF + Address (30)
➡
10011110 is sent.
00: As the command data length is the command status only, 0x00 is sent.
02: As the command status is out of the command setting range, 0x02 is sent.
9C: The checksum is a value calculated with XOR for packets other than the checksum.
④
After receiving an acknowledgment message from the power supply, HOST sends ACK.
After receiving this ACK, the power supply goes into the waiting mode to receive the the next
command.
If no ACK is received, a timeout occurs in 4seconds and it is automatically put into the waiting
mode to receive the next command.