Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If/Else branching logic with Comfiguratior 3.1.8 and Comfort Pro
#1
Using Comfigurator 3.1.8 to program a Comfort Pro 4.17.
A response to check the security mode of comfort, then set a C-Bus group to a predetermined level appear to match all conditions as true.
Whenever I run the following response, I see the CBus group ramp 0,1,2,3 instead of setting the correct level.

If SecurityMode = SecurityOff Then
CBus RampInst 2 50 0
Else
If SecurityMode = AwayMode Then
CBus RampInst 2 50 1
Else
If SecurityMode = NightMode Then
CBus RampInst 2 50 2
Else
If SecurityMode = DayMode Then
CBus RampInst 2 50 3
EndIf
EndIf
EndIf
EndIf
Reply

#2
This also gives the same result:-

If SecurityMode = SecurityOff Then
CBus RampInst 2 50 0
EndIf
If SecurityMode = AwayMode Then
CBus RampInst 2 50 1
EndIf
If SecurityMode = NightMode Then
CBus RampInst 2 50 2
EndIf
If SecurityMode = DayMode Then
CBus RampInst 2 50 3
EndIf


I get the same error when checking the state of an output:-

If Output Ch = 0 Then
CBus RampInst 2 8 0
EndIf
If Output Ch <> 0 Then
Cbus RampInst 2 8 255
EndIf
Reply

#3
Check your firmware again, is it 4.17 or 4.17x where x is another digit?
In either case, even 4.177 was released in 2003. Branch Actions were introduced only in 4.233 so the If/Then actions that you created may not work as expected
They mey need to be coded diferently. Send the cclx file to support@cytech.biz so that we can check

By the way did you just buy this Comfort system or are you reprogramming an old system?
Reply

#4
It\'s 4.170.

It\'s quite an old system, been installed for seven or eight years.

cclx file is on the way to you.
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.