Hi,
I have trouble with creating a case expression. Simply I want to assign a script in a symbol to change its coordinates to begin with(starting with y position expression binded) based in Tags variation(integers or Bools) read from the PLC. So my current expression looks like :
case({this.position.y},
1,if({[default]Tags/MOT/R0198} > 0 ,200,0),
2,if({[default]Tags/MOT/R0199} > 0 ,300,0),
0)
I want to assign up to 500 tags lets say. Would that be efficient first of all?
The error I am getting isCycleErrorDetected
at the moment which I believe I am missing something on the syntax?
So I want to say if this Tag is >0 write to y(binded expression) 200, otherwise go to 0 position.
Then I would like to do the same for x positions as well as angles(in case I want my component to have an angle based on the position it needs to go, so I could also play with visibility and use 1 symbol instead of 500 lets say symbols with alocated tags read from the PLC.
Would this be an efficient way of automating repetitive work or would I utilise too much CPU let’s say.
Any thoughts?
Thank you in advance