Bolt Hole Circle
- Askjerry
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 308
- Thank you received: 36
07 Nov 2015 08:44 - 07 Nov 2015 08:51 #64942
by Askjerry
Bolt Hole Circle was created by Askjerry
Okay... that makes sense... I was trying to implement a BOLT HOLE CIRCLE routine in my pyVCP panel... I had created a PECK DRILL panel and it worked great.
So... it looks like I need to find out IF LinuxCNC has a G-Code assigned for a BOLT HOLE CIRCLE... if not... then I'll have to look at writing a routine.
(I'll start searching the forum...)
User inputs that will be required from the panel... variable names taken from G83 and G70 codes.
Re: G70 Command
J - Offset.......................Preset to ZERO - Perform around last position.
R - Preset.....................Preset distance above part. (Using 0.1 inch)
Z - Depth......................pyvcp.bolt-z - How deep to drill
Q - Pass per cycle......pyvcp.bolt-q - How much deeper each pass.
F - Feed Rate..............pyvcp.bolt-f - How fast to move.
S - Spindle Speed......pyvcp.bolt-s - How many RPM.
I - Radius......................pyvcp.bolt-i - How far off from starting point.
L - Holes.......................pyvcp.bolt-l - How many holes to make.
Hopefully I can pull that off.
--> Ok... no useful results found... so I'll write a routine... I have some ideas. (Using G10 L2 and some math...)
So... it looks like I need to find out IF LinuxCNC has a G-Code assigned for a BOLT HOLE CIRCLE... if not... then I'll have to look at writing a routine.
(I'll start searching the forum...)
User inputs that will be required from the panel... variable names taken from G83 and G70 codes.
Re: G70 Command
J - Offset.......................Preset to ZERO - Perform around last position.
R - Preset.....................Preset distance above part. (Using 0.1 inch)
Z - Depth......................pyvcp.bolt-z - How deep to drill
Q - Pass per cycle......pyvcp.bolt-q - How much deeper each pass.
F - Feed Rate..............pyvcp.bolt-f - How fast to move.
S - Spindle Speed......pyvcp.bolt-s - How many RPM.
I - Radius......................pyvcp.bolt-i - How far off from starting point.
L - Holes.......................pyvcp.bolt-l - How many holes to make.
Hopefully I can pull that off.

--> Ok... no useful results found... so I'll write a routine... I have some ideas. (Using G10 L2 and some math...)
Last edit: 07 Nov 2015 08:51 by Askjerry.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
07 Nov 2015 08:50 #64943
by andypugh
Replied by andypugh on topic Bolt Hole Circle
2010 thread, no wonder I was confused.
Bolt circles are very easy if you use polar coordinates.
I tend to just MDI them.
linuxcnc.org/docs/html/gcode/overview.html#_polar_coordinates
Something like, and without any reference to docs, so full of errors
G0 @25
G98 G81 ^0
^30
^90
^120
^150
^180
And so on
Bolt circles are very easy if you use polar coordinates.
I tend to just MDI them.
linuxcnc.org/docs/html/gcode/overview.html#_polar_coordinates
Something like, and without any reference to docs, so full of errors
G0 @25
G98 G81 ^0
^30
^90
^120
^150
^180
And so on
The following user(s) said Thank You: Askjerry
Please Log in or Create an account to join the conversation.
- Askjerry
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 308
- Thank you received: 36
07 Nov 2015 08:59 - 07 Nov 2015 09:00 #64944
by Askjerry
Replied by Askjerry on topic Bolt Hole Circle
I remember reading about that now...
Yeah... so I take the number of holes to be made, divide 360 by that to get the incremental angle... set up a loop... and the rest is pretty easy.
Ok... dinner time... then I have something to work on for this evening.
Yeah... so I take the number of holes to be made, divide 360 by that to get the incremental angle... set up a loop... and the rest is pretty easy.
Ok... dinner time... then I have something to work on for this evening.

Last edit: 07 Nov 2015 09:00 by Askjerry.
Please Log in or Create an account to join the conversation.
- Askjerry
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 308
- Thank you received: 36
07 Nov 2015 16:20 - 07 Nov 2015 16:21 #64952
by Askjerry
Replied by Askjerry on topic Bolt Hole Circle
Another BIG THANKS to Andy Pugh for steering me in the right direction.
I built up a new panel tab, graphic, and routine... they work very well... now I can create bolt-holes right from the panel... no G-Coding required.
See the attached files.
Jerry
I built up a new panel tab, graphic, and routine... they work very well... now I can create bolt-holes right from the panel... no G-Coding required.
See the attached files.
Jerry
Last edit: 07 Nov 2015 16:21 by Askjerry.
Please Log in or Create an account to join the conversation.
- Johnip4
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
26 May 2016 17:05 #75118
by Johnip4
Replied by Johnip4 on topic Bolt Hole Circle
If I don't want to learn Python/Linux, how to I use your bolt circle code?
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
Less
More
- Posts: 7000
- Thank you received: 1175
27 May 2016 22:40 #75175
by BigJohnT
Replied by BigJohnT on topic Bolt Hole Circle
Lots of G code generators on the wiki
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple...NC_G-Code_Generators
HT
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple...NC_G-Code_Generators
HT
Please Log in or Create an account to join the conversation.
Time to create page: 0.076 seconds