Hi everyone,
I am using a 10 up jig to machine parts and have the gcode set up to use offsets and call a subroutine to cut the part at the G59 P# location.
The problem I am having, is when setting up the job, the jig has 10 locations (2 rows of 5). Z is all at the same level.
I set the datum to the lower lefthand location but this sets the remaining 9 positions someway from where they should be ?
Or I can get things to line up but the Z is off.
I'm sure its something dumb I am doing.
G59P1 is my reference and the positions P12 - 20 are the other jig locations.
Should I be using a diferent G59 reference start point?
I use the other work offset locations for another jig, Im having the same problem with that. That program has 10 positions but also 4 tool changes so I have call each of the subroutines 10 times per tool, so I only have 4 tool changes instead of 40.
So the question is how do I reference the job (first location) so the remaining are machined in the correct location and Z.
(now preparing mayself to look like a stupid donkey
)
Thanks
Derek.
Code is below.
%
N100 G00 G17 G21 G40 G49 G80 G90
N110 T1 M06 G43 L1 (10MM slot drill)
N132 G00 Z10.S750 M03
N133 G00 X0 Y0
N134 G59 P1
N135 M98 P1
N136 G59 P12
N137 M98 P1
N138 G59 P13
N139 M98 P1
N140 G59 P14
N141 M98 P1
N142 G59 P15
N143 M98 P1
G68 A0 B0 R180 (Rotate back row ref 0,0 and 180 deg)
N144 G59 P16
N145 M98 P1
N146 G59 P17
N147 M98 P1
N148 G59 P18
N149 M98 P1
N150 G59 P19
N151 M98 P1
N152 G59 P20
N153 M98 P1
N153 M05
N154 G59 P1
N155 G00 Z20
N156 G00 X0 Y0
N157 G90 G69 (cancel coordinate rotation)
N158 M30
O1
N4 G00 Z5.
N5 G00 X0. Y2.475 S800 M05
N6 Z3. S875
N7 G01 Z-4. F45. (Set depth of pockets here rough)
N8 X-1.008 Y1.956 F75.
N9 G03 X-2.2 Y0. R2.2
Gcode cut out here to keep message small !
N33 X-2.122 Y7.921
N35 G01 Z-4. F45. (Set depth of pockets here finish)
N36 X-2.728 Y7.256 F75.
Gecode cut out here to keep message small !
N50 G01 Z-3. F150.
N640 G00 Z5.
N645 M99
%