________________________________ From: Sebastian Kuzminsky <[email protected]> Sent: December 10, 2018 8:11 PM To: EMC developers Subject: Re: [Emc-developers] how to catch errors with waitcomplete command in python
Use wait_complete() to wait for the probe move to finish, then look at the probe result parameters (#5070 and #5061-#5069) to see the result. Parameter info here: http://linuxcnc.org/docs/2.7/html/gcode/overview.html#sub:numbered-parameters Unfortunately it's a bit awkward to read interpreter parameters anywhere outside of the interpreter itself... In python you could mdi ('(debug, probe result is: #5070)'), then poll the linuxcnc.error_channe() and look at the result there. On Sat, Dec 8, 2018 at 8:41 AM Chris Morley <[email protected]> wrote: > > I am working on some probing routines in qtvcp. > I am calling an MDI command to probe and then using the command, > wait_complete() > Thanks for thinking on this Seb. Unfortunately I am trying to avoid polling the error channel. It would be very handy if waitcomplete could tell you the status of the command it waited for. Actual the whole error handling concept is starting to show it's weakness. Chris M _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
