Greetings all;

I would like to be able to shut off the spindle prior to moving it to the 
tool change height.

I have even gone so far as to place a G4 P2.5 after the M5, and before 
the move in my code.

But it persists in leaving the spindle on for the duration of the run up. 
This means I am standing there for several seconds waiting for it to 
wind down before I can start the tool change.

The code as it exists now, with better comments:
========================
o<ifrndover3>   IF [#<_rndover> lt 0.50000000] ( tool is straight mill )
( buttons cut, now carve clean end so it can be unclamped and pushed in ) 
( to the tool parked at 1 thou behind Y=0.0000000 )
#<_z_tmp> = -0.10000000
G0 z.05 X-0.05
G1 F3 Y-[#<_button_y> + #<_tool_dia> + 0.001000] ( shave 1 thou off end )

o300 while [#<_z_tmp> gt #<_z_end>]
#<_z_tmp> = [#<_z_tmp> + #<_z_step>]
G1 F20 Z#<_z_tmp>
G1 F12 X[#<_x_tmp> - #<_button_x>]  (calculate this, or use leftover 
#<_x_tmp> )
( retrace )
G1 F24 X-0.0312500000
o300 endwhile
( all done,  park for hand safety )

M5 ( stop spindle )
G4 P2.5 ( this pause worked, but spindle was left running )
G0 Z-0.1750000 X[#<_x_tmp> * 0.50000000] Y0.00000000 ( Park z at Y )
( to serve as step & repeat stop, loosen clamp, push workpiece back to )
( bit contact, and its all set to cut the next runs worth of buttons :)
o<ifrndover3>   ELSE
M5  ( FOUND IT I think, this was not in the ELSE path in my code! )
G1 F43 z6 (to change tools)
o<ifrndover3>   ENDIF
M2
%
===================================
Is this PEBKAC?  I sure hope it is.

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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to