Context, Haas VM-3, with TR210J trunion, drilling compound waterlines.
I've done 3+2 for a while now, and I'm not at all troubled with it. However, I have been given a part family, that for size constraints I cant fixture the way I'd like, you know, rotating about B, with it's the part origin at the center or rotation, no more than a modern day version the indexing heads I've used since high school. When I mount the part along the A axis however, my parts origin is going to move.
How do I compensate for my parts origin moving, as it rotates in the A axis? I can keep its X axis origin constant, but its Y and Z origin is necessarily going to move. How do tool length offsets work in that situation? I believe, that if the controller can handle the math, it should. My boss thinks its something we should learn to do in MaterCam, and I can't disagree, but I would much prefer to build a macro program, like I did for the smaller sized family we run. I'd prefer to have code I can read at runtime, over the 15000 lines of code masterCam might put out to get a similar motion. I'm just not sure how to do it "properly" either way at the moment.
It's the same general path I've been making 'quite proper' for sometime, I just have a few know unknowns (and hopefully, not to many unknown unknowns) at the moment to do this with out needing to set 10 different work offsets, that just wont do for me. (it WILL work, but it's just not proper)
I'm designing the fixture to hold it now, Hopefully it's made before the next time I have make one or two of these, the way I'm doing it now without the trunion. It's nothing I can't do, I just can't do it the way I'm wanting to.
If I can pull off these angled holes off the way I'd like, I might even have the reach left to poke the deep holes while I'm at it, and that would be a frekin awesome time saver as well. Hell, if our Haas was worth a damn for finishing mold cavities, these could be made in two ops.
Boss man gave me the OK to post my existing code for the smaller part family I have so..
Code:% O00123 G20 G00 G17 G40 G49 G80 G90 G00 G28 G91 Z0. G103 P0 (CANCEL LOOK AHEAD) (**** TURN BLOCK SKIP ON ****) (**** AND SET #20 TO 1. ****) (*** TO RUN BOTH CAVTIES ***) (* BLOCK SKIP OFF AND #20=0 FOR BUSHING ONLY *) (*BLOCK SKIP ON AND #20=0 FOR PIN ONLY*) (****CAN BOTH PARTS BE RAN AT ONCE?***) (*** 1 FOR YES, 0 FOR NO ***) #20= 1 (**************************) (********INSERT DATA*******) (**************************) (FIRST HOLE DATA) (CROSSOVER HOLE TOWARDS TOP) (X *SHOULD BE A POSITIVE NUMBER*) #1= 1.75 (Y ***ENTER THE NUMBER ON THE PRINT ***) (****THIS SHOULD BE POSITIVE****) #2= 6.3 (C'BORE Z ) #3= 1.941 (DRILL Z ***WILL ADD DRILL POINT FOR YOU***) (THIS NUMBER COULD BE NEGITIVE OR POSITIVE) (DEPENDING ON THE WORK PIECE) #4= -1. (B AS VEIWED IN MASTERCAM) #5= 90. (ANGLED HOLES TOWARD TOP) #6= 1.95 #7= 7.3 #8= 1.351 #9= -0.406 #10= 60. (ANGLES HOLES TOWARD BOTTOM) #11= 1.985 #12= 1.52 #13= 1.516 #14= -0.403 #15= 56. (*******************) (****END OF DATA****) (*******************) (POSITION TRUNION) M00 G90 G54 G00 A0. B0. (CALL PROBE) G00 G90 G54 T24 M06 X-2. Y0.183 G43 H24 Z4. (PROBE - SINGLE SURFACE IN Z LEFT SIDE) G65 P9995 W55. A20. H-0.3 G00 Z5. X2. Z4. (PROBE - SINGLE SURFACE IN Z RIGHT SIDE) G65 P9995 W56. A20. H-0.3 (RETRACT AWAY) G00 G91 G28 Z0. #19= [ [ #5243 - #5263 ] / 4 ] #19= ATAN[ #19 ] G91 B - [ ROUND[ #19 ] ] (CODE SO NICE YOU MUST SAY IT TWICE) #5225= #5025 #5225= #5025 (END PROBE) IF [ #20 EQ 1 ] GOTO779 / GOTO777 N779 (*** PIN HALF ***) (POSITION TRUNION) G90 G54 G00 A0. B - #5 ( 1/2 CARBIDE ENDMILL TOOL - 15 DIA. OFF. - 15 LEN. - 15 DIA. - .5 ) ( MACHINE FLAT FOR DRILLING. ) T15 M06 G00 G54 G90 X - #1 Y - #2 B - #5 S5000 M03 G43 H15 Z3.5 M08 (HOLES TOWARDS TOP AT 90) G83 G98 Z#3 R3.1 Q0.05 F10. (ANGLED HOLES AT TOWARDS TOP) X#6 Y - #7 B [ -180 - #10 ] Z#8 X - #6 B - [ 180 - #10 ] (ANGLED HOLES TOWARDS BOTTOM) X#11 Y - #12 B [ -180 - #15 ] Z#13 X - #11 B - [ 180 - #15 ] G80 IF [ #20 EQ 1 ] GOTO555 N552 M09 M05 G00 G28 G91 Z0. G00 G17 G40 G80 G90 G94 G98 G00 G28 G91 Z0. ( 90 CHAMFER TOOL TOOL - 12 DIA. OFF. - 12 LEN. - 12 DIA. - .4375 ) ( SPOT FOR DRILLING. ) T12 M06 M01 G00 G54 G90 X - #1 Y - #2 B - #5 S12000 M03 G43 H12 Z3.5 M08 (HOLE TOWARDS TOP AT 90) G81 G98 Z [ #3 - 0.1 ] R [ #3 + 0.1 ] F30. (ANGLED HOLES AT TOWARDS TOP) X#6 Y - #7 B [ -180 - #10 ] Z [ #8 - 0.1 ] R [ #8 + 0.1 ] X - #6 B - [ 180 - #10 ] (ANGLED HOLES TOWARDS BOTTOM) X#11 Y - #12 B [ -180 - #15 ] Z [ #13 - 0.1 ] R [ #13 + 0.1 ] X - #11 B - [ 180 - #15 ] G80 IF [ #20 EQ 1 ] GOTO554 N551 M09 M05 G00 G28 G91 Z0. G00 G17 G40 G80 G90 G94 G98 G00 G28 G91 Z0. ( 11/32 DRILL TOOL - 11 DIA. OFF. - 11 LEN. - 11 DIA. - .343 ) ( DRILL FOR WATER LINES. ) T11 M06 M01 G00 G54 G90 X - #1 Y - #2 B - #5 S800 M03 G43 H11 Z3.5 M08 (HOLES TOWARDS TOP AT 90) G83 G98 Z [ #4 - 0.11 ] R [ #3 + 0.1 ] Q0.05 F5. (ANGLED HOLES AT TOWARDS TOP) X#6 Y - #7 B [ -180 - #10 ] Z [ #9 - 0.11 ] R [ #8 + 0.1 ] X - #6 B - [ 180 - #10 ] (ANGLED HOLES TOWARDS BOTTOM) X#11 Y - #12 B [ -180 - #15 ] Z [ #14 - 0.11 ] R [ #13 + 0.1 ] X - #11 B - [ 180 - #15 ] G80 IF [ #20 EQ 1 ] GOTO553 GOTO999 N777 (*** BUSH HALF ****) (POSITION TRUNION) G90 G54 A0. B - #5 ( 1/2 CARBIDE ENDMILL TOOL - 15 DIA. OFF. - 15 LEN. - 15 DIA. - .5 ) ( MACHINE FLAT FOR DRILLING. ) N555 T15 M06 G00 G54 G90 X#1 Y - #2 B - #5 S5000 M03 G43 H15 Z3.5 M08 (HOLES TOWARDS TOP AT 90) G83 G98 Z#3 R3.1 Q0.05 F10. (ANGLED HOLES AT TOWARDS TOP) X - #6 Y - #7 B#10 Z#8 X#6 B - #10 (ANGLED HOLES TOWARDS BOTTOM) X - #11 Y - #12 B#15 Z#13 X#11 B - #15 G80 IF [ #20 EQ 1 ] GOTO552 M09 M05 G00 G28 G91 Z0. G00 G17 G40 G80 G90 G94 G98 G00 G28 G91 Z0. (****BUSH***) ( 90 CHAMFER TOOL TOOL - 12 DIA. OFF. - 12 LEN. - 12 DIA. - .4375 ) ( SPOT FOR DRILLING. ) N554 T12 M06 M01 G00 G54 G90 X#1 Y - #2 B - #5 S12000 M03 G43 H12 Z3.5 M08 (HOLE TOWARDS TOP AT 90) G81 G98 Z [ #3 - 0.1 ] R [ #3 + 0.1 ] F30. (ANGLED HOLES AT TOWARDS TOP) X - #6 Y - #7 B#10 Z [ #8 - 0.1 ] R [ #8 + 0.1 ] X#6 B - #10 (ANGLED HOLES TOWARDS BOTTOM) X - #11 Y - #12 B#15 Z [ #13 - 0.1 ] R [ #13 + 0.1 ] X#11 B - #15 IF [ #20 EQ 1 ] GOTO551 G80 M09 M05 G00 G28 G91 Z0. G00 G17 G40 G80 G90 G94 G98 G00 G28 G91 Z0. (**BUSH**) ( 11/32 DRILL TOOL - 11 DIA. OFF. - 11 LEN. - 11 DIA. - .343 ) ( DRILL FOR WATER LINES. ) N553 T11 M06 M01 G00 G54 G90 X#1 Y - #2 B - #5 S800 M03 G43 H11 Z3.5 M08 (HOLES TOWARDS TOP AT 90) G83 G98 Z [ #4 - 0.11 ] R [ #3 + 0.1 ] Q0.05 F5. (ANGLED HOLES AT TOWARDS TOP) X - #6 Y - #7 B#10 Z [ #9 - 0.11 ] R [ #8 + 0.1 ] X#6 B - #10 (ANGLED HOLES TOWARDS BOTTOM) X - #11 Y - #12 B#15 Z [ #14 - 0.1 ] R [ #13 + 0.1 ] X#11 B - #15 N999 G80 M09 M05 G00 G28 G91 Z0. G00 G28 Y0. G90 G54 A-90. B0. M30 %
Although I do not need run any of these parts assembled, I'd like something very similar, only one that compensates for the pesky Y and Z part zero thats going to be moving around quite a bit.
I read through the manual today, It has good reference documentation, but nothing that seemed to help me put together the pieces.