Micro Basic Scripting

6 years 1 month ago #29529753 by rajeshwar
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

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29529754 by roboteq
Replied by roboteq on topic Micro Basic Scripting
to read the amps, use getvalue(_A, 1). The value will be amps x 10. So 50 is 5.0A

Please Log in or Create an account to join the conversation.

Time to create page: 0.166 seconds