A.3.8. 15 (0x0f) write multiple coils, Fnio s-series – Beijer Electronics NA-9379 User Manual

Page 69

Advertising
background image

69

MODBUS Programmable I/O NA-9379

FnIO S-Series



Copyright(C) CREVIS Co.,Ltd Support +82-31-899-4599 URL : www.crevis.co.kr

A.3.8. 15 (0x0F) Write Multiple Coils
This function code is used to force each coil in a sequence of coils to either ON or OFF in a remote device. The
Request PDU specifies the coil references to be forced. Coils are addressed starting at zero. A logical '1' in a bit
position of the field requests the corresponding output to be ON. A logical '0' requests it to be OFF.
The normal response returns the function code, starting address, and quantity of coils forced.

Request

Field name

Example

RTU

ASCII

ASCII (bus line)

Start of Frame

-

t1-t2-t3

“,”

0x3A

Slave Address

0x07

0x07

“07”

0x30, 0x37

Function Code

0x0F

0x0F

“0F”

0x30, 0x46

Starting Address Hi

0x10

0x10

“10”

0x31, 0x30

Starting Address Lo

0x00

0x00

“00”

0x30, 0x30

Quantity of Outputs Hi

0x00

0x00

“00”

0x30, 0x30

Quantity of Outputs Lo

0x0A

0x0A

“0A”

0x30, 0x41

Byte Count

0x02

0x02

“02”

0x30, 0x32

Output Value #0

0x55

0x55

“55”

0x35, 0x35

Output Value #1

0x01

0x01

“01”

0x30, 0x31

Error Check (CRC/LRC)

-

0x21, 0XC9

“78”

0x37, 0x38

End of Frame

-

t1-t2-t3

CR, LF

0x0D, 0xA

Response

Field name

Example

RTU

ASCII

ASCII (bus line)

Start of Frame

-

t1-t2-t3

“,”

0x3A

Slave Address

0x07

0x07

“07”

0x30, 0x37

Function Code

0x0F

0x0F

“0F”

0x30, 0x46

Starting Address Hi

0x10

0x10

“10”

0x31, 0x30

Starting Address Lo

0x00

0x00

“00”

0x30, 0x30

Quantity of Outputs Hi

0x00

0x00

“00”

0x30, 0x30

Quantity of Outputs Lo

0x0A

0x0A

“0A”

0x30, 0x41

Error Check (CRC/LRC)

-

0xD1, 0x6A

“D0”

0x44, 0x30

End of Frame

-

t1-t2-t3

CR, LF

0x0D, 0xA

-

In case of address 0x1015~0x1000 output bit value: 00000000_00000000 changes to 00000001_01010101.












Advertising