pocketing program

More
17 Mar 2026 19:44 #344428 by 858PSJ
pocketing program was created by 858PSJ
I have written a pocketing program using g-codes, it pockets triangles, rectangles, trapezoids and some unusual shapes. the attachment has a screendump of eight different ones.  The program is available as a .ngc file and runs on linuxcnc/axis version 2.6.13 on ubuntu 12.04 LTS 32 bit (using the rtai kernel to operate a Taigtool mill through a xylotec controller.)  I would like to donate this program to the site if there's any interest)  my email address is This email address is being protected from spambots. You need JavaScript enabled to view it.  
the program  is 580 lines long and includes 112 lines of sample polygons. it uses "o" codes a lot.
Attachments:
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
17 Mar 2026 21:08 #344429 by tommylight
Replied by tommylight on topic pocketing program
You can zip the program and attach it to the original post here.
Or make a new post as the editor likes to mess formatting.

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

More
18 Mar 2026 17:53 #344475 by 858PSJ
Replied by 858PSJ on topic pocketing program
here's a screenshot and a pocketingprogram

File Attachment:

File Name: polygonpoc...3-18.zip
File Size:7 KB
Attachments:

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

More
26 Mar 2026 18:51 #344793 by 858PSJ
Replied by 858PSJ on topic pocketing program
Some think that circles and ellipses are polygons as well.  So I added a ellipse pocketer subroutine  (which does circles too) to the program, and here it is, I also "sharpened up" the  vertices of the polygons a bit. See the screen dump for how well the "half ellipse" fits with the square.
Attachments:
The following user(s) said Thank You: tommylight

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

More
04 Apr 2026 12:21 #345157 by 858PSJ
Replied by 858PSJ on topic pocketing program
The attached screenshot of a 20 tooth pocket shows a larger view of the program operation.  It runs by drawing nested figures inside each other by shortening (or lengthening) each side of the figure while drawing it.  The shortening (or lengthening) values are recorded in a table as they are encountered  when the figure is first executed. A multiple of the values is used for each execution of the figure and the values remain constant for the entire pocketing operation. The table starts at memory location 100 and the operators manual says that location 31 to 5000 are "user defined" so we can have lots of sides. Notice that the pocketing operation evolves such that the shown 40 sided figure produces a circular (or 20 sided) area that needs to be Pocketed to complete the entire pocket operation. I doubt that commercially available packages (eg autocad) can duplicate this activity easily since they would require an exhausting specification of each nested figure before executing it.  G-code's ability to process subroutines allows us to have the figure execute itself here for pocketing purposes. It also gives us the ability to hack individual sides and thereby make really ugly figures. 
Attachments:

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

Time to create page: 0.155 seconds
Powered by Kunena Forum