- Posts: 66
- Thank you received: 0
Python interface homing code ?
8 years 8 months ago #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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
8 years 8 months ago #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 to join the conversation.
8 years 8 months ago #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 ?
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 to join the conversation.
Time to create page: 0.076 seconds
