Page 1 of 1

Tool Check Spindle Dwell

Posted: Fri Dec 11, 2020 2:58 pm
by mrichards
I currently have a dwell time programmed into my M3 macro to allow 5 seconds for the spindle to spool up, which works as expected except when resuming from a tool check.
When I resume, motion starts immediately after the spindle is energized. If I forget to crank down the feedrate override before I hit cycle start, things get ugly. I'm aware of the VFD "at speed" hardwire option (though I'm not sure if that would work any better in this situation) however that's not physically possible for my install at the moment.
Doesn't resume run through the code up the tool check point including executing the M3 command? Why no dwell?

Thanks.

Re: Tool Check Spindle Dwell

Posted: Fri Dec 11, 2020 4:25 pm
by cncsnw
Your M3 macro says:

Code: Select all

;...
IF #4202 || #4201 THEN GOTO 200
M95 /2
M94 /1
IF #61058 THEN GOTO 200 ;skip the check if AutoSpindle is on
G4 P.1
#140 = 1.5 
N100
IF !#61058 THEN M225 #140 "Please Select Auto Spindle To Continue!" ;61058 = JPO2/SpindleAutoManualLED
G4 P4
IF !#61058 THEN GOTO 100
N200
I am guessing that when Run -> Resume executes the M3, it still has the search-mode variable #4202 set. Your M3 logic skips over all of its actions when that variable is set. Try at least putting your dwell time after N200.

That said, I don't even see how your dwell time would happen in normal operation, if you have already selected Auto Spindle mode.