Ok I suppose I’m cursed by runScript. I always have trouble to make it work.
I’m calling this function in a script and it’s working fine:
val = TagScript.Downtime.ScadaStateToDowntimeReason(600, 10, ‘Winder’)
Now I try to call the same script in an expression tag and I cannot make it work. Here the expression:
… and I get Error_ExpressionEval.
Can someone help me please?