python help

More
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

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

More
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.

More
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

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

More
21 Dec 2016 15:55 #84493 by Todd Zuercher

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

More
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.
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.

More
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.

More
21 Dec 2016 18:56 #84511 by jtc
Replied by jtc on topic python help
I have a "almost" finished program that reads data from a dxf file and generates the holes code.




maybe with minor changes it can be suitable for you.


João
Attachments:

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

More
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.

More
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.

More
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.099 seconds
Powered by Kunena Forum