Z axis not behaving with g code

More
26 Mar 2022 16:00 #238405 by Jalapeno56
I have a homemade plasma machine running with:
Debian 11 5.10.0-10-rt-amd64 kernel
Linuxcnc 2.9.0 with QtPlasmaC v1.221.144
7I76e mesa card & THCAD-10
When loading in a g code file to perform a test cut, I get an added line from post-processing (I assume): g53goz[#<_ini[axis_z]max_limit>*1-0.197] (Z just below max height).  This g053 tells the z axis to move up, not down.  It is going past my minimum limit and hitting the limit switch every time. I cannot find where to edit this added line of g code.  I have also followed all of the instructions here: linuxcnc.org/docs/devel/html/plasma/qtpl...c.html#qt_z-settings
There is probably something simple I am missing. Any help is much appreciated!
Hal and ini files attached
 
Attachments:

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

More
26 Mar 2022 17:49 #238412 by snowgoer540
Moved this to PlasmaC as it will get more attention there.

Im out right now so I can’t look at your ini file, I will try to remember to when I get back home, but that line of code actually moves your z axis to 5mm (.197”) below whatever Z max limit is set at.  If you are too low it will bring the axis up, and if you’re closer than 5mm to z axis max it will lower the axis.  It’s there to keep the z axis away from soft limits and give some buffer during eoffset moves, as we as to retract the torch before starting the x y moves… you don’t want to remove it.  

At any rate, that tells me that there is something wrong with your config file, just not sure what yet.  
The following user(s) said Thank You: Jalapeno56

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

More
26 Mar 2022 17:58 #238413 by Jalapeno56
After reading your reply I noticed that I said "It is going past my minimum limit and hitting the limit switch every time."
It should read: It is going past my MAXIMUM limit and hitting the limit switch every time.

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

More
26 Mar 2022 18:13 #238415 by rodw
If your Z axis is set right it should never hit your limit switch as it should be outside of soft limits.
What happens if you reverse the sign of your HOME_OFFSET?

Just looking at my config, its similar but has a positive HOME_OFFSET
The following user(s) said Thank You: Jalapeno56

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

More
26 Mar 2022 18:37 #238416 by Jalapeno56
That did it!
So, the HOME_OFFSET is a distance value and not a machine coordinate.

Thank you both for your input!!
The following user(s) said Thank You: rodw

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

More
26 Mar 2022 19:17 #238418 by snowgoer540
Glad it's fixed!  

Unsolicited side note: you might consider updating, quite a bit has changed since v1.221.144.
The following user(s) said Thank You: Jalapeno56

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

More
26 Mar 2022 23:35 #238432 by rodw

That did it!
So, the HOME_OFFSET is a distance value and not a machine coordinate.
 

Great you sorted it.
Yes, coordinates do not exist until the machine is homed.
If you had jogged the axis even without qtplasmac, you would have got a limit error. So not a QTplasmac issue.

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

Moderators: snowgoer540
Time to create page: 0.157 seconds
Powered by Kunena Forum