Hi
I have a fairly simple tool path that moves to a predetermined location, and zeros the Z axis. As it ends the file it throws me in to "ATC_XYZ_Home.sbp" which telling me there is no tool in the tool holder since I do not have a tool holder this leads to bad places.

The subroutine it goes to is:

'If &ToolIN is zero tool then test to make sure it is really empty
If &ToolIN = 0 Then GoTo ZeroToolIN

'Check to make sure there is a tool holder properly inserted into spindle
If %(57) = 0 Then GoTo ToolNotIN
If &dropped = 1 Then &dropped = 0


This happens after all my commands are executed the only thing I can think of is that because I'm zeroing at 3,50 there is code that is assuming I do have a tool holder, but I can find where this test is to disable it or program around it.

Any help will be appreciated


The file I'm running is as follows:

'SHOPBOT ROUTER FILE
'GENERATED BY Al McWaters, 02/13/2018
'--------------------------------------------------------------------------------------------------
'This file will zero Z axis to the spoil board using the post.
Pause
'
IF %(25)=1 THEN GOTO UNIT_ERROR 'check to see software is set to standard
'
SA 'Set program to absolute coordinate mode
'
SF,0 'Turn off limit checking temporarily here
'
SO, 1, 0 'Confirm Spindles OFF
'
C#,90 'Load variables from my_variables.sbc, process called by Custom Cut 90
'---------------------------------------Defined Variables----------------------------------------------
&answer = "N"
&answer2 = "N"
'---------------------------------------Start main routine--------------------------------------------
INPUT "It requires that you have a tool installed in the spindel. Do you have your tooling installed in the spindle? (Y,N)":Y, &answer
'
If &answer = Y then GoSub Tool_Installed
If &answer <>Y then GoSub Install_Tool
'
INPUT "Is your tooling is higher than the thickness of your matrial? (Y,N)":Y, &answer2
'
If &answer2 = y then GoSub Tool_Installed
If &answer2 <> y then GoSub Adjust_Z
'
INPUT "Is your tooling centered on the post? (Y,N)":N, &answer2
'
If &answer2 = y then GoSub Tool_Installed
If &answer2 <> y then GoSub Adjust_X-Y
'
FP,C:\SbParts\Zzero.sbp 'Default Z zeroing routine
'
JZ,&MY_ZZEROTHICKNESS 'jogs down down the thickness of the z-plate as entered in the machine setting
'Because we are using the default Zzero.sbp subroutine this
'Moves the tool down to actual zero to compensate for the thickness of the
'Zzero Plate which we are not using.
'
ZZ 'Sets machine to actual Zero
'
INPUT "Enter a number that is higher than the thickness of your matrial to jog the spindle up to." &moveTo
'
JZ,&moveTo 'Jogs spindle up the enterd amount.
'
PAUSE 1
'
'Done and Done
PAUSE
'
End
'
'------------------------------------Sub Routines--------------------------------------------------------------
Adjust_Z:
'Use the keyboard to raise your tooling higher than your material.
PAUSE
SK
Return
'
Install_Tool:
'Use the keyboard to raise the spindle then intsall your tooling, making sure the tool will clear you material when we jog to post. Close the Keypad.
PAUSE
SK
Return
'
Adjust_X-Y:
INPUT "Are X&Y zeroed to the table defaults? Did you use C3 to set the X&Y?": N, &Defaults
If &Defaults = Y then GOSUB Default
If &Defaults <> Y then GOSUB Not_Default
'
Default:
J2, 3,50
Return
'
Not_Default:
'Use keyboard to move tooling over center of post then close keyboard.
PAUSE
SK
Return
'
RETURN
'
Tool_Installed:
Return