DC Puse Power Supply
【
DC-10-4P
】
8
APPENDIX
89
An example of data transmission and reception is shown below
○
Example of transmitting and receiving Write command
For transmitting 10kW in command 0x12 (LEVEL signal setup) to the DC
The Address settings of DC: for 25.
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
02
12
E8
03
7
A
(2) DC side: 06 (or 15)
(3) DC side: 81
00
00
81
(when receiving wrong data:81 00 02 83 etc )
(4) HOST side: 06
(1) A command from the HOST side is transmitted as follows:
Six bytes including 81
02
12
E8
03
7A are transmitted.
81 :
SOF + Address (25), a 10011001 is transmitted.
02 : Command data length - 0x02 is transmitted as the data of 0x12 is two bytes.
12 : Command (LEVEL signal setup)
E3 08: Data of command (two bytes of 0X12)
7A : 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) After transmitting the ACK and NAK, the DC continuously transmits a reply message.
When receiving a command correctly.
Following to the ACK transmission (0x06), the DC transmits a reply message.
When the Write command is transmitted, the DC transmits only the command status as a reply
message.
The reply message is as follows:
81
00
00
81
81:
SOF + Address (01) -> 10000001 is transmitted.
00:
Command data length - 0x00 is transmitted as it only contains command status
00:
Command status - 0x00 is transmitted as the command can be received normally
99 : Checksum - The value calculated with XOR of the packet other than the checksum
When the command received is not correct
For example, when transmitting the value exceeding 10kW in the command 0x12 (LEVEL signal setup)
for 10kW system.
Following to the ACK or NAK transmission, the DC transmits a reply message.
In this case, the command status becomes the value other than "0."
For example, the reply message becomes as follows:
81
00
02
83
81:
SOF + Address (25), a 10011001 is transmitted.
00:
Command data length - 0x00 is transmitted as it only contains command status.
02:
Command status - 0x02 is transmitted if it is out of the range within which command can be
specified.
83:
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).
Summary of Contents for DC-10-4P
Page 103: ......