Lathe "pecking" on X?

  • TheTinkeringMechanic1
  • Offline
  • Senior Member
  • Senior Member
More
02 Sep 2025 20:15 #334298 by TheTinkeringMechanic1
Lathe "pecking" on X? was created by TheTinkeringMechanic1
I have attempted programming a g-code to do a pecking action on the x-axis. Since this is a lathe it does not have a y axis and I keep getting an error. 
Is there a G-Code for pecking on a lathe?

Thanks in advance.

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

More
03 Sep 2025 11:48 #334337 by andypugh
Replied by andypugh on topic Lathe "pecking" on X?
What do you mean by "pecking"?

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

  • TheTinkeringMechanic1
  • Offline
  • Senior Member
  • Senior Member
More
03 Sep 2025 18:46 - 03 Sep 2025 18:47 #334368 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Lathe "pecking" on X?
It's also known as chip breaking in mill G-Code. G83 and G73
The cycle sets final depth (X), retract position (R), peck depth (Q), and feed rate (F) normally used for drilling process. It's also handy for breaking stainless steel instead of getting birds nests or for live lathe tooling. Since my setup utilizes a grinder, without a pecking cycle it can stall the grinder out.
Right now I have to program a "peck" cycle manually. An example of this is:
G1 X2.02 F1
G0 X2.01
G1 X2.03 F1
G0 X2.02
G1 X2.04 F1
G0 X2.03
Last edit: 03 Sep 2025 18:47 by TheTinkeringMechanic1.

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

More
04 Sep 2025 16:14 #334411 by andypugh
Replied by andypugh on topic Lathe "pecking" on X?
No, there is no built-in version of this, but I have seen demonstrations of it on Youtube.

However, it should be relatively easy to configure with LinuxCNC using external offsets.

An example of using this is in this video:

The trick is to calculate the required offset based on a non-integer factor of the spindle rotational position. 
How many lobes per rev you would need is something that might need some consideration, and might depend on the working diameter. 

The closest HAL component to what you need is probably "relief,comp" here:
github.com/andypugh/HalComps/tree/main
The following user(s) said Thank You: besriworld, TheTinkeringMechanic1

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

  • TheTinkeringMechanic1
  • Offline
  • Senior Member
  • Senior Member
More
04 Sep 2025 17:57 #334424 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Lathe "pecking" on X?
Thank you very much. I will review this information.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum