B–15, Appendix b – Hitachi L2002 User Manual

Page 251

Advertising
background image

L200

2

Inverter

Appendix B

B–15

Write in Coils [0Fh]:

This function writes data in consecutive coils. An example follows:

• Change the state of intelligent input terminal [1] to [5] of an inverter having a slave

address “5.”

• This example assumes the intelligent input terminals have terminal states listed below.

Item

Data

Intelligent input terminal

[1]

[2]

[3]

[4]

[5]

Coil number

7

8

9

10

11

Terminal status

ON

ON

ON

OFF

ON

Query:

Note 1:

Broadcasting is disabled.

Note 2:

The change data is a set of
high-order data and low-order
data. So when the size (in
bytes) of data to be changed is
an odd number, add “1” to the
data size (in bytes) to make it
an even number.

Response:

No.

Field Name

Example

(Hex)

1

Slave address *1

05

2

Function code

0F

3

Coil start number
(high order)

00

4

Coil start number
(low order)

07

5

Number of coils
(high order)

00

6

Number of coils (low
order)

06

7

Byte number *2

02

8

Change data
(high order) *2

17

9

Change data
(low order) *2

00

10

CRC-16 (high order)

DA

11

CRC-16 (low order)

EF

No.

Field Name

Example

(Hex)

1

Slave address

05

2

Function code

0F

3

Data size (in bytes)

00

4

Coil data *3

07

5

Number of coils
(high order)

00

6

Number of coils
(low order)

06

7

CRC-16 (high order)

65

8

CRC-16 (low order)

8C

Advertising