python help
- beltramidave
- Offline
- Elite Member
Less
More
- Posts: 174
- Thank you received: 4
21 Dec 2016 13:43 #84489
by beltramidave
python help was created by beltramidave
I am looking for a python script that will allow me to drill multiple random holes. I know nothing about writing my own script, but am not against trying to learn or modify one to work for me. Thank you in advance for anyone that can get me pointed in the right direction.
Wants:
1. Inch or metric
2. work coordinate offset
3. Feed rate
4. Plunge rate
5. Depth of drill
6. multiple X/Y coordinates
7. retract height
8. peck drilling option
9. coolant/vac start option
Wants:
1. Inch or metric
2. work coordinate offset
3. Feed rate
4. Plunge rate
5. Depth of drill
6. multiple X/Y coordinates
7. retract height
8. peck drilling option
9. coolant/vac start option
Please Log in or Create an account to join the conversation.
21 Dec 2016 14:32 #84491
by andypugh
Replied by andypugh on topic python help
Actually in random places?
Please Log in or Create an account to join the conversation.
- beltramidave
- Offline
- Elite Member
Less
More
- Posts: 174
- Thank you received: 4
21 Dec 2016 15:04 #84492
by beltramidave
Replied by beltramidave on topic python help
Probably poor choice of words. I would like to enter my drill locations.
Thanks
Thanks
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
21 Dec 2016 15:55 #84493
by Todd Zuercher
Replied by Todd Zuercher on topic python help
Have you looked at NGCGUI or NativeCAM (formerly known as Features)?
linuxcnc.org/docs/html/gui/ngcgui.html#_...ation_configurations
forum.linuxcnc.org/40-subroutines-and-ng...-is-features-renamed
linuxcnc.org/docs/html/gui/ngcgui.html#_...ation_configurations
forum.linuxcnc.org/40-subroutines-and-ng...-is-features-renamed
Please Log in or Create an account to join the conversation.
21 Dec 2016 16:09 - 21 Dec 2016 17:54 #84494
by andypugh
Replied by andypugh on topic python help
forum.linuxcnc.org/38-general-linuxcnc-q...ideas?start=10#82686
Might be a reasonable starting point. It's an embedded tab that performs simple repetitive motions.
In your case you would set it up to use a peck-drilling cycle.
linuxcnc.org/docs/2.7/html/gcode/g-code.html#gcode:g80-g89
Or, you could just use a peck-drilling cycle. This G-code is not much more difficult that write than filling out a table.
Might be a reasonable starting point. It's an embedded tab that performs simple repetitive motions.
In your case you would set it up to use a peck-drilling cycle.
linuxcnc.org/docs/2.7/html/gcode/g-code.html#gcode:g80-g89
Or, you could just use a peck-drilling cycle. This G-code is not much more difficult that write than filling out a table.
G0 X0 Y0 Z10
G98
G83 R1 Z-10 X1 Y10 Q3
X11 Y10
X21 Y10
X21 Y20
...
G80
Last edit: 21 Dec 2016 17:54 by andypugh.
Please Log in or Create an account to join the conversation.
- beltramidave
- Offline
- Elite Member
Less
More
- Posts: 174
- Thank you received: 4
21 Dec 2016 16:20 #84497
by beltramidave
Replied by beltramidave on topic python help
Thank you, I will look into the suggestions. I understand it that it is simple to hand code this, but I am looking for something that an operator (one that only knows enough to push the start button) could do.
Please Log in or Create an account to join the conversation.
21 Dec 2016 18:56 #84511
by jtc
Replied by jtc on topic python help
Please Log in or Create an account to join the conversation.
- beltramidave
- Offline
- Elite Member
Less
More
- Posts: 174
- Thank you received: 4
21 Dec 2016 19:06 #84512
by beltramidave
Replied by beltramidave on topic python help
Looks interesting. How hard is it to modify for someone not knowing anything about scripting?
Please Log in or Create an account to join the conversation.
21 Dec 2016 19:31 #84513
by jtc
Replied by jtc on topic python help
It can be challenging if you don't know nothing about programming...
Please Log in or Create an account to join the conversation.
- beltramidave
- Offline
- Elite Member
Less
More
- Posts: 174
- Thank you received: 4
21 Dec 2016 19:59 #84514
by beltramidave
Replied by beltramidave on topic python help
I'm up for a challenge, if you are willing to share. Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.107 seconds