On 14 September 2015 at 02:56, Tom Easterday <tom-...@bgp.nu> wrote: > Thanks Andy that works. John Thornton also suggested the same thing on the > IRC... Is there a document that describes the possible values for a given > attribute returned by the Python interface? The last value in the string of > codes returned by Linuxcnc.stat.gcodes is the state of G7/G8. In debugging > we saw 0, 70, and 80 as values returned . But we don't really know what > (other?) expected values are...are these documented somewhere?
I don't know for sure, but I suspect that the stat attribute returns an unordered list of active G-codes. I wouldn't rely on looking in a particular position, you probably need to look at all the values to see if any are "80". I imagine that this is only a single expression in Python. <Google> if 70 in s.gcodes: -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users