Map descriptor example 5 (specific device) – Sierra Monitor Company FS-8700-48 User Manual

Page 18

Advertising
background image

FS-8700-48 Fike Cheetah Manual

Page 19 of 37

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.4.10 Map Descriptor Example 5 (Specific Device)

In this example, a Map Descriptor has been defined for the storage of the state of one specific device. (Device 20)

// Client Side Map Descriptors

Map Descriptors

Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Cheet_Zone , Cheet_DT , Cheet_Device , Cheet_Loop , Length
Device20_L1_Alm

, DA_DI1

, 20

, Passive , Node_A

, None

, Alarm

, 20

, 1

, 256









5.4.11 Map Descriptor Example 6 - Device States as a Numeric Value

In this example the normal or abnormal state of all the devices of loops 1-4 will be stored by this Map Descriptor.

// Client Side Map Descriptors

Map Descriptors

Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Cheet_Zone , Cheeet_Loop , Cheet_Device Cheet_DT , Length
CHEETAH23

, DEV_L1_STATE

, 0

, Passive , Panel_01

, None

, 1

, All

, Any

, 256

CHEETAH24

, DEV_L2_STATE

, 0

, Passive , Panel_01

, None

, 2

, All

, Any

, 256

CHEETAH25

, DEV_L3_STATE

, 0

, Passive , Panel_01

, None

, 3

, All

, Any

, 256

CHEETAH26

, DEV_L4_STATE

, 0

, Passive , Panel_01

, None

, 4

, All

, Any

, 256




Each Map Descriptor in this example reads
data for one device only. Thus each Map
Descriptor must point to a different Data
Array or as is the case in this example, to a
different location in the same Data Array.

They are passive
because this driver is
a data consumer.

When storing device
data the Cheet_Zone
must be set to None.

The driver is node independent; however
Node_A ties this Map Descriptor to a Node
Descriptor which thus connects the Map
Descriptor to a protocol and to a port.

The alarm
state is being
stored.

The Device number
is 20.

The device
belongs to loop1

The Any keyword tells the driver to store the device state as a number
The value of the number indicates the device state. The number is a binary
number and its value is determined by which bits are set.
Bit 0: Alarm
Bit 1: Pre-Alarm
Bit 2: Trouble

The array’s format must be suitable for
storing the state number which can range
from 0-15.
Thus BYTE, UINT16, UINT32 and FLOAT are
suitable formats for the Data Array.

Advertising