Issue
A Programmable object must respond to a DI change in state, and then reset ready for the next change.
Product Line
Satchwell Sigma
Environment
- Programmable
- Digital states
- Status
- DI
Cause
The programmable object will monitor the state of a number of other digital objects and if they change state, then an external alarm enunciator via a digital output point, will be enabled.
To allow subsequent changes to be seen on the same point, the object value must return to zero, even if the changed state remains on after 60 seconds.
Resolution
The following object will check the state of four objects, but others can be added if required.
Object numbers 33 - 37 are the monitored objects.
Timer is set to 60 seconds, but can be set as required. (Line 110)
Alarm priority can be set as required. (Line 120)
10 XInt = 0 20 IF POINT 0|33 ON THEN XINT = XINT + 1 30 IF POINT 0|35 ON THEN XINT = XINT + 1 40 IF POINT 0|36 ON THEN XINT = XINT + 1 50 IF POINT 0|37 ON THEN XINT = XINT + 1 60 IF XINT > YINT THEN GOTO 100 70 IF TIME LEFT THEN GOTO 120 80 IF XINT = 0 THEN YINT = 0 90 RETURN FALSE "reset" 100 YINT = XINT 110 SET TIMER 60 120 ALARM 1 130 RETURN TRUE "Alarm"