Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register
Comfort Automation/ Security System Forums > Software Applications > Comfigurator > Comfigurator 3.x Old Versions (Archive) > If/Else branching logic with Comfiguratior 3.1.8 and Comfort Pro

If/Else branching logic with Comfiguratior 3.1.8 and Comfort Pro
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Sunday Apr 18th, 2010 01:23 pm
   PM  Quote  Reply 
1st Post
vworp
Member
 

Joined: Thursday Dec 24th, 2009
Location:  
Posts: 11
Status: 
Offline

  back to top

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

Last edited on Sunday Apr 18th, 2010 01:24 pm by vworp



 Posted: Sunday Apr 18th, 2010 04:26 pm
   PM  Quote  Reply 
2nd Post
vworp
Member
 

Joined: Thursday Dec 24th, 2009
Location:  
Posts: 11
Status: 
Offline

  back to top

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



 Posted: Monday Apr 19th, 2010 01:14 am
   PM  Quote  Reply 
3rd Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 1200
Status: 
Offline

  back to top

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?



 Posted: Monday Apr 19th, 2010 05:21 pm
   PM  Quote  Reply 
4th Post
vworp
Member
 

Joined: Thursday Dec 24th, 2009
Location:  
Posts: 11
Status: 
Offline

  back to top

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.



 Current time is 06:22 pm
Comfort Automation/ Security System Forums > Software Applications > Comfigurator > Comfigurator 3.x Old Versions (Archive) > If/Else branching logic with Comfiguratior 3.1.8 and Comfort Pro
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems