38
FnIO MODBUS Adapter NA-9171, NA-9173
FnIO S-Series
Copyright(C) CREVIS Co.,Ltd Support +82-31-899-4599 URL : www.crevis.co.kr
The sub-function with data fields is to clear watchdog counter and change IO output status. This may be used to simulate
clear output and fault output
.
Sub-function
Data Field (Request)
Data Field (Response)
Description
0x0066(102)
0x0000
Echo Request Data
Ready output,
Automatically turns
Normal output
0x0066(102)
0x0001, 0x0002, 0x0003
Echo Request Data
Clear output
0x0066(102)
0x0004
Echo Request Data
Normal output
0x0066(102)
0x0005, 0x0006, 0x0007
Echo Request Data
Fault output
6.2.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.