Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If/Else actions inside DA command to UCM
#1
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

Reply

#2
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

Reply

#3
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.
Reply

#4
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.
Reply

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

#6
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

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

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