Jump to content

dstern71

Members
  • Posts

    2
  • Joined

  • Last visited

dstern71's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. Thanks for your response, sorry for the confusion. The “B†programs are intended to be a State Machine. Flowstate is a state variable. Int_1, an integer variable, and is intended as a flag to indicate that the timer has timed out and there is a real flow event, not a nuisance trip (a sustained 5 second signal not a momentary one) and therefore want to transition to state 2.
  2. I’ve installed a flow sensor and am getting nuisance trips, probably due to air in the line or pressure fluctuations. I am attempting to write a program that will ignore the nuisance trips by having the ISY only react to signals sustained for more than 5 seconds. The programs are below (I change the input to a light switch for test purposes). Upon execution, when I turn kitchen light on, the program gets stuck at $Flowstate=1 and $Int_1=1. Any help is appreciated. Program Flow B0 If $Flowstate is 0 Then $Int_1 = 0 Program Flow B1 If $Flowstate is 1 Then Wait 5 seconds $Int_1 = 1 Program Flow B2 If $Flowstate is 2 Then Send Notification to 'Dan - Text to phone' content 'Unexpected Water Flow' $Flowstate = 3 Program Flow C0 If $Flowstate is 0 And Status '17.C9.E9.1 Kitchen Ceiling' is On Then $Flowstate = 1 Program Flow C1 If $Int_1 is 1 Then $Flowstate = 2 Program Flow C2 If $Flowstate is 3 And Status '17.C9.E9.1 Kitchen Ceiling' is Off Then $Flowstate Init To 0
×
×
  • Create New...