Resetting A-axis

More
03 May 2025 11:20 #327592 by dannym
Resetting A-axis was created by dannym
I did some manual G-code to use a 4th axis rotary basically like a lathe.  The A axis doesn't have a homing switch.  It advances a specified number of turns as the X and Y does its thing.  

Part gets changed out, repeat.  

What's the correct G-code to reset the A axis?  Numerically, it's spooled up like 1000 turns in one direction.  Moves aren't relative and I don't need the thing to unspool 1000 turns to get back to the absolute A-axis value the next G-code run will start at.

 

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

More
03 May 2025 11:30 #327593 by andypugh

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

More
18 May 2025 06:28 #328667 by dannym
Replied by dannym on topic Resetting A-axis
I tried G10 L20 P0 A0

This doesn't work. It's resetting the work coords to 0 so the G-code works at first, but continues incrementing A0 indefinitely in machine coords. After about 10 runs, the G-code faulted mid-run, says the next command would move joint 3 past machine limits.

At that point, A has reached 9800 or so, ini limited A to 10,000. I can put in a larger number. but we're just kicking this can down the road.

Can I reset the machine coord value, or is there a way to say the A axis has no limits on how many times it can turn?

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

More
18 May 2025 07:04 - 18 May 2025 07:05 #328668 by Aciera
Replied by Aciera on topic Resetting A-axis
Try removing the LIMIT entries from the JOINT_n sections. That should set the value to +/- 1e99 which no machine will ever reach.


 
linuxcnc.org/docs/2.8/html/config/ini-co...t__lt_num_gt_section

 
Attachments:
Last edit: 18 May 2025 07:05 by Aciera.

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

Time to create page: 0.140 seconds
Powered by Kunena Forum