
FS-8700-01 Modbus RTU/ASCIIFS-8700-01_Modbus_RTU Driver Manual
Page 21 of 22
FieldServer Technologies
1991 Tarob Court Milpitas, California 95035 USA
Web
: www.fieldserver.com
Tel
: (408) 262 2299
Fax
: (408) 262 2269
Toll Free
: (888) 509 1970
Appendix E.
Reference
Appendix E.1.
Data Types
If Node parameter Address_Type is set as ADU or PDU, then Data_Type must be specified as follows
For Address_Type ADU :
Address range Data_Type
Function Code (Write) Function Code (Read)
1 - 65536
Coil
15
1
1 – 65536
Discrete_Input
n/a.
2
1 – 65536
Input_Register
n/a.
4
1 - 65536
Holding_Register 16
3
For Address_Type PDU :
Address range Data_Type Function Code (Write) Function Code (Read)
0 - 65535
FC01
15
1
0 – 65535
FC02
n/a.
2
0 – 65535
FC04
n/a.
4
0 – 65535
FC03
16
3
For Address_Type Modicon_5digit
When a Modbus address range is specified, a particular Data Type is implied. The defaults are as follows:
Address range Data_Type
Function Code (Write) Function Code (Read)
40001 - 49999 Register
16
3
30001 - 39999 Analog_Input n/a.
4
10001 - 19999 Digital_Input
n/a.
2
00001 - 09999 Coil
15
1
Appendix E.2.
Single Writes
For pure write operations where the function = WRBC or WRBX, the driver defaults to using Function Codes 15 and
16 (Multiple writes). It is possible to force the driver to use Function Codes 5 and 6 (Single Writes) by manipulating
the Data_Type parameter as follows:
For Address_Type ADU:
Address range Data_Type
Function Code (Write)
1 - 65536
Single_Coil
5
1 - 65536
Single_Register l 6
For Address_Type PDU:
Address range Data_Type Function Code (Write)
0 - 65535
FC05
5
0 - 65535
FC06
6