Python interface homing code ?
26 Feb 2018 12:46 #106532
by bladekel
Python interface homing code ? was created 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....
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.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
26 Feb 2018 15:13 #106534
by Todd Zuercher
Replied by Todd Zuercher on topic Python interface homing code ?
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.
27 Feb 2018 06:10 #106602
by bladekel
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...
Replied by bladekel on topic Python interface homing code ?
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.066 seconds