Phonetics 5000 Manuale Utente

Pagina di 143
100
Sensaphone
®
 ISACC Instruction Manual
RESET
Summary:
int reset(n);
int n;
Input number
Description:
The reset function resets the values automatically maintained by the system for an
input specified by n.  If the input is analog, reset resets the max and min values.  If the
input is a pulse counter, reset sets the pulse count to zero.  If the input is a dry contact,
reset has no effect.
Return value:
The reset function always returns a zero.
Example:
If input 7 is a pulse counting input, this program will initiate an alarm 7 condition if
input 7 is greater than 100, and reset the counter to zero.
main()
  {
  if (input(7) > 100)
    {
    reset(7);
    alarm(7);
    }
  }