This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== GetAlarmInfo ==== Return the current information about the alarm === Description === <code>GetAlarmInfo( alarmno, mode )</code> Fetch the given information about the current alarm state. === Parameters === | ''alarmno'' | The alarm number | | ''mode'' | One of the modes below | === mode parameter, one of: === | ''AL_STATE'' | The alarm state (1=in alarm, 0=not in alarm) | | ''AL_HOLDOFF'' | The remaining time on the holdoff timer (seconds x10, so 100 = 10s) | | ''AL_ALARMHOLDOFF'' | The alarm holdoff setting (seconds x10, so 100 = 10s) | | ''AL_RESTOREHOLDOFF'' | The restore holdoff setting (seconds x10, so 100 = 10s) | | ''AL_ISALARM'' | Returns 1 if the alarm condition is true. Otherwise 0 | | ''AL_ISRESTORE'' | Return 1 if the restore condition is true. Otherwise 0 | | ''AL_RETRIGCOUNT'' | Number of times the alarm has be re-triggered | | ''AL_RETRIGDELAY'' | Time remaining on the alarm retrigger delay (seconds x10, so 100 = 10s) | | ''AL_RETRIGCOUNTSET'' | Retrigger count configured | | ''AL_RETRIGDELAYSET'' | Retrigger delay configured (seconds x10, so 100 = 10s) | === Return value === Returns the requested information based on the mode parameter. === Example usage === <code javascript> new ds = GetAlarmInfo(10, AL_HOLDOFF); // ds is the number of 10th of seconds remaining on the holdoff </code> ezeio2/scriptref/getalarminfo.txt Last modified: 2020-10-08 23:21by andreh Log In