Issue
Programmable Points using the + add function to totalise alarms
Alarm Integrator
10 XFlo = POINT 0|14 ALARM + POINT 0|15 ALARM + POINT 0|16 ALARM
20 YFlo = POINT 0|17 ALARM + POINT 0|18 ALARM + POINT 0|19 ALARM
30 RETURN VIA TEXT 91 VALUE XFlo + YFlo
Environment
BAS
Sigma
B2S Upgrade
Alarm Integrator
Cause
The following point was used in BAS to calculate the number of alarms.
10 XFlo = POINT 0|14 ALARM + POINT 0|15 ALARM + POINT 0|16 ALARM
20 YFlo = POINT 0|17 ALARM + POINT 0|18 ALARM + POINT 0|19 ALARM
30 RETURN VIA TEXT 91 VALUE XFlo + YFlo
Resolution
The point compiles and runs in the prog point editor however the point in does not work in the Sigma controller.
The programmable point will require re-writing.
Depending upon the number of alarm points that were originally monitored, more than 1 point may require writing as there will be insufficient tokens.
10 XFLO = 0.0
20 IF POINT 0|14 ALARM THEN XFLO=XFLO+1.0
30 IF POINT 0|15 ALARM THEN XFLO=XFLO+1.0
40 IF POINT 0|16 ALARM THEN XFLO=XFLO+1.0
50 IF POINT 0|17 ALARM THEN XFLO=XFLO+1.0
60 IF POINT 0|18 ALARM THEN XFLO=XFLO+1.0
70 IF POINT 0|19 ALARM THEN XFLO=XFLO+1.0
80 RETURN VIA TEXT 91 VALUE XFLO
If more than 1 point is required to be written, then the final point required to combine all the alarm totals and is written as follows:
10 XFLO=(POINT 0|a + POINT 0|b + ......)
20 RETURN VIA TEXT 91 VALUE XFLO