The Metasys N2 network supports communications with a diverse range of devices. Many N2
compatible devices use their own version of the protocol and care must be taken to ensure that
the device of interest is covered by the FieldServer implementation.
At present the FieldServer N2 driver will support communications with the following devices or
device classes when acting as a Client:
1. N2Open-compliant devices. N2Open is a published N2-compatible protocol enabling 3rd
party device vendors to integrate with N2.
2. VMA 1400 series (with restrictions, as described in this document)
3. DX9100 and XT9100
When acting as a Server, the FieldServer N2 driver can emulate an N2Open device only.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com
When using the FS-X40 ensure that the FieldServer is connected to the network using one
or both of the RS-485 ports marked R1 and R2. If more ports are required, P1-P8 may be
used in conjunction with an RS-232-to-RS-485 converter.
When using the FS-X20, ensure that the serial port is configured as an RS-485 port. Refer
to Appendix B.3 for more information.
Only one N2 Client may be connected to a N2 network. If the FieldServer is to act as a
Client, ensure that no other Clients are connected to the same N2 network.
Note: Interceptor mode is no longer supported for this driver.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com
4. Configuring the FieldServer as a Metasys N2 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 Metasys N2 Server.
4.1. Data Arrays/Descriptors
The configuration file defines the FieldServer interfaces, and the data routing required. In
order to enable the FieldServer for Metasys N2 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.
Note that in the tables, * indicates an optional parameter, with the bold legal value being the
default value. Where only one legal value is given, no other values for that parameter are
allowed.
Section Title
Data_Arrays
Column Title Function Legal Values
Data_Array_Name Provide name for Data Array
Data_Array_Format
Provide data format. Each Data Array
can only take on one format.
Number of Data Objects. Must be
Data_Array_Length
larger than the data storage area
required by the Map Descriptors for
the data being placed in this array.
Node_ID Station address of physical Server node 1-255
Protocol Specify protocol used Metasys_N2
Connection
Specify which port the device is connected to the
FieldServer
Identify type of device
If this parameter is omitted the driver treats the
configuration as a N2Open configuration and marks
the Node_Type as N2OpenClient when using Ruinet
Node_Type
to check the Node parameters.
If the Node_Type is specified as N2Open then the
driver still acts as N2 Open configuration but some
legacy port expander functionality used in some
legacy advanced configuration is enabled.
Low Alarm Limit
High Alarm Limit
Low Warn Limit
High Warn Limit
Differential
Object Configuration
Object Status
Object Configuration
Object Status
Current Value
Object Configuration
Object Status
Minimum On-Time
Minimum Off-Time
Maximum Cycles/Hour
Object Status
Current Value
Object Status
Current Value
Object Status
Current Value
Using Change of State (COS) – N2Open
If a large number of points are to be monitored, optimal efficiency is achieved by
using the COS mechanism instead of reading each individual point directly. A
N2Open device responds to a COS poll with a change record if a change has taken
place. On startup the device will report the state of all its points when it receives a
COS poll.
Two kinds of Map Descriptors are required for every node that is to be monitored
using COS:
A COS polling Map Descriptor with Function set to COS_Poll.
A COS_Read (i.e. Function set to COS_Read) Map Descriptor for every point
on that node that is to be monitored. Any COS records received will be stored to
the matching Map Descriptor data location.
Note that the COS_Read Map Descriptor has an optional scan_interval. If a value is
set the Map Descriptor will poll at that rate in addition to receiving COS data. This
can be used if the values are to be refreshed continually even if they don’t change. If
the scan_interval is not configured (through omitting the column, or by setting the
value to ‘-‘) the COS_Read Map Descriptor will not cause active polls once the value
has been initialized. See 4.4.4 for example.
Important Note on COS Operation in N2Open
Please be aware that N2Open devices will only report value changes under the
following conditions:
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com
Point Type Conditions that will trigger a COS report
point status change (e.g. override)
AI
AO
BI, BO
ADI, ADF, BD
change in alarm or warning status
NB: no value changes within the normal band are reported by COS!
point status change (e.g. override)
NB: no value changes within the normal band are reported by COS!
point status change (e.g. override); includes current value (On/Off)
none; COS cannot be used with internal data types.
Using Override and Release – N2Open
It is not normally necessary to use the Override command explicitly as the
FieldServer automatically uses this command when the Current Value attribute of a
point is written. For any other attribute it uses the Write command. It will sometimes
be necessary to send a Release command to an overridden point, however. To do
this, a Map Descriptor must be configured with Function set to wrbx and
MN2_Function set to Release. Then, when any value is stored to the Map
Descriptor data location, the Release command will be sent to the N2Open point
specified by the Map Descriptor.
4.4.2.2. VMA Map Descriptor Parameters
Column Title Function Legal Values
One of the node names
specified in “Client Node
Descriptor” above
Node_Name
Name of Node to fetch
data from
AI, AO, DI, DO, Driver
Data_Type Data type
(used for ADF, ADI and
BD)
Length Length of Map Descriptor 1
Address
Starting address of read
block
1-256
Data type specifier to be
MN2_Type
set when Data_Type has
5-7
been set to Driver
ADI, ADF and BD types: using the “Driver” Data_Type and MN2_Type fields
The VMA protocol uses a byte value to specify the data types. The standard types
AI, AO, DI and DO correspond to a byte value of 1 through 4 respectively. The types
ADF, ADI and BD are believed to correspond to a byte value of 5 through 7
respectively. If the user wishes to use any other type value based on knowledge of a
particular VMA configuration, then that value may also be specified here. Refer to
Section 4.4.5 for a specific example.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com
Driver Data_Type
MN2_Type values
Point Type Known Value
2
Suggested Value
3
AI 1
AO 2
BI 3
BO 4
ADF 5
ADI 6
BD 7
If a large number of points are to be monitored, optimal efficiency is achieved by
using the COS mechanism instead of reading each individual point directly. An
N2Open device responds to a COS poll with a change record if a change has taken
place. On startup the device will report the state of all its points when it receives a
COS poll.
Three kinds of Map Descriptors are required for every node that is to be monitored
using COS:
• A COS initialization Map Descriptor with Function set to ARS and
MN2_Function set to COS_Enable. This Map Descriptor enables COS polling
of those points on the VMA for which Passive Map Descriptors exist.
• A COS polling Map Descriptor with Function set to rdbc and MN2_Function set
to COS.
• A Passive (i.e. Function set to Passive) Map Descriptor for every point on that
node that is to be monitored. Any COS records received will be stored to the
matching Map Descriptor data location.
See example in Section 4.4.5
Using Override and Release - VMA
It is normally not necessary to use the Override command explicitly as the
FieldServer automatically uses this command when the Current Value attribute of a
point is written. For any other attribute it uses the Write command. It will sometimes
be necessary to send a Release command to an overridden point, however. To do
this, a Map Descriptor must be configured with Function set to wrbx and
MN2_Function set to Release. Then, when any value is stored to the Map
Descriptor data location, the Release command will be sent to the VMA point
specified by the Map Descriptor.
Note: The VMA Release function only works for analog and binary inputs (AI and
BI). Outputs may be restored to their original value using an explicit write command.
2
For information only. Do not use Driver type for these, but specify AI, AO, BI or BO directly in the Data_Type field.
3
These values are believed to be correct for the corresponding point types, but no guarantee can be given at this time.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com
One of the node names
specified in “Client Node
Descriptor” above
Node_Name
Name of Node to fetch
data from
Length Length of Map Descriptor 1
Address
Starting address of read
block
0 - 2397
For DX9100 addresses please refer to the DX9100 user documentation. This lists
the name, function (read/write) and data format of all available points. Alternatively,
obtain assistance from FieldServer Technical Support.
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
5. Configuring the FieldServer as a Metasys N2 Server
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” files on the
driver diskette).
This section documents and describes the parameters necessary for configuring the FieldServer
to communicate with a Metasys N2Open Client. Note that only the N2Open variation of the N2 protocol may be used when configuring the FieldServer as a Server.
The configuration file tells the FieldServer about its interfaces, and the routing of data required.
In order to enable the FieldServer for Metasys N2 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
Section Title
Connections
Column Title Function Legal Values
Port
Specify which port the device is
connected to the FieldServer
P1-P8, R1-R24
Protocol Specify protocol used Metasys_N2
Baud* Specify baud rate
Parity* Specify parity
Data_Bits* Specify data bits
Stop_Bits* Specify stop bits
Handshaking* Specify hardware handshaking
Poll _Delay* Time between internal polls
Line_Drive_On*
Line_Drive_Off*
Duration of RTS assert before
start of transmission
Duration of RTS assert after
end of transmission
9600
None
8
1
None
0
0.001s
0.000s
Example
// Server Side Connections
Connections
Port, Protocol
P8, Metasys_N2
4
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