I want to implement over current protection through microbasic scripting. The actuator should stop as soon as the current crosses a threshold level.
My scripting looks like this.
top
current1 = getconfig(_A,1)
if current1 > 50
then
setcommand(_MSTOP,1)
wait(50)
goto top
But the actuator is not stopping resulting in tripping of circuit breaker. pls advice.
Thanks