Page 1 of 1

The best way to check Estop state

PostPosted: Wed May 31, 2017 11:58 am
by shad
Hello Balazs!
My plugin all time check current Estop state of the UCCNC using UC.GetLED(25) function. But any time on the UCCNC start up this function return incorrect value (UCCNC in the RESET state, but function return false. It's can be short time on start, but for me this is important because my controller go out from reset state and it's not good, especially after then first power up).
Is it possible to check current UCCNC state not from screen LED? May be directly from kernel using for example GetControllerState() function.
Thank you!

Re: The best way to check Estop state

PostPosted: Wed May 31, 2017 12:54 pm
by shad
I think I am find solution. Just add 250 msec delay before start plugin main loop.
Works perfect :)

Re: The best way to check Estop state

PostPosted: Wed May 31, 2017 5:36 pm
by cncdrive
Hi Andrew,

What about waiting for the e-stop LED to go active before doing things in your plugin?
I mean when the UCCNC starts to run and starts your plugin then start reading the LED code 25. and only start doing things when that LED first becomes active.

Re: The best way to check Estop state

PostPosted: Wed May 31, 2017 6:57 pm
by shad
This is a good idea too.
Thank you!