nat_wheatley
10-11-2008, 10:52 AM
Can anyone tell me what's wrong with my drill offset file, I've posted it below. I'm working in mm and it's giving me an offset that's about 13 mm or so too much.
'DrillOffset.SBP -- Calculate the Z offset to main Spindle
'This file uses MyVars.exe to write to my_variables.sbc file
'R.Patterson 10/09/07
'R.Patterson added drill #3 and 4 on A axis Modified 10/28/07
'R.Patterson Fix for metric 2/29/08
SL
if %(22) = 1 then GoTo CHANGEMODE
GoSub TEST_CLEAR
C#,90
IF %(25) = 0 THEN &new_Zmove_Speed = 1
IF %(25) = 0 THEN &zup = .5
IF %(25) = 0 THEN &SafeUp = 4.5
IF %(25) = 0 THEN &big_plunge = 0
IF %(25) = 1 THEN &new_Zmove_Speed = 25
IF %(25) = 1 THEN &zup = 12
IF %(25) = 1 THEN &SafeUp = 114
IF %(25) = 1 THEN &big_plunge = 0
'''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''
DRILL PLUNGE:
'DrillOffset.SBP -- Calculate the Z offset to main Spindle
'This file uses MyVars.exe to write to my_variables.sbc file
'R.Patterson 10/09/07
'R.Patterson added drill #3 and 4 on A axis Modified 10/28/07
'R.Patterson Fix for metric 2/29/08
SL
if %(22) = 1 then GoTo CHANGEMODE
GoSub TEST_CLEAR
C#,90
IF %(25) = 0 THEN &new_Zmove_Speed = 1
IF %(25) = 0 THEN &zup = .5
IF %(25) = 0 THEN &SafeUp = 4.5
IF %(25) = 0 THEN &big_plunge = 0
IF %(25) = 1 THEN &new_Zmove_Speed = 25
IF %(25) = 1 THEN &zup = 12
IF %(25) = 1 THEN &SafeUp = 114
IF %(25) = 1 THEN &big_plunge = 0
'''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''
DRILL PLUNGE: