

A Sierra Monitor Company
FS-8700-01 Modbus RTU
& FS-8700-08 Modbus ASCII
There are several similarities between these two drivers and
we have incorporated them into the same manual to ensure
that our information stays current. Although both drivers are referenced in this manual, they are different drivers and
need to be ordered separately."
Effective for all systems manufactured after May 1, 2001
Rev. A.
Applicability and Effectivity



FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

2.1. Supplied by FieldServer Technologies for this driver
FIELDSERVER TECHNOLOGIES PART # DESCRIPTION FS-8915-10 UTP cable (7 foot) for RS-232 use FS-8917-02 RJ45 to DB9F connector adapter FS-8917-01 RJ45 to DB25M connection adapter FS-8917-21 RS-485 connection adapter FS-8700-01 (T28700-01) Driver Manual
2.2. Provided by Supplier of 3rd Party Equipment
PART # DESCRIPTION Modbus RTU or Modbus ASCII device
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

It is possible to connect a Modbus RTU or Modbus ASCII device to any of the existing serial ports on the FieldServer1. These ports simply need to be configured for the appropriate driver in the configuration file. Configure the Modbus RTU or Modbus ASCII device according to manufacturer’s instructions.

1 Not all ports shown are necessarily supported by the hardware. Consult the appropriate Instruction manual for details of the ports available on specific hardware.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

For a detailed discussion on FieldServer configuration, please refer to the FieldServer Configuration Manual. The information that follows describes how to expand upon the factory defaults provided in the configuration files included with the FieldServer (See “.csv” sample files provided with the FieldServer). This section documents and describes the parameters necessary for configuring the FieldServer to communicate with a Modbus RTU or Modbus ASCII Server.
4.1. Data Arrays/Descriptors
The configuration file tells the FieldServer about its interfaces, and the routing of data required. In order to enable the FieldServer for Modbus RTU or Modbus ASCII communications, the driver independent FieldServer buffers need to be declared in the “Data Arrays” section, the destination device addresses need to be declared in the “Client Side Nodes” section, and the data required from the Servers needs to be mapped in the “Client Side Map Descriptors” section. Details on how to do this can be found below.

Data_Array_Name Provide name for Data Array Up to 15 alphanumeric characters
Provide data format. Each Data Array can only take on one format.
Number of Data Objects. Must be larger than the data storage area required by the map descriptors for the data being placed in this array.

// Data Arrays Data_Arrays Data_Array_Name, Data_Array_Format, Data_Array_Length DA_AI_01, UInt16, 200 DA_AO_01, UInt16, 200 DA_DI_01, Bit, 200 DA_DO_01, Bit, 200
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
Example

4.2. Client Side Connection Descriptors

Port Specify which port the device is connected to the FieldServer P1-P8, R1-R22
Baud* Specify baud rate 110 – 115200, standard baud rates only. 9600 Parity* Specify parity Even, Odd, None Data_Bits* Specify data bits 7, 8 Stop_Bits* Specify stop bits 1 (Vendor limitation) Modbus RTU Modbus _RTU Modbus ASCII Protocol Specify protocol used
MB_ASCII Handshaking* Handshaking is not supported None Poll Delay* Time between internal polls 0-32000s, 0.05s Example Change protocol to MB_ASCII to use Modbus ASCII protocol

// Client Side Connections Connections Port, Baud, Parity, Data_Bits, Stop_Bits, Protocol, Handshaking, Poll_Delay P8, 9600, None, 8, 1, Modbus _RTU, None, 0.100s
2 Not all ports shown are necessarily supported by the hardware. Consult the appropriate Instruction manual for details of the ports available on specific hardware.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

4.3. Client Side Node Descriptors

Node_Name Provide name for Node Up to 32 alphanumeric characters
Node_ID Modbus station address of physical Server Node 1-255
Modbus RTU Modbus_RTU Modbus ASCII Protocol Specify protocol used
Port Specify which port the device is connected to the FieldServer P1-P8, R1-R22
Set to Block_Mode if Remote Server Node (RSN) only supports Write Multiple – FC16 & FC15, and does not support FC05 or FC06
Address_Type4 Specify Register Mapping Model ADU,PDU, -, Modicon_5digit Example: Change protocol to MB_ASCII to use Modbus ASCII protocol

// Client Side Nodes // For devices where 65536 addresses are available in each memory area. Nodes Node_Name, Node_ID, Protocol, Port Address_Type Modbus device 1, 1, Modbus_RTU, P8 ADU Modbus device 2, 2, Modbus_RTU, P8 PDU // For devices where only 9999 registers are available in each memory area. Nodes Node_Name, Node_ID, Protocol, Port Modbus device 3, 3, Modbus_RTU, P8
3 If this parameter is not specified the default function codes will be FC 05 (Single_Coil) and FC 06 (Single_Register). Refer to Appendix A.3 for more information. 4 Optional for Modicon 5 digit devices
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

4.4. Client Side Map Descriptors
4.4.1. FieldServer Related Map Descriptor Parameters

4.4.2. Driver Related Map Descriptor Parameters
Column Title Function Legal Values
Node_Name Name of Node to fetch data from
One of the Node names specified in “Client Node Descriptor” above Address_Type = ADU Coil, Discrete_Input, Input_Register, Holding_Register, Single_Coil, Single_Register Address_Type = PDU FC01, FC02, FC03, FC04, FC05, FC06, FC15, FC16 Address_Type = Modicon_5digit
Data_Type5 Specify memory area
- (Dash), Single_Register, Single_Coil Address_Type = ADU 1-65536 Address_Type = PDU 0-65535 Address_Type = Modicon_5digit
Address Starting address of read block
Length Length of Map Descriptor
1-125 (For Analog polls), 1-800 (For Binary polls).
Data_Array_Low_Scale* Scaling zero in Data Array
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 0
Data_Array_High_Scale* Scaling max in Data Array
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 100
Node_Low_Scale* Scaling zero in Connected Node
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 0
Node_High_Scale* Scaling max in Connected Node
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 100
4.4.3. Timing Parameters
5 Optional only for Modicon_5digit addressing, and only if Single writes do not need to be forced
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
40001, 30001, etc

Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_Name, Data_Type, Address, Length, Scan_Interval
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_Name, Data_Type, Address, Length, Scan_Interval
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_Name, Address, Length, Scan_Interval
CMD_AI_01, DA_AI_01, 0, RDBC, MODBUS DEVICE1, Input_Register, 1, 20, 1.000s CMD_AO_01, DA_AO_01, 0, RDBC, MODBUS DEVICE1, Holding_Register, 1, 20, 1.000s CMD_DI_01, DA_DI_01, 0, RDBC, MODBUS DEVICE1, Discrete_Input, 1, 20, 1.000s CMD_DO_01, DA_DO_01, 0, RDBC, MODBUS DEVICE1, Coil, 1, 20, 1.000s
CMD_AI_02, DA_AI_02, 0, RDBC, MODBUS DEVICE2, FC04, 0, 20, 1.000s CMD_AO_02, DA_AO_02, 0, RDBC, MODBUS DEVICE2, FC03, 0, 20, 1.000s CMD_DI_02, DA_DI_02, 0, RDBC, MODBUS DEVICE2, FC02, 0, 20, 1.000s CMD_DO_02, DA_DO_02, 0, RDBC, MODBUS DEVICE2, FC01, 0 20, 1.000s
CMD_AI_03, DA_AI_03, 0, RDBC, MODBUS DEVICE3, 30001, 20, 1.000s CMD_AO_03, DA_AO_03, 0, RDBC, MODBUS DEVICE3, 40001, 20, 1.000s CMD_DI_03, DA_DI_03, 0, RDBC, MODBUS DEVICE3, 10001, 20, 1.000s CMD_DO_03, DA_DO_03, 0, RDBC, MODBUS DEVICE3, 00001, 20, 1.000s
// For Nodes where Address_Type is ADU
// For Nodes where Address_Type is PDU
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
// Note: All three examples below are addressing the same Modbus registers.
4.4.4. Map Descriptor Examples.
// For Nodes where Address_Type is Modicon_5digit.
// Client Side Map Descriptors
Map_Descriptors · Map_Descriptors · Map_Descriptors

For a detailed discussion on FieldServer configuration, please refer to the FieldServer Configuration Manual. The information that follows describes how to expand upon the factory defaults provided in the configuration files included with the FieldServer (See “.csv” sample files provided with the FieldServer). This section documents and describes the parameters necessary for configuring the FieldServer to communicate with a Modbus RTU or Modbus ASCII Client. The configuration file tells the FieldServer about its interfaces, and the routing of data required. In order to enable the FieldServer for Modbus RTU or Modbus ASCII communications, the driver independent FieldServer buffers need to be declared in the “Data Arrays” section, the FieldServer virtual Node(s) needs to be declared in the “Server Side Nodes” section, and the data to be provided to the clients needs to be mapped in the “Server Side Map Descriptors” section. Details on how to do this can be found below. Note that in the tables, * indicates an optional parameter, with the bold legal value being the default.
5.1. Server Side Connection Descriptors

Port Specify which port the device is connected to the FieldServer P1-P8, R1-R26
Baud* Specify baud rate 110 – 115200, standard baud rates only Parity* Specify parity Even, Odd, None Data_Bits* Specify data bits 7, 8 Stop_Bits* Specify stop bits 1 (Vendor limitation) Modbus RTU Modbus_RTU Modbus ASCII Protocol Specify protocol used
Example Change protocol to MB_ASCII to use Modbus ASCII protocol // Server Side Connections Connections Port, Baud, Parity, Data_Bits, Stop_Bits, Protocol, Handshaking P1, 9600, None, 8, 1, Modbus_RTU, None

6 Not all ports shown are necessarily supported by the hardware. Consult the appropriate Instruction manual for details of the ports available on specific hardware.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

5.2. Server Side Node Descriptors
Section Title Nodes Column Title Function Legal Values Node_Name Provide name for Node Up to 32 alphanumeric characters Node_ID Node ID of physical Server Node 1 – 255 Protocol Specify protocol used Modbus RTU Address_Type7 Specify Register Mapping Model ADU,PDU, -, Modicon_5digit

Example Change protocol to MB_ASCII to use Modbus ASCII protocol

// Server Side Nodes // For devices where 65536 addresses are available in each memory area. Nodes Node_Name, Node_ID, Protocol Address_Type MB_Srv_11, 11, Modbus_RTU ADU MB_Srv_12, 12, Modbus_RTU PDU // For devices where only 9999 registers are available in each memory area. Nodes MB_Srv_13, 13, Modbus_RTU Modicon_5digit MB_Srv_14, 14, Modbus_RTU -
7 Optional for Modicon 5 digit devices
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

5.3. Server Side Map Descriptors
5.3.1. FieldServer Specific Map Descriptor Parameters

Map_Descriptor_Name Name of this Map Descriptor Up to 32 alphanumeric characters
Data_Array_Name Name of Data Array where data is to be stored in the FieldServer
One of the Data Array names from “Data Array” section above
Data_Array_Offset Starting location in Data Array 0 to maximum specified in “Data Array” section above
5.3.2. Driver Specific Map Descriptor Parameters
Column Title Function Legal Values
Node_Name Name of Node to fetch data from
One of the Node names specified in “Client Node Descriptor” above Address_Type = ADU Coil, Discrete_Input, Input_Register, Holding_Register, Single_Coil, Single_Register Address_Type = PDU FC01, FC02, FC03, FC04, FC05, FC06, FC15, FC16 Address_Type = Modicon_5digit
Data_Type8 Specify memory area
- (Dash), Single_Register, Single_Coil
Length Length of Map Descriptor 1-10000.
Address_Type = ADU 1-65536 Address_Type = PDU 0-65535 Address_Type = Modicon_5digit
Address Starting address of read block
Data_Array_Low_Scale* Scaling zero in Data Array
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 0
Data_Array_High_Scale* Scaling max in Data Array
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 100
Node_Low_Scale* Scaling zero in Connected Node
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 0
Node_High_Scale* Scaling max in Connected Node
Any signed 32 bit integer in the range: -2,147,483,648 to 2,147,483,647. 100
Set the FieldServer response to the Modbus RTU Client when the Server Node supplying the data has gone offline
No_Response, Old_Data, Zero_Data, FFFF_Data, Refer to Appendix A.6 for further information.
8 Optional only for Modicon_5digit addressing, and only if Single writes do not need to be forced
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
40001, 30001, etc · Node_Offline_Response

Map_Descriptor_Name Data_Array_Name Data_Array_Offset, Function Node_name, Data_type Address, Length, Data_Array_Low_Scale, Data_Array_High_Scale Node_Low_Scale Node_High_Scale
Map_Descriptor_Name Data_Array_Name Data_Array_Offset, Function Node_name, Data_type Address, Length, Data_Array_Low_Scale, Data_Array_High_Scale Node_Low_Scale Node_High_Scale
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_name, Address, Length, Data_Array_Low_Scale, Data_Array_High_Scale Node_Low_Scale Node_High_Scale
SMD_AI_01, DA_AI_01, 0, Server, MB_Srv_11 Input_Register 1, 200, 0, 100, 0, 10000 SMD_AO_01, DA_AO_01, 0, Server, MB_srv_11 Holding_Register 1, 200, 0, 100, 0, 10000
SMD_AI_02, DA_AI_02, 0, Server, MB_Srv_12 FC04 0, 200, 0, 100, 0, 10000 SMD_AO_02, DA_AO_02, 0, Server, MB_srv_12 FC03 0, 200, 0, 100, 0, 10000
SMD_AI_01, DA_AI_01, 0, Server, MBP_Srv_13, 30001, 200, 0, 100, 0, 10000 SMD_AO_01, DA_AO_01, 0, Server, MBP_Srv_13, 40001, 200, 0, 100, 0, 10000
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
5.3.3. Map Descriptor Examples
// Note: All three examples below are addressing the same Modbus registers.
// Server Side Map Descriptors where Node Address_Type is ADU
// Server Side Map Descriptors where Node Address_Type is PDU
// For Nodes where Address_Type is Modicon_5digit.
// For Nodes where Address_Type is ADU
Map_Descriptors · Map_Descriptors · Map_Descriptors

Appendix A. Advanced Topics – Modbus RTU
Appendix A.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

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

Appendix A.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 For Address_Type Modicon_5digit
Address range Data_Type Function Code (Write) 40001 - 49999 Single_Register 6 30001 - 39999 Single_Coil 5. Example: FC 6 = Write Single Register Add a parameter to the Modbus client side Map Descriptor called Data_Type. If you specify the Data_Type as Single_Register and the Function as WRBC or WRBX, then a Modbus poll with FC 6 will be generated. Logically Single Register implies a length of one, and even if you try to set the length longer in the csv file, the length is limited to 1 in the driver.
Appendix A.3. Read/write Operation
When using the driver as a Modbus master, the function RDBC allows read/write capability with Register and Coil data types. If defaults are used, then Function codes 5 and 6 (Single Writes) are used to write data back to the registers being read, regardless of data length being read. If multiple writes (FC 15 and 16) are needed for Read/write operation, the user needs to specify the Node_Type parameter in the Client Side Nodes Section and set it to Block_Mode. Note that block writes of length 1 are currently all that is supported.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

Modbus as a standard does not support floating point formats. Many vendors have written higher level communications software to
use two 16 bit registers to represent floating point or 32 bit integers. This requires conversion software on both ends of the
The following example shows how scaling can be achieved on the Server side of the configuration. Note that scaling can also be
done on the Client side to scale down a value that was scaled up by a Modbus vendor. Further information regarding scaling can be
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_Name, Address, Length, Data_Array_Low_Scale, Data_Array_High_Scale, Node_Low_Scale, Node_High_Scale,
This example multiplies the values in the data array by 100 (10000 on Node_High_Scale is 100X larger than 100 on
Data_Array_High_Scale). This is most commonly used when the user wants to introduce values after the decimal point. For
SMD_AI1, DA_AI_01, 0, Server, MBP_Srv_11, 30001, 200, 0, 100, 0, 10000 SMD_AO1, DA_AO_01, 0, Server, MBP_Srv_11, 40001, 200, 0, 100, 0, 10000
communication channel. The FieldServer supports this function and also provides other options to resolve this issue.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
example, a value of 75.6 will be sent as 7560, which can then be rescaled by the Modbus master.
It is possible to represent values higher than 32767 using one register in one of two ways:
Appendix A.4. Managing Floating points with Modbus
Transferring non-integer values with one register
found in the FieldServer Configuration manual.
Example :
Map_Descriptors

Transferring 32 bit values with two registers If a Modbus Server sends two consecutive registers to the FieldServer representing either a floating point value or a 32 bit integer value, the FieldServer can combine and decode these registers back into their original format. To do this, the user must read the registers into an integer data array, and then use the Moves function to move the data to a floating point or 32 bit integer data array. The “function” field in the move must be populated with the correct move function required. Details of the available function fields are listed in the FieldServer configuration manual along with a more detailed explanation of moves. Note that functions also exist to split a floating point value into two integers using the reverse operation. A diagrammatic representation of this process is depicted below:

Float Data Array Offset 40: Float value Modbus
Source Data Array Offset 0: 40001 Offset 1: 40002
Modbus Device Two 16 bit integers polled: e.g: 40001, length 2 Together, they combine to form a 32 bit IEEE Floating point number.
The example below shows how a floating point value is retrieved from two Modbus registers that were placed in an integer data array.
Data_Arrays Data_Array_Name, Data_Format, Data_Array_Length DA1, int16, 20 DA2, float, 10 Moves Function, Source_Data_Array, Source_Offset, Target_Data_Array, Target_Offset 2.i16-1.float-sw, DA1, 0, DA2, 6

This Move will cause two integers at offsets 0 and 1 in the integer Data Array DA1 to be copied to offset 6 in the float Data Array DA2. In the process of copying the values, the integers will be combined and treated as an IEEE 32 bit floating point number.
Appendix A.5. Connection to York Modbus Microgateway
If connecting the FieldServer to a York Modbus Microgateway, the Node_ID of the Microgateway is defined by the address DIP switches. If switch 4 is set to ‘On’ and the other switches are set to ‘off’ then Node_ID of the Microgateway is ‘247’, the parity is ‘Even’, and the stop bits are 1. Other Node_ID combinations can be found in the York Modbus Microgateway Installation Manual.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
Example

Appendix A.6. Node_Offline_Response
Example: Nodes Node_name, Node_ID, Protocol, Node_Offline_Response, port DEV11, 11, Modbus_rtu, No_Response, - DEV12, 12, Modbus_rtu, Old_Data, - DEV15, 15, Modbus_rtu, Zero_Data, - DEV16, 16, Modbus_rtu, FFFF_Data, -
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

Appendix B. Modbus ASCII - Examples of FieldServer setup for typical clients
Appendix B.1. FieldServer with GE Cimplicity as client
Appendix B.2. FieldServer with Intellution FIX as a client
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com
Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.