Greetings all; I have one last problem, I can't get a G42 to "take" despite the fact that the next move is 2x+ the tool diameter. I would like to run most of a while loop using g42 as that, when I've made it work, draws a red line in the backplot on the climb cutting side of the tool. But as I watch it run from the F5 mode, the G40 in the status window never changes, abd the tool is straddling the red line. The actual cut will then be 4mm taller & wider.
Here is that stanza of code: (db_num is zeroed above, tool 15, a 4mm tool is loaded at the top of the file) o220 WHILE [#<_db_num> lt 1.500] o210 IF [#<_db_num> lt .5000000] G54 G0Z#<_ZUP> (put coord map X0.0 Y0.0 to center of left dsub pattern) G55 ( switch to g55 map) G0 Z#<_ZUP> (make it clear) ( goto center of left dsub pattern ) G0 X0.00000000 Y0.00000000 o210 ELSE G54 (back to normal map) G0 Z#<_ZUP> (clear work) G56 (switch to right dsub location) G0 Z#<_ZUP> ( goto center of right rear db pattern) G0 X0.00000000 y0.00000000 (all set, return to carve it) o210 ENDIF ( Lets drill the db connector mounting holes 1st ) S 2500 M3 (start spindle) ( goto left mounting hole) G1 F10 y0.00000 x-#<_STD_3A> o130 CALL ( goto right mounting hole ) G1 F10 Y0.000000 X#<_STD_3A> o130 CALL (drill it) (MSG,db mounting holes done) (start on dsub pattern at upper right corner) #<_tempZD> = -0.00000000 G1 f15 Z#<_ZUP> (now do connector outline in g42 mode) G1 F15 x.5 y.5 (far enough away it can do it) G42 (draw at climb cut side of tool) G1 F15 x0 y0 (back to center of pattern to absorb the G42) o300 WHILE [#<_tempZD> gt #<_ZDN>] #<_tempZD> = [#<_tempZD> - 0.00750000] (see if that slows the bit flexing) (put at first corner, all Y derived from G, X derived from B=top,E=bottom) (to top right corner of cutout, use B here) G0 X#<_STD_3B> Y#<_STD_3G> (std_3g is half cutout height) (now draw x line across top to left end, use B here & ramp down) G1 F10 x-#<_STD_3B> Z#<_tempZD> ( & ramp down to right end of cut) (top done, do end) (draw down left end at angle, no ramp) G1 F10 X-#<_STD_3E> Y-#<_STD_3G> (end angle to bottom done) (now do bottom run to right & no ramp) G1 F10 X#<_STD_3E> (and back to our starting point at upper right corner no ramp) G1 F10 Y#<_STD_3G> X#<_STD_3B> o300 ENDWHILE ( first cutout done) G40 G1 Z#<_ZUP> G1 x0 y0 #<_db_num> = [#<_db_num> + 1.00000000] o220 ENDWHILE (back to normal g54 map) G54 The G42 never shows in the active list window, and the dro shows the full Y offset requested. Am I crazy or is this a bug? Do I need to waste some stock to find out? -- Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
