EasyManua.ls Logo

BeiJer GN-9371 - 0 X05) Write Single Coil

BeiJer GN-9371
110 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GN-9371_2_3 User Manual
Page 86 of (110)
G-series GN-9371_2_3 PIO Rev. 1.02.docx
A.3.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
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x05
0x05
Starting Address Hi
0x10
0x10
Starting Address Lo
0x01
0x01
Quantity of Outputs Hi
0xFF
0xFF
Quantity of Outputs Lo
0x00
0x00
Error Check (CRC/LRC)
-
0xD9, 0x5C
End of Frame
-
t1-t2-t3
Response
Field name
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x05
0x05
Output Address Hi
0x10
0x10
Output Address Lo
0x01
0x01
Output Value Hi
0xFF
0xFF
Output Value Lo
0x00
0x00
Error Check (CRC/LRC)
-
0xD9, 0x5C
End of Frame
-
t1-t2-t3
- Output bit of address 0x1001 turns ON.

Table of Contents