94
Sensaphone
®
ISACC Instruction Manual
INPUT
Summary:
int input(n);
int n; Input number
Description:
The input function will return the present value of an input specified by n1. When n1
is a number from 1 to 16, the return value is from the corresponding input. For n1
equals 17 to 20, the return values are the following:
17 The built in temperature sensor in degrees F.
18 The built in temperature sensor in degrees C.
19 Battery backup level in volts DC.
20 AC power, 1 = on, 0 = off.
Return value:
The input function returns the present value of an input specified by n1. This will be
the appropriate look up table value if the input is analog. If the input is a dry contact,
an open condition will return a 1, and a closed condition will return a zero.
Example:
This program will generate an alarm condition if input 12 is greater than 100. It will
also generate alarm condition 13 if AC power fails. Please note that for input 13 to
alarm as power failure, the ITYPE must be set to USER DEFINED (see ITYPE
section), and the low alarm limit set to 90.
main()
{
if (input(12) > 100)
{
alarm(12);
}
set_input(13,(input(20)*110));
}