98
Sensaphone® ISACC Instruction Manual
OUT_SPEC
Summary:
int out_spec(n);
int n; Input number
Description:
The out_spec function checks if the value of input n is outside of the high and low
alarm limits. This is without regard to alarm processing, recognition time, acknowl-
edged status, dialout selection, and dialout enabling.
Return value:
The out_spec function will return a zero if the input is within limits, and will return a
nonzero result if it is outside of the limits.
Example:
This program will set output 9, the onboard buzzer, on if input 5 is closed. It will set
output 9 off when input 5 opens again. Input 5 is defined as a normally open input.
main()
{
if (out_spec(5)!=0)
{
output(9,1);
}
}
PUTNUM
Summary:
int putnum(n);
int n; Value
Description:
The putnum function will write the value of n to the local RS232 port.
Return value:
The putnum function always returns a zero.
Example:
This program will send the value of input 9 to the RS232 port when it is greater than
100.
main()
{
if (input(9) > 100)
{
putnum(input(9));
}
}
NOTE: PUTNUM does not send data to the modem port.