29.01.2015 Views

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

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

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4 Explanation of Functions<br />

(iv) Error check code<br />

The Modbus-RTU protocol uses the cyclic redundancy check (CRC) as the error check method.<br />

The CRC code is the 16-bit data generated for a data block that has an arbitrary data length (in units of<br />

8 bits).<br />

A generative polynomial for CRC-16 (X 16 + X 15 + X 2 + 1) is used to generate the CRC code.<br />

Example of CRC-16 calculation<br />

CRC-16<br />

operation<br />

CRC *1<br />

Hi<br />

Lo<br />

CRC *1 = FFFFh<br />

CRC register (2 bytes)<br />

Is the target<br />

data found<br />

No<br />

Yes<br />

Set the XOR of CRC*1 data and<br />

target data in CRC*1<br />

Does any<br />

bit remain after 8-bit<br />

shifting<br />

No<br />

Replace the Hi and Lo bytes<br />

of CRC*1 with each other<br />

Yes<br />

Shift CRC*1 to the left by 1 bit<br />

End<br />

No<br />

Is the<br />

bit put out of<br />

CRC*1 "1"<br />

Yes<br />

Set the XOR of CRC*1 data<br />

and A001h in CRC*1<br />

The target data is shifted by 1 byte.<br />

(v) Header and trailer (silent interval)<br />

The header and trailer set the total time the inverter should wait before sending a response after<br />

having received a query from the master system.<br />

Be sure to specify the time corresponding to the transmission of 3.5 characters (24 bits) as the waiting<br />

time. If a shorter waiting time (corresponding to the transmission of fewer than 3.5 characters) is<br />

specified, the inverter will not respond.<br />

The actual waiting time is the sum of the silent interval (corresponding to the transmission of 3.5<br />

characters) and the communication wait time (C078).<br />

4 - 132

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

Saved successfully!

Ooh no, something went wrong!