Hitachi SJ700-2 Slave address Function code Exception code CRC-16 code, Exception codes

Models: SJ700-2

1 274
Download 274 pages 15.86 Kb
Page 195
Image 195

Chapter 4 Explanation of Functions

(vii) Writing data to multiple registers [10h]

This function writes data to sequential registers. (Example)

When setting "3,000 Hz" as the Acceleration (1) time (F002) in the inverter at slave address "1":

Since register "1103h" and "1104h" to store the Acceleration (1) time (F002) have a data resolution of 0.01 seconds, specify "300000" (493E0h) as the updating data to set "3,000 seconds".

Query

 

Response

 

 

Field name

Sample setting

 

 

Field name

Sample setting

 

 

(hexadecimal)

1

 

 

(hexadecimal)

1

Slave address (*1)

01

 

Slave address (*1)

01

2

Function code

10

2

 

Function code

10

3

Starting register address

11

3

 

Starting register address (upper

11

 

(upper digit) (*2)

 

4

 

digit) (*2)

 

4

Starting register address

02

 

Starting register address (lower

02

 

(lower digit) (*2)

 

5

 

digit) (*2)

 

5

Number of registers (upper

00

 

Number of registers (upper

00

 

digit)

 

6

 

digit)

 

6

Number of registers (lower

02

 

Number of registers (lower digit)

02

digit)

 

7

 

CRC-16 code (upper digit)

E5

 

 

 

7

Number of data bytes (*3)

04

8

 

CRC-16 code (lower digit)

34

8

Updating data 1 (upper digit)

00

 

 

 

 

9

Updating data 1 (lower digit)

04

 

 

 

 

10

Updating data 2(upper digit)

93

 

 

 

 

11

Updating data 2(lower digit)

E0

 

 

 

 

12

CRC-16 code (upper digit)

9E

 

 

 

 

13

CRC-16 code (lower digit)

9F

 

 

 

 

*1

If this query is broadcasted, no inverter will return any response.

 

*2

Note that the starting register address is 1 less than the actual

 

*3

address of the register to which the data is to be written first.

 

 

As the number of bytes, do not specify the number of registers but

 

 

the number of bytes to be actually updated.

 

 

 

 

If the function to write data to multiple registers cannot be executed normally, the inverter will return an exception response. For details, see Item (viii), "Exception response."

(viii) Exception response

The master system requests the inverter (slave) to return a response upon reception of a query other than broadcasted queries. The inverter must return the response that matches the query it has received. However, if an error is found in a query, the inverter will return an exception response.

The exception response consists of the following fields:

Field configuration

Slave address

Function code

Exception code

CRC-16 code

Details of the field configuration are described below. The exception response in reply to a query includes a function code that is the sum of "80h" and the function code specified by the query. The exception code in the exception response indicates the content of the error.

Function codes

Exception codes

 

Query

Exception response

 

Code

Description

 

01h

81h

 

01h

An unsupported function is specified.

 

03h

83h

 

02h

The specified address is not found.

 

05h

85h

 

03h

The specified data has an unacceptable format.

 

 

 

 

 

 

 

06h

86h

 

21h

The data to be written to a register exceeds the range of inverter

 

 

 

 

 

specifications.

 

0Fh

8Fh

 

 

 

 

 

The inverter restricts the execution of the specified function:

 

 

 

 

 

 

10h

90h

 

 

- Rewriting a register that cannot be rewritten during the operation

 

 

 

 

22h

- Issuing an Enter command during the operation (in undervoltage

 

 

 

 

 

 

 

 

status)

 

 

 

 

 

 

 

 

 

 

- Writing to a register during tripping (because of undervoltage)

 

 

 

 

 

- Writing to a read-only register (coil)

4 - 137

Page 195
Image 195
Hitachi SJ700-2 instruction manual Slave address Function code Exception code CRC-16 code, Exception codes