LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.8k stars 1.15k forks source link

Allow cycles like G81 in both positive and negative #436

Open shulter opened 6 years ago

shulter commented 6 years ago

LinuxCNC's G81 allows operations into the working plane only, not out of the working plane. Example: A large back-counterbore is to be drilled. With this op the retract plane is further down in Z- than the actual machining point. LinuxCNC won't accept a retract plane lower than the machining point.

Another example: A tool in the spindle has got a 90 deg offset in A or B, for horizontal boring operations. G81 works fine if approached from X+, drilling into the right side of the workpiece, but breaks if approached from X-, left side of the work piece. Example code:

(DRILL FROM LEFT)
(TOOL AT B-90 ANGLE WITH ANGLE ADAPTER, NOT WITH ROTARY TABLE, HORIZONTAL OP FROM LEFT SIDE )
(SET G19, WORKPLANE YZ, APPROACH FROM LEFT SIDE)
N100 G19 (CURRENTWORKPLANE 0, -1.5708, 0)
N105 G0 X-5.
N110 G81 X10. Y-20. Z-20. R5. F250
N115 G0 X-15.
N120 G53 Z0.
shulter commented 6 years ago

to be labeled as an enhancement by @andypugh :)

SebKuzminsky commented 6 years ago

Are these operations for "drilling" with a boring bar in a lathe?

andypugh commented 6 years ago

Back-counterboring with a boring head in a mill would be one application. I can imagine you would need it with a rotating head milling machine and wanted to drill from both sides of the material too (drilling in X in the YZ plane)

shulter commented 6 years ago

Example: VMC with a four directional horizontal spindle attachment 54051_001_r450