A.3.9. 16 (0x10) write multiple registers, Fnio s-series – Beijer Electronics NA-9379 User Manual

Page 70

Advertising
background image

70

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.9. 16 (0x10) Write Multiple Registers
This function code is used to write a block of contiguous registers (1 to approx. 120 registers) in a remote device.
The requested written values are specified in the request data field. Data is packed as two bytes per register.
The normal response returns the function code, starting address, and quantity of registers written.

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

0x08

0x08

“08”

0x30, 0x38

Starting Address Lo

0x00

0x00

“00”

0x30, 0x30

Quantity of Registers Hi

0x00

0x00

“00”

0x30, 0x30

Quantity of Registers Lo

0x02

0x02

“02”

0x30, 0x32

Byte Count

0x04

0x04

“04”

0x30, 0x34

Register Value #0 Hi

0x11

0x11

“11”

0x31, 0x31

Register Value #0 Lo

0x22

0x22

“22”

0x32, 0x32

Register Value #1 Hi

0x33

0x33

“33”

0x33, 0x33

Register Value #1 Lo

0x44

0x44

“44”

0x34, 0x34

Error Check (CRC/LRC)

-

0x3B, 0x12

“31”

0x33, 0x31

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

0x08

0x08

“08”

0x30, 0x38

Starting Address Lo

0x00

0x00

“00”

0x30, 0x30

Quantity of Outputs Hi

0x00

0x00

“00”

0x30, 0x30

Quantity of Outputs Lo

0x02

0x02

“02”

0x30, 0x32

Error Check (CRC/LRC)

-

0x43, 0xCE

“DF”

0x44, 0x46

End of Frame

-

t1-t2-t3

CR, LF

0x0D, 0xA

-

In case of address 0x0800, 0x0801 output register value: 0x0000, 0x0000 changes to 0x1122, 0x3344.









Advertising