02-03-2024 12:01 PM
I am trying to add a condition to a Mod_Button on a CmdHandler view in a subtree following the CpS documentation. However it seems not to work: the condition is ignored or always regarded as fulfilled, even if I hard code the connected variable to FALSE in TwinCAT. The parsed condition in CpS shows the "FALSE", so the parsing seems to work for all 3 subtree instances.
If I try the same on a regular CmdHandler outside a subtree it works.
Are conditions not (yet) working subtrees or might I be doing something wrong?
Solved! Go to Solution.
02-06-2024 04:25 PM
The condition feature does work in subtrees, but there is a misbehavior in the selection dialog for the Condition property in the HMI designer. When using a condition of the object that also owns the view, the Condition property should just contain the name of the condition. The dialog adds a relative path up the model tree and back down again which does not work. But you can remove this path from the property.
We have planned to fix the selection dialog in the next version.