Appendix a.5. bacnet state text preload, Appendix a.5.1, Method 1 – using an offset/user table – FieldServer FS-8700-16 User Manual
Page 20

FS-8700-16 BACnet PTP Serial Driver Manual
Page 20 of 32
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: [email protected]
Appendix A.5. BACnet State Text Preload
BACnet Multistate Objects have a State_Text property. This property is defined as an array of character strings representing descriptions of all possible states
of the Present_Value. The number of descriptions matches the number of states defined in the Number_Of_States property. The Present_Value, interpreted as
an integer, serves as an index into the array.
When Multistate Objects are configured on a BACnet Server it is necessary to define the State_Text property. This section illustrates how to define the
State_Text character strings and how to associate these definitions with Multistate Server Map Descriptors.
The maximum permitted length of any State_Text string is 50 characters.
Appendix A.5.1.
Method 1 – Using an Offset/User Table:
//set up a look up table
Offset_Table
Offset_Table_Name
, Table_String
, Table_Index_Value
FIRE_ALRM_TEXT
, SYSTEM READY
, 1
FIRE_ALRM_TEXT
, ALARM , 2
FIRE_ALRM_TEXT
, MAINTENANCE
, 3
FIRE_ALRM_TEXT
, OFF-LINE , 4
FIRE_ALRM_TEXT
, IN SERVICE , 5
FIRE_ALRM_TEXT
, OTHER , 6
Data_Arrays
Data_Array_Name , Data_Format , Data_Array_Length
DA_MI_01
, UINT16
, 100
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Data_Type , Object_ID , Length , State_Text_Array
CMD_MI_01
, DA_MI_01
, 0
, Passive , N1 11
, MI
, 1
, 1
, Fire_Alrm_Text
Must be a positive
integer.