FieldServer FS-8700-82 instruction manual Map Descriptor Example 4 Write Day of Week DOW or Time

Page 12

FS-8700-82 Carrier DataLink

Page 12 of 31

4.4.7.Map Descriptor Example 4 – Write Day of Week (DOW) or Time

This example illustrates how to write values to an occupancy table. Occupancy tables contain amongst other variables, Day of Week (DOW) settings and time settings. The driver needs to be configured so that it formats these values correctly.

When the DOW write occurs, the driver extracts the value from the Data Array and converts it to a binary string whose bit value is the binary representation of the Data Array value, e.g. DA value = 131 DOW string = 10000011 e.g. DA value = 1 DOW string = 00000001

Occupancy’s are set using a BCD value. Write the value decimal equivalent of 01111100 (62 decimal) to signify an occupancy of Monday to Friday. The bit string starts on Sunday, runs through Monday to Saturday and the final bit is for holidays.

When a time write occurs the driver extracts the value from the Data Array and coverts the value to a time string. The value extracted from the DA is considered to be the number of minutes from midnight, e.g. DA value = 1 - Time = 00:01; DA value = 959 - Time=15:59

Map_Descriptors

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Map_Descriptor_Name,

Scan_interval,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name,

Table_Name,

Field_Name ,

Length,

 

Data_Type

MapDesc13

,

1.0s

,

TABLE_OCCPC64S,

100

,

wrbx

,

Node_A

,

OCCDEFCS OCCPC64S,

DOW3

,

1

 

,

Occupancy_DOW

MapDesc14

,

1.0s

,

TABLE_OCCPC64S,

101

,

wrbx

,

Node_A

,

OCCDEFCS OCCPC64S,

UNOCC3

,

1

,

 

Occupancy_Time

The Data type tells the driver how to format the value for the write.

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 12
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 Configuring the FieldServer as a Carrier DataLink Client Data Arrays/DescriptorsSection Title Column Title Function Legal ValuesClient Side Connection Descriptions FS-8700-82 Carrier DataLink ExampleNone SecondClient Side Node Descriptors Column Function Legal Values TitleRDBC, WRBC, Wrbx Driver Related Map Descriptor Parameters Timing ParametersTZONE1’ ‘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 Driver Limitations and Exclusions As a clientAs a server 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. Map Descriptor Length Explained Appendix A.3.1. Client Reads a TableAppendix A.3.2. Client reads a variable 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.3. Time Values Appendix A.4.4. Numeric ValuesAppendix A.4.5. Occupancy Strings / Values Appendix A.5. Timing ConsiderationsAppendix B. Carrier DataLink Device Error Response Message Explanation ActionNack Appendix C. Driver Notes Appendix C.1. Driver Stats DacarrierstatsOffset Description Appendix D. Driver Error Messages Error Message ExplanationEverything FS-8700-82 Carrier DataLink Error Message Explanation This page Intentionally Left Blank