2162
« on: March 16, 2007, 04:49:16 AM »
You are going about this the wrong way.
In Mach you have 6 global datums and 1 local datum, the global datums are G54,G55,G56,G57,G58 & G59 the local one is G52.
If you have 4 boards to you can set each with its own global datum.
The boards can be in any position on the table and they don,t have to be at the same height e.g. different vices.
You set your datums for each block at the same point then the code you have will work if you add the G54 or G55 into the code in the correct place.
You set the tool offsets as if you are working on one part.
The code is like this :-
G21 G40 G80 G17
N1 (TOOL 1 ROUGH MILL)
T1 M6
G54 G00 G90 G43 X0 Y0 Z25. S1000 M3
Z1. M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G55 X0 Y0 Z25.
Z1 M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G56 X0 Y0 Z25.
Z1 M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G57 X0 Y0 Z25.
Z1 M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G91 G28 Z0 M6
M1
N2 (TOOL 2 FINISH MILL)
T2 M6
G54 G00 G90 G43 X0 Y0 Z25. S1500 M3
Z1. M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G55 X0 Y0 Z25.
Z1 M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G56 X0 Y0 Z25.
Z1 M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G57 X0 Y0 Z25.
Z1 M8
G52 X10.Y5.
X1.
Y3.
G52 X0 Y0
etc.
G91 G28 Z0 M6
M30
Graham.