Python interface homing code ?

More
26 Feb 2018 12:46 #106532 by bladekel
Hello to all,

I'm trying to design a custom GUI.
I had a "hal led" which signs for "all axis homed".
I examined the "Python Interface" documentation and I found a function in linuxcnc.stat attributes. That was "homed" function.

That function always returns "1" even if I didnt home the machine.

How can I use this function ?
I need a function that tells me all axes are homed....

Thanks....

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

More
26 Feb 2018 15:13 #106534 by Todd Zuercher
What does stat.axis show? if it is 0 that might. explain why stat.homed always shows 1. Stat.homed will show a 1 or 0 for each joint. If there are no joints configured, there is nothing to be unhomed. It could also be effected by other settings.

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

More
27 Feb 2018 06:10 #106602 by bladekel

Todd Zuercher wrote: What does stat.axis show? if it is 0 that might. explain why stat.homed always shows 1. Stat.homed will show a 1 or 0 for each joint. If there are no joints configured, there is nothing to be unhomed. It could also be effected by other settings.


Yeah. Thats what exactly you said.
When I checked it with stat.axis(), I saw "homed = 0" and like you said I didnt configured joints.
So it explained the problem....

Thanks dude...

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

Time to create page: 0.285 seconds
Powered by Kunena Forum