ok,i'll bite and say 3 lines of code
G00 G90 G54 X0 Y0 S (your choice) M03
G43 Z1. H03
G84 X0 Y0 Z-.5 R0.2 F (fitting to speed)
![]()
How short can a program be and still qualify as a program?
I had drilled and parted off some short pieces of leaded hexagon which needed tapping 1/2"-20. I didn't want to disturb another setup on the lathe so I figured on tapping them in the mill. Five lines written in MDI and a cycle time of 2 seconds made them the shortest job I have ever done.
An open mind is a virtue...so long as all the common sense has not leaked out.
ok,i'll bite and say 3 lines of code
G00 G90 G54 X0 Y0 S (your choice) M03
G43 Z1. H03
G84 X0 Y0 Z-.5 R0.2 F (fitting to speed)
![]()
Just push the button,what's the worst that could happen.
ok ,I'll give you the m30.
But I didn't take into acount the ( some short pieces ) more then one.
![]()
Just push the button,what's the worst that could happen.
An open mind is a virtue...so long as all the common sense has not leaked out.
theres allways one of us out there,that's how you learn to hone those skills!
![]()
Just push the button,what's the worst that could happen.
%
O1234
%
Quick Drilling PGM
1) PGM#
2) S-PGM G-Models
3) Tool Call, Spdl Speed, First Location
4) Height Call G43
5) Drill Cycle
6) S-PGM Incremental Locations
7) S-PGM Tool Retract G-Cancels Y Home
8) M30
Quick Facing PGM
1) PGM#
2) S-PGM G-Models
3) Tool Call Spdle Speed, Start Location
4) Height Call G43
5) Feed Across
6) S-PGM Tool Retract Send Y Home
7) M30
I would safely say 7 Sequence Blocks is the shortest without using MDI.![]()
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
www.refractotech.com