beautypg.com

3 0fh write multiple coils – NORD Drivesystems BU0050 User Manual

Page 64

background image

NORD USS and Modbus RTU Manual

64

Subject to technical amendments

BU 0050 GB-3111

2.5.3

0Fh Write Multiple Coils

Via this access, all of the 8 writable coils can be switched simultaneously.

Master

Slave

Slave

Master

Function Code

1 Byte

0x0F

Function Code

1 Byte

0x0F

Start address

2 Byte

0x0000 to 0x0007

Start address

2 Byte

0x0000 to 0x0007

Number of Coils

2 Byte

0x0001 to 0x0008

Number of Coils

2 Byte

0x0001 to 0x0008

Number of bytes

1 Byte

1

Example:

Bus IN Bits 2, 4 and 5 are set from start address 0x0001.

Query (Master

Slave)

Response (Slave

Master)

Address

0x08

Address

0x08

Function Code

0x0F

Function Code

0x0F

Start address High

0x00

Start address High

0x00

Start address Low

0x01

Start address Low

0x01

Number of High Coils

0x00

Number of High Coils

0x00

Number of Low Coils

0x04

Number of Low Coils

0x04

Number of bytes

0x01

CRC High

0x05

Coil value

0x0D

CRC Low

0x51

CRC High

0x02

CRC Low

0xF9