A.3.5. 5 (0x05) write single coil, Fnio s-series – Beijer Electronics NA-9379 User Manual

Page 64

Advertising
background image

64

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.5. 5 (0x05) Write Single Coil
This function code is used to write a single output to either ON or OFF in a remote device. The requested ON/OFF
state is specified by a constant in the request data field. A value of FF 00 hex requests the output to be ON. A value
of 00 00 requests it to be OFF. All other values are illegal and will not affect the output.

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

0x05

0x05

“05”

0x30, 0x35

Starting Address Hi

0x10

0x10

“10”

0x31, 0x30

Starting Address Lo

0x01

0x01

“01”

0x30, 0x31

Quantity of Outputs Hi

0xFF

0xFF

“FF”

0x46, 0x46

Quantity of Outputs Lo

0x00

0x00

“00”

0x30, 0x30

Error Check (CRC/LRC)

-

0xD9, 0x5C

“E4”

0x45, 0x34

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

0x05

0x05

“05”

0x30, 0x35

Output Address Hi

0x10

0x10

“10”

0x31, 0x30

Output Address Lo

0x01

0x01

“01”

0x30, 0x31

Output Value Hi

0xFF

0xFF

“FF”

0x46, 0x46

Output Value Lo

0x00

0x00

“00”

0x30, 0x30

Error Check (CRC/LRC)

-

0xD9, 0x5C

“E4”

0x45, 0x34

End of Frame

-

t1-t2-t3

CR, LF

0x0D, 0xA

-

Output bit of address 0x1001 turns ON.















Advertising