I have a new problem, how should I switch home mode

More
4 years 11 months ago #227613 by yi2580
Hello, everyone, I have a new problem. Now I want to redefine a home all. For example, let the Z axis return to zero first and then the XY axis. However, after I customized the keys, I wrote some Python code, but I can't switch the home state like pyqt. I don't know what to do. I hope you can have a way to help me

Please Log in to join the conversation.

More
4 years 11 months ago #227617 by yi2580
Linuxcnc will give me such an error 'must be in joint mode to home'
’

Please Log in to join the conversation.

More
4 years 11 months ago #227622 by cmorley
You will not yet good responses if you make us guess too much.

Show some code.
Quote the exact error message.
Dont ask the same question in multiple topics.

Please Log in to join the conversation.

More
4 years 11 months ago #227627 by yi2580
Hello, I want to reset the Z axis first and then other axes, so I need to define the function of home all myself. However, when these axes are reset, the status of each axis will become 'homed 1'. Then I move the axis and use my own program to home again, and an error 'must be in joint mode to home' will occur. I don't know how to change the home state to make my home all program work. Or use my home all when home is 1

Attachment not found

Please Log in to join the conversation.

More
4 years 11 months ago #227656 by cmorley
Do you know you can set home-all sequence from the INI?

You could also use Qtvcp's ACTION library to take of the details for you or as a reference.

But I would guess that you are missing:
self.c.teleop_enable(False)

Please Log in to join the conversation.

More
4 years 11 months ago #227867 by yi2580
I tried 'self. C. teleop' before home_ 'enable (true)' but it's still the previous error report. I think I need to reset the z-axis completely before resetting other axes. I don't know where the action library of qtvcp is. Can you tell me? Thank you very much.

Please Log in to join the conversation.

More
4 years 11 months ago #227874 by cmorley
Thank you for showing code.

Are you using qtvcp or gladevcp or something else?

Please Log in to join the conversation.

More
4 years 11 months ago #227876 by yi2580
I use qtvcp, but I also write some of my own Python programs in home

Please Log in to join the conversation.

More
4 years 11 months ago #227903 by cmorley

Please Log in to join the conversation.

More
4 years 11 months ago #227968 by yi2580
OK, thank you very much. It's not backward. It's very helpful to me. Thank you again

Please Log in to join the conversation.

Time to create page: 0.133 seconds
Powered by Kunena Forum