PDA

View Full Version : Drill Offset



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:

Gary Campbell
10-11-2008, 08:16 PM
Nat..
Run the "drill offset" file. Then type [U] [L] to list the current variables. Next, click the button to write a variable file. Save that file and see if you can figure out which variable is not working as expected. If you cant figure it out, post the variable file.
Gary