Getzonestate, Getzonestatus, Xcmd's & xfcn's g – Det-Tronics Mac - w/Supercard User Manual
Page 72

XCMD's & XFCN's
G
ET
Z
ONE
S
TATE
G
ET
Z
ONE
S
TATUS
4.8
This command will return the changed bit of the zone requested. Zones are num-
bered 1-256.
GetZoneState(3)
Example:
on openCard
if GetZoneState(3) then
beep
end if
end openCard
If the value of the zone status has changed, then this bit will be set. If the bit is set
since the last time this call was made (for this zone) the status has changed.
This command gets the status (0-4) of any single zone. The zone that the operator
requests the state of must be configured in the “Zone Configuration” window of the
EagleVision™ application. Zones are numbered 1-256.
0 = Normal
(no alarm or fault)
lowest
1 = Fault
(com 1 or 2 fault, sensor fault)
2 = Alarm
(alarm 1 or 2)
3 = New Fault
(a new fault)
4 = New Alarm
(a new alarm)
highest
The conditions work off priorities. Conditions 3 and 4 do not clear until the opera-
tor acknowledges the condition. Conditions 1 and 2 are self clearing. If an alarm
and a fault co-exist, the status will be 2=Alarm.
Example:
New alarm = condition 4
User acknowledges = condition 2
Alarm conditions is corrected = condition 0
GetZoneStatus(zoneNumber)
Example:
on idle
put GetZoneStatus(3) into theValue
end idle
on idle
if GetZoneStatus(3) = 4 then
— your command for new alarm
end idle
95-8434