Originally Posted by
UniqueMachining
Using G52 offset for example:
Part 1
G52 X0 Y0
M98 P1000 ( Call Drill Subroutine )
Part 2
G52 X3 Y0
M98 P1000 ( Call Drill Subroutine )
Part 3
G52 X0 Y1
M98 P1000 ( Call Drill Subroutine )
Part 4
G52 X3 Y1
M98 P1000 ( Call Drill Subroutine )
O1000 ( Drilling Subroutine )
G90 ( Absolute Mode)
G73 X1 Y1............
Advantages:
1. G73... Remain the same for all parts.
2. If X or Y change only one line need be changed (G73 X1.1...... ).
3. If you change the location on the fixture, only that G52 offset need be changed.
John
to go one step further I'd suggest using variables for the g52 positions . For example lets say that we've got two even rows of 6 parts (12 in total) , And we need to run a number of tool paths with various tools . It is much cleaner and easier to edit positions when macro variables are used . If a position is out then one number needs to be changed , rather than a bunch of them which could lead to trouble if a guy misses changing something .
below is brief but to the point
#101= -6.(x position 1)
#111= -4.(x position 2)
#121= -2.(x position 3)
#131= 2.(x position 4)
#141= 4.(x position 5)
#151= 6.(x position 6)
#102= -5. (y position back row)
#112= -10. (y position front row)
#103= -2.346 (z shift)
(cut profile 3/4 end mill)
(back row)
g52x#101y#102z#103
m97p1000
g52x#111y#102z#103
m97p1000
g52x#121y#102z#103
m97p1000
g52x#131y#102z#103
m97p1000
g52x#141y#102z#103
m97p1000
g52x#151y#102z#103
m97p1000
(front row)
g52x#101y#112z#103
m97p1000
g52x#111y#122z#103
m97p1000
g52x#121y#122z#103
m97p1000
g52x#131y#122z#103
m97p1000
g52x#141y#122z#103
m97p1000
g52x#151y#122z#103
m97p1000
(pocket 1/2' end mill)
(back row)
g52x#101y#102z#103
m97p2000
g52x#111y#102z#103
m97p2000
g52x#121y#102z#103
m97p2000
g52x#131y#102z#103
m97p2000
g52x#141y#102z#103
m97p2000
g52x#151y#102z#103
m97p2000
(front row)
g52x#101y#112z#103
m97p2000
g52x#111y#122z#103
m97p2000
g52x#121y#122z#103
m97p2000
g52x#131y#122z#103
m97p2000
g52x#141y#122z#103
m97p2000
g52x#151y#122z#103
m97p2000
and so on
and so on
If all positions are good , but , because someone screwed up the fixture and position 5 in the back is off by .01 on the x , then a bit more in depth but basic editing would be necessary and position 5 could be shifted the difference like so
g52x#101y#112z#103
m97p1000
g52x#111y#122z#103
m97p1000
g52x#121y#122z#103
m97p1000
g52x#131y#122z#103
m97p1000
g52x[#141+.01] y#122z#103 (position 5 changed)
m97p1000
g52x#151y#122z#103
m97p1000
A poet knows no boundary yet he is bound to the boundaries of ones own mind !! ........