Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: vertcnc on April 15, 2014, 07:37:02 PM

Title: Semi-Rigid Tapping
Post by: vertcnc on April 15, 2014, 07:37:02 PM
I am experimenting with my T/C tapping holder and it appears that there is a delay in retracting the head after the swindle starts.  I am running the spindle via VFD and Modbus.  ESS for machine control. After the spindle starts in the CCW direction there is a delay until the head starts moving up. Don't know if there is a setting in ESS or Mach3 that can correct this lag.
Here is a sample of the code.


(Tap: 1/4 20)
N01 G90 G80 G40 G54 G20 G17 G50 G94 G64 (Safety block)
N02 M5
N05 M9
N10 T50 M6
N20 M3 S400 (Spindle on CW)
N30 G0 X.287 Y-1.06 Z.1 (Rapid to Above 1st Hole)
N40 G1 Z-.25 F20 (Begin Tapping 1st Hole)
N50 M4 S400 (Reverse Spindle Direction)
N60 G4 P.0 (Dwell, 0.5 Second)
N70 Z.1 F20 (Retract)
N80 M3 S400 (spindle on CW)
N90 G4 P.5 (Dwell, 0.5 Second)
N100 G0 X1.037 Y-1.06 (Rapid to Above 2nd Hole)
N110 G1 Z-.25 F20 (Begin Tapping 2nd Hole)
N120 M4 S400 (Reverse Spindle Direction)
N130 G4 P.0 (Dwell, 0.5 Second)
N140 Z.1 F20 (Retract)
N150 M30 (Program End)
Title: Re: Semi-Rigid Tapping
Post by: Peter Homann on April 15, 2014, 09:04:46 PM
Hi,

In the spindle setup tab, there are delays for start up and shut down of the spindle. Try setting these to 0.

Cheers,

Peter
Title: Re: Semi-Rigid Tapping
Post by: vertcnc on April 16, 2014, 08:21:47 AM
Peter,
I will give it a try.  The problem is it appears that the spindle starts just fine, but it is the next line of code that retracts the spindle that there is a dwell or lag. Doesn't matter if I change the dwell or remove the line od code completely.

Tim
Title: Re: Semi-Rigid Tapping
Post by: vertcnc on April 18, 2014, 07:09:35 PM
Peter,

This appears to have done the trick.

Thanks