SJ700-2 Instruction Manual NT204DX - Hitachi America, Ltd.

SJ700-2 Instruction Manual NT204DX - Hitachi America, Ltd. SJ700-2 Instruction Manual NT204DX - Hitachi America, Ltd.

hitachi.america.us
from hitachi.america.us More from this publisher
29.01.2015 Views

Chapter 4 Explanation of Functions (2) Positive and negative responses (i) Positive response - Response frame Frame format STX Station No. ACK BCC CR Description Data size Setting STX Control code (Start of TeXt) 1 byte STX (0x02) Station No. Station number of control-target inverter 2 bytes 01 to 32 ACK Control code (acknowledgement) 1 byte ACK (0x06) BCC Block check code 2 bytes XOR of the items from "Station No." to "ACK." See Item (3) of this section. CR Control code (Carriage Return) 1 byte CR (0x0D) (ii) Negative response - Response frame Frame format STX Station No. NAK Error code BCC CR Description Data size Setting STX Control code (Start of TeXt) 1 byte STX (0x02) Station No. Station number of control-target inverter 2 bytes 01 to 32 NAK Control code (negative acknowledgement) 1 byte NAK (0x15) Error code Content of communication error 2 bytes See Note 13. BCC Block check code 2 bytes XOR of the items from "Station No." to "Error code." See Item (3) of this section. CR Control code (Carriage Return) 1 byte CR (0x0D) Note 15: Error codes Error code Description 01H Parity error 02H Sum check error 03H Framing error 04H Overrun 05H Protocol error 06H ASCII code error 07H Receiving-buffer overflow 08H Reception timeout - - - - 11H Command error 12H - 13H Execution disabled 14H - 15H - 16H Parameter error 17H - If a command is broadcasted to all inverter stations, no response will be returned to the external control system. 4 - 128

Chapter 4 Explanation of Functions (3) How to calculate the block check code (BCC) (Example) When using the 01 command (frequency-setting command) to set the inverter output frequency to 5 Hz (the station No. of the inverter is 01): Transmission frame configuration Station No. Command Data ASCII code The contents of "Station No." to "Data" are converted into ASCII data, and the ASCII data is XORed bit by bit. The final XOR result is set as the block check code (BCC). In the above example of transmission frame, BCC is calculated as follows: (Reference) ASCII code conversion table Character data ASCII code Character data ASCII code STX 2 A 41 ACK 6 B 42 CR 0D C 43 NAK 15 D 44 0 30 E 45 1 31 F 46 2 32 H 48 3 33 P 50 4 34 b 62 5 35 6 36 7 37 8 38 9 39 05 (This result is used as BCC.) 4 - 129

Chapter 4 Explanation of Functions<br />

(2) Positive and negative responses<br />

(i) Positive response<br />

- Response frame<br />

Frame format<br />

STX Station No. ACK BCC CR<br />

Description Data size Setting<br />

STX Control code (Start of TeXt) 1 byte STX (0x02)<br />

Station No.<br />

Station number of control-target<br />

inverter<br />

2 bytes 01 to 32<br />

ACK Control code (acknowledgement) 1 byte ACK (0x06)<br />

BCC Block check code 2 bytes<br />

XOR of the items from "Station No." to "ACK."<br />

See Item (3) of this section.<br />

CR Control code (Carriage Return) 1 byte CR (0x0D)<br />

(ii) Negative response<br />

- Response frame<br />

Frame format<br />

STX Station No. NAK Error code BCC CR<br />

Description Data size Setting<br />

STX Control code (Start of TeXt) 1 byte STX (0x02)<br />

Station No.<br />

Station number of control-target<br />

inverter<br />

2 bytes 01 to 32<br />

NAK<br />

Control code (negative<br />

acknowledgement)<br />

1 byte NAK (0x15)<br />

Error code Content of communication error 2 bytes See Note 13.<br />

BCC Block check code 2 bytes<br />

XOR of the items from "Station No." to "Error<br />

code." See Item (3) of this section.<br />

CR Control code (Carriage Return) 1 byte CR (0x0D)<br />

Note 15: Error codes<br />

Error code<br />

Description<br />

01H Parity error<br />

02H Sum check error<br />

03H Framing error<br />

04H Overrun<br />

05H Protocol error<br />

06H ASCII code error<br />

07H Receiving-buffer overflow<br />

08H Reception timeout<br />

- -<br />

- -<br />

11H Command error<br />

12H -<br />

13H Execution disabled<br />

14H -<br />

15H -<br />

16H Parameter error<br />

17H -<br />

If a command is broadcasted to all inverter stations, no response will be returned to the external control<br />

system.<br />

4 - 128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!