90
Sensaphone
®
ISACC Instruction Manual
Example: This program will turn on the buzzer (output 9) whenever any alarm occurs. It
will turn the buzzer off when the alarm is acknowledged.
main()
{
if (exists==1)
{
output(9,1);
}
else
{
output(9,0);
}
}
UPTIME - This variable contains the number of seconds since the last power up or reset.
This value starts at zero when the unit is powered up or reset, and will increase in increments
of one up to 3600 seconds. After 3600 seconds (1 hour), it will continue to have a value of
3600.
EXAMPLE - This program will keep output 2 off for the first 30 seconds of power up, and
controlled by input 1 after that.
main()
{
if ((input(1)>88)&&(uptime>30))
{
output(2,1);
}
else
{
output(2,0);
}
}