Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

If/Else actions inside DA command to UCM
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Wednesday Mar 19th, 2008 12:40 pm
   PM  Quote  Reply 
1st Post
Warby
Member
 

Joined: Thursday Aug 2nd, 2007
Location: United Kingdom
Posts: 101
Status: 
Offline

  back to top

I am trying to test the following response and every time it does both actions.  Immersion off is Outputs 1 and 2 Off.  In the moniter window it turns them both on then both off straight away. I am setting/Clearing the flag using a response. i also tried using to IF statements one for flag on the other for flag off with the same result. Am i missing sometrhing simple?

If Flag Immersion <> 0 Then
    Output ImmersionOn-Off1 On
    Output ImmersionBoost On
Else
    Do ImmersionOff [Immersion Off]
End If



 Posted: Wednesday Mar 19th, 2008 07:11 pm
   PM  Quote  Reply 
2nd Post
admin
Administrator


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

  back to top

I cannoty see anything wrong with the response, but can you send the ccl file to support@cytech.biz ? There may be something else which is switching off yje outputs



 Posted: Monday Mar 24th, 2008 04:07 am
   PM  Quote  Reply 
3rd Post
hendy
Cytech


Joined: Wednesday Sep 19th, 2007
Location: Singapore
Posts: 221
Status: 
Offline

  back to top

In Configuration > Modules and Settings, tick "Use Branch Actions". This determines whether branch actions will be used to implement If/Then/Else statements. By default this has been ticked to enable the feature but somehow in your ccl file it is unticked.



 Posted: Monday Mar 24th, 2008 05:26 am
   PM  Quote  Reply 
4th Post
hendy
Cytech


Joined: Wednesday Sep 19th, 2007
Location: Singapore
Posts: 221
Status: 
Offline

  back to top

Your immersion response is working under normal condition i.e. will still be triggerred by time programs but for some reasons if you didn't tick the "Use Branch Actions" and execute the response directly from comfigurator, it seems to ignore If/Else statements and execute outputs on and off consecutively.



 Posted: Tuesday Mar 25th, 2008 10:26 am
   PM  Quote  Reply 
5th Post
Warby
Member
 

Joined: Thursday Aug 2nd, 2007
Location: United Kingdom
Posts: 101
Status: 
Offline

  back to top

Thanks that is now working fine, New it would be something simple!!



 Posted: Tuesday Mar 25th, 2008 10:55 am
   PM  Quote  Reply 
6th Post
admin
Administrator


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

  back to top

More info on this issue;
The SKIP action does not work in the DA command. Skip actions were the old way of skipping past a group of actions until a Marker action. These were replaced by Branch Actions. Branch actions are used omly when the box "Use Branch Actions" is checked. For old Comfort firmware, ie Comfort I, branch actions are noto implemented so the box should be unchecked. Comfoort II systems should leave the box checked



 Current time is 02:22 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems