Hi, when testing via the debugger and then applying a breakpoint, the code is running correctly and the code to send an SMS or email for an alarm is skipped.
However, during testing, in reality, an SMS / email is still sent when this should not be allowed.
With tag AL_Inhibit is a PLC tag witch inhibits the alarm to be sent or not.
MOVED TO STAFF NOTE (201.5 KB)
ProcessAlarm: Onerror "goto EndCount" If (AL_Inhibit@ = 0) Then b% = Getsys Prg, "NBTAGS" b% = b% - 1 REM index gaat van 0 tot NBTAGS-1 For i%=0 To b% ONALARM -i%, "GOSUB SmsAlarm" Next i% EndIF EndCount: Onerror "" END