The best way to check Estop state

If you have a question about the software please ask it here.

The best way to check Estop state

Postby shad » Wed May 31, 2017 11:58 am

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!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm

Re: The best way to check Estop state

Postby shad » Wed May 31, 2017 12:54 pm

I think I am find solution. Just add 250 msec delay before start plugin main loop.
Works perfect :)
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm

Re: The best way to check Estop state

Postby cncdrive » Wed May 31, 2017 5:36 pm

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.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: The best way to check Estop state

Postby shad » Wed May 31, 2017 6:57 pm

This is a good idea too.
Thank you!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: Bing [Bot], naijin and 32 guests

cron