FS-8700-123 MetOne Particle Counter Serial Driver Manual Page 3 of 26
1. MetOne Particle Counter Serial Description
The MetOne Particle Counter Serial driver allows the FieldServer to transfer data to and from
devices over RS-232 or RS-485 using MetOne Particle Counter Serial protocol.
This driver is based on a specification called “Standard Protocol FX (enhanced)” ENG110
Revision A dated 1999 by Pacific Scientific Instruments. This protocol provides an interface to
Particle Counters manufactured by HACH Ultra Analytics and labeled as METONE products.
Pacific Scientific Instruments is a former name of Hach.
The primary purpose of the driver is to obtain the current particle counts, but it does allow for
limited control and configuration of some counter parameters. While the driver provides Client
and Server emulation, the Server side of the driver is intended to support FieldServer’s Quality
Assurance program and is not intended to provide complete emulation of a MetOne Counter.
Thus the Server side is not fully documented and is not supported. At a customer’s request the
Server side functionality can be documented and enhanced. If you are interested in this
functionality, then please contact FieldServer’s sales group.
When configured as a Client the driver can start/stop a unit from sampling, change its mode, set
and get sample and hold times, startup or standby a unit and retrieve its current sample value.
Whenever the driver stores a sample value, it will also store a timestamp of when the record
was obtained.
In the configuration of the FieldServer each device is identified by specifying its device number
then the sub-device code or port number and finally by a device type. The device type will be
used to interpret the status byte obtained from the device.
For each configured node, each time the FieldServer sends a message to the device it will
select the device (and the select the sub-device or port if specified) and then the message will
be sent. If the most recent message sent was sent to the device, the driver will do the selection
to ensure the correct device response.
When the current record is read from a device then the driver will store the data extracted from
the response in a range of consecutive Data Array elements so that these values can be served
to another protocol. Even though the record data contains a time stamp, the driver will make its
own time stamp for new data. If there is no current record the driver will not update the data.
If the response is invalid in any way – invalid characters or invalid checksum the driver will
ignore the message and not store any data.
Max Nodes Supported
FieldServer mode Nodes Comments
There can only be one Client node per FieldServer port.
Client 1
The driver can poll any number of Server nodes provided
that they comply with the vendors numbering requirements
Server
Driver as a Server is not documented or supported. Used
only for QA purposes.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com
FS-8700-123 MetOne Particle Counter Serial Driver Manual Page 6 of 26
07
9-Pin Serial Connector on rear
of 2100 Device
Tx Rx
12987543
GND
6
9-Pin Serial Connector on rear
of 2100 Device
12987543
6
OR
FS-Tx/+
RJ45-01
BROWN
FS-8917-16
Port
RS-232
FS-Rx/-
RJ45-08
ORANGE/WHITE
FS-COM
RJ45-04
BLUE/WHITE
(408)-262-2299
SERIAL
2100 PARTICLE COUNTER
CONNECTION DIAGRAM
FIELDSERVER
BASE NAME:
FILE NAME: FS-8700-123
DATE: 6/1/
BY: MC
3.1. Hardware Connection Tips / Hints
The 2100 Device auto configures its serial port based on the pins connected. There is no
explicit setting or selector for RS-232/RS-485
Ensure other pins are not connected.
The FS-8917-16 cable is not needed for RS-485 on the X30 and X40 only.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com
FS-8700-123 MetOne Particle Counter Serial Driver Manual Page 7 of 26
4. Configuring the FieldServer as a MetOne PC Serial Client
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 MetOne Particle Counter Serial 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 MetOne Particle Counter Serial
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.
Note that in the tables, * indicates an optional parameter, with the bold legal value being the
default.
Section Title
Data_Arrays
Column Title Function Legal Values
Data_Array_Name Provide name for Data Array
Up to 15 alphanumeric
characters
Float, Bit, UInt16, SInt16,
Data_Array_Format
Provide data format. Each Data
Array can only take on one format.
Packed_Bit, Byte,
Packed_Byte,
Swapped_Byte
Number of Data Objects. Must be
Data_Array_Length
larger than the data storage area
required by the Map Descriptors for
FS-8700-123 MetOne Particle Counter Serial Driver Manual Page 9 of 26
4.4. Client Side Map Descriptors
4.4.1. FieldServer Related Map Descriptor Parameters
Column Title Function Legal Values
Map_Descriptor_Name Name of this Map Descriptor
Name of Data Array where
Data_Array_Name
Data_Array_Offset
Function
data is to be stored in the
FieldServer
Starting location in Data
Array
Function of Client Map
Descriptor
Up to 32 alphanumeric
characters
One of the Data Array names
from “Data Array” section
above
0 to maximum specified in
“Data Array” section above
RDBC, WRBC, WRBX
4.4.2. Driver Related Map Descriptor Parameters
Column Title Function Legal Values
One of the node names
Node_Name Name of Node to fetch data from
Length Length of Map Descriptor
Specify the function. Additional
Met1_Function
Met1_SubDev_or_Port
Address
Met1_Label
notes and explanations are
provided in the examples.
This parameter as well as the
“Address” parameter must be
specified if a SubDevice or Port is
being polled.
This parameter is used to specify
the SubDevice or Port number if
either is being polled.
A method of storing count data
using a 3-character label. Use of
this parameter to allows the driver
to know which count to store.
Refer to Section 0 for more
information.
specified in “Client
Node Descriptor” above
See Map Descriptor
Example for
recommended lengths
"Current Record"
"Hold Time"
"Sample Time"
"Mode"
"Device Select"
“SubDevice/Port
Select”
“Count”
“Device”
“SubDevice”
“Port”
Port numbers: 0-63
SubDevice numbers: 164
E.g. “LOC” or “0.1”
4.4.3. Timing Parameters
Column Title Function Legal Values
Scan_Interval Rate at which data is polled ≥0.001s
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com
FS-8700-123 MetOne Particle Counter Serial Driver Manual Page 20 of 26
5. Configuring the FieldServer as a MetOne PC Serial Server
The Server side of the driver was developed to support FST’s QA program. It is not documented
or supported. If you are interested in using the driver to emulate a MetOne Particle Counter then
contact the FST Sales group.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com
Invalis entry for SubDevice4
64
MET1:#20 Err. Met1_Function not
specified
MET1:#21 Err.
Met1_Function='%s' not
recognized
The parameter “Met1_Function’ must be specified for
every Map Descriptor. Refer to Section 4.4.2 as well as
Map Descriptor examples provided in Chapter 4.4
Appendix A.1. Driver Operating and Error Statistics
These notes outline any driver specific use of the normal driver operating stats documented
in the FieldServer Configuration Manual.
• Timeouts : During normal polling, a timeout can mean that the field device did not
respond to the select message, (or the sub-device select message) or did not respond to
the poll for data or the command poll.
• Exception Stats: If the driver select a device , sub-device or port and the return code
from the device is unexpected the this stat is incrmented by 1.
• Ignored Stats: If the current record is read and there is more data than can be stored
than specified by the Length of the Map Descritor then this stat is incremented.
• The driver does not use the normal operating stats to count message and bytes received
in response to select / sub select messages.
4
Update the configuration file, download the modified configuration file and reset the FieldServer for the
changes to take effect
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com
FS-8700-123_MetOne Particle Counter by Hach Ultra Analytics Manual Page 24 of 26
Appendix A.2. Driver Exposed Operating and Error Statistics
In addition to the normal operating stats the driver can expose additional operating/error
stats in a Data Array which can be monitored by a remote device.
A special Data Array name is required. The driver recognizes the Data Array by its name
which must be "met1-stats"
The following example shows how this Data Array can be configured. This section of text
can be copied directly into the CSV file.
The driver stores the following data. The location in the data array is obtained by
multiplying the port number by 100 and then using the location offset indicated in the table
below.
Offset + x
Where x = port_number*100
Physical Port 1 = Port Number 2
Physical Port 2 = Port number 1
Offset Description
1 Stores the select code of the most recently selected device - This is done by the Server
side of the driver
2 Stores the select code of the most recently selected sub-device/port - This is done by the
Server side of the driver
3 Stores the operating command code of the most recently commanded device/sub-
device/port - This is done by the Server side of the driver
4 When the driver stores current record counts by label then the driver stores the 1st
character of the label here. This gets overwritten each time new label data is stored.
5 See previous. 2nd Character.
6 See previous. 3rd Character.
7 See previous. 4th Character.
8 Increments by 1 each time driver stores using the label method.
9 Increments by 1 each time internal diagnostic 1 is triggered. Should be zero in operational
systems.
10 Increments by 1 each time internal diagnostic 4 is triggered. Should be zero in operational
systems.
11 Increments by 1 each time internal diagnostic 5 is triggered. Should be zero in operational
systems.
12 Increments by 1 each time internal diagnostic 6 is triggered. Should be zero in operational
systems.
13 Increments by 1 each time internal diagnostic 7 is triggered. Should be zero in operational
systems.
14 Increments by 1 each time there is no response to a select message
15 Increments by 1 each time there is no response to a sub-device/port select message
16 Increments by 1 each time there is no response to a non select message
17 Increments by 1 each time a response has a checksum error. Only current record poll
responses contain checksums.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com
FS-8700-123_MetOne Particle Counter by Hach Ultra Analytics Manual Page 25 of 26
Offset Description
18 Increments by 1 each time the Client side sends a select message
19 Increments by 1 each time the Client side sends a sub-device select message
20 Increments by 1 each time the Client side sends a port select message
21 Stores the select code of the most recent select message sent by the Client
22 Stores the sub-device/port select code of the most recent sub-device/port select message
sent by the Client
23 Each time Client side sends a message this stat increments by 1
24 Each time Client side sends a message this stat increments by the number of bytes in the
message
25 Increments by 1 each time a complete response is received from the field device
26 Increments by the number of bytes contained in a complete response received from the
field device
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com