FS-8700-47 DNP 3.0 Driver Manual

Page 13 of 51

 

 

4.4.5.Map Descriptor Example 2 – Simple Read – Extract the Quality/Status

In this example the status data rather than the input values are written to the data array specified.

//Client Side Map Descriptors

Map_Descriptors

 

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Address

,Length

,Scan_Interval

,dnpDataType

,dnpDataVari

,dnpSubType

A1

,DA_AI3STAT

,20

,Rdbc

,Node_A

,20

,10

,5

,30

,1

F,lags

The results of the

DNP Object Type is

DNP Object Variation is

read are placed in

Analog Input

16 Bit Analog Input

this data array.

 

 

Tells the driver to write the status byte to the data array, ignoring the value of the object being read. You can use value / time1 / time2 / flags / combo as legal values for this parameter. The default is value.

Not all objects have these sub-fields.

4.4.6.Map Descriptor Example 3 – Simple Read Extract Value & Status

In this example we extract both the value and the status using two Map Descriptors.

// Client Side Map Descriptors

 

 

 

 

 

 

 

 

 

 

Map_Descriptors

 

 

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Address

,Length

,Scan_Interval

,dnpDataType

,dnpDataVari

,dnpSubType

,dnpAsscoiate

A1

,DA_AI3

,20

,Rdbc

,Node_A

,20

,10

,5

,30

,1

,Value

,1

A2

,DA_AI3STAT

,20

,Passive

,Node_A

,20

,10

,5

,30

,1

,Flags

,1

 

 

 

 

 

 

 

 

 

 

 

 

The status data is placed into a different array from the value data.

Only one Map Descriptor need be active. The active Map Descriptor generates the poll. Both the active and passive Map Descriptors are used to process the response.

The common value for dnpAssociate ties these two Map Descriptors together and tells the driver to use them both to process the response data.

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 email: support@fieldserver.com

Page 13
Image 13
FieldServer FS-8700-47 instruction manual Map Descriptor Example 3 Simple Read Extract Value & Status