FieldServer FS-8700-82 instruction manual Map Descriptor Example 1 Read a Table

Page 10

FS-8700-82 Carrier DataLink

Page 10 of 31

4.4.4.Map Descriptor Example 1 – Read a Table

This example illustrates how to read the entire contents of a table called ‘DISPLAY’. The Map Descriptor is connected to a node using the node name and a node definition provides a connection to a port. Thus this Map Descriptor is connected to a port via its node. The FieldServer will use that port to send this poll which will be generated every 5 seconds.

The value extracted from the response will be stored in the array called DA_DISPLAY. Ensure that it is suitable format for storing a number – FLOAT is suggested. The driver stores the value of the 1st element at offset 1; the 2nd element at offset 2… The number of table elements whose values have been successfully stored at is stored at offset zero.

//Client Side Map Descriptors

 

 

 

 

 

 

 

 

 

 

 

 

Map Descriptors

 

 

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name,

Length,

Scan_Interval,

Table_Name,

Field_Name

Read_Table_Md

,

DA_DISPLAY ,

0

,

rdbc ,

FAN01 ,

100 ,

5.0s

,

DISPLAY ,

EVERYTHING

Responses are stored in this data array. Table element x gets stored at offset x, where x is a non- zero integer.

Offset zero is used by the driver to report how many values were stored.

The driver generates a read poll continuously.

The node name connects the Map Descriptor to a node definition.

The length is set to a number big enough to contain all the table’s variables.

The name of the table to be read.

By using the keyword ‘EVERYTHING’ you are telling the driver to read the whole table.

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com Tel: (408) 262-2299 Fax: (408) 262-9042 Toll_Free: 888-509-1970 email: support@fieldserver.com

Image 10
Contents FS-8700-82 Carrier DataLink Table of Contents Carrier DataLink Description FS-8700-82 Carrier DataLinkProvided by Suppler of 3 rd Party Equipment FieldServer TechnologiesHardware Connections Section Title Configuring the FieldServer as a Carrier DataLink ClientData Arrays/Descriptors Column Title Function Legal ValuesNone Client Side Connection DescriptionsFS-8700-82 Carrier DataLink Example SecondColumn Function Legal Values Title Client Side Node DescriptorsRDBC, WRBC, Wrbx TZONE1’ Driver Related Map Descriptor ParametersTiming Parameters ‘EVERYTHING’Map Descriptor Example 1 Read a Table Map Descriptor Example 2 Read a Variable Map Descriptor Example 3 Write a VariableMap Descriptor Example 4 Write Day of Week DOW or Time Configuring the FieldServer as a Carrier DataLink Server Server Side Connection DescriptorsServer Side Nodes Driver Specific Map Descriptor Parameters Timing Parameters Map Descriptor Example As a server Driver Limitations and ExclusionsAs a client GeneralAppendix A. Advanced Topics Appendix A.1. Table Names Equipment Type Table NameFS-8700-82 Carrier DataLink Equipment Type Table Name Dadump DEV 02 Display Appendix A.3.2. Client reads a variable Appendix A.3. Map Descriptor Length ExplainedAppendix A.3.1. Client Reads a Table Appendix A.3.3. Client writes a variableAppendix A.4.2. Extending the List of Discrete State Words FS-8700-82 Carrier DataLinkPage 24Appendix A.4.5. Occupancy Strings / Values Appendix A.4.3. Time ValuesAppendix A.4.4. Numeric Values Appendix A.5. Timing ConsiderationsMessage Explanation Action Appendix B. Carrier DataLink Device Error ResponseNack Appendix C. Driver Notes Appendix C.1. Driver Stats DacarrierstatsOffset Description Error Message Explanation Appendix D. Driver Error MessagesEverything FS-8700-82 Carrier DataLink Error Message Explanation This page Intentionally Left Blank