Map descriptor example 2 – bit storage, 5 map descriptor example 2 – bit storage – FieldServer Gamewell FCI E3 Series User Manual
Page 10

FS-8700-132 Gamewell FCI-E3 Driver Manual
Page 10 of 20
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: [email protected]
5.5
Map Descriptor Example 2 – Bit Storage
This example defines storage location for Relay Point events. The example would work for all other point types. In the example, both primary and secondary storage Data
Arrays have been specified. The driver stores index values in the primary array. Each new event for a particular relay will overwrite the value stored previously. In the Bit
Array, the driver sets the bit corresponding to the event, leaving other bits unchanged – thus the secondary storage can be used to determine if more than one event is
active at a time.
// Client Side Map Descriptors
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , DA_Bit_Name , Function
, Node_Name , Event Type , Point Type , Relay/Loop/Zone Number , Address , Length , Clear_on_Reset
RelayData
, DA_RELAY
, 0
, DB_Relay
, Passive_Client , Panel-01
, Any
, Relay
, 1
, -
, 4
, Yes
Map Descriptors for
storing Relay, Loop, Zone
and Panel do not need the
address specified.
Data_Array_Name is where the
primary DA is specified. Index
values are stored here
DA_Bit_Name is where secondary storage is
defined. Events are stored by setting appropriate
bits.
Remember that 2 elements per Relay, Module,
Sensor, Loop are used.