Greetings,
I think I am having a "Brain Fart", can you look over my code below and tell me if it works right on your machine.........??
I am trying to do one of those solid Aluminum Touch off plates for a router and I am not sure if I am doing it right.
I am taking tool #1, and Zeroing it on the Table itself, then I am putting the metal plate as the tool length setter plate.
The probe down macro I have works fine for getting the Plate thickness which it sets in UDRO2202.
I then fill in the Feed rate and the Probing distance in the below user dros...
So, can some one look to see if it will set properly the Tool Hiegth Offset into the Tool Table library??
Once I have the Tool Ht. guadge setter ht., done, I again reprobe with my longest tool as tool#1, then move on to tool#2 etc.
Using this scenerio here, could you check my code and see if it is doing Tool hiegth offsets properly into the Tool library?
'===========Start Tool Plate hiegth touch off code===============
ToolNum = GetDRO (24)
SetVar(2002,0)
If ToolNum <>0 Then
Feed = GetUserDRO(2200)
ProbeDepth = GetUserDRO(2201)
Code "G31 Z-" & ProbeDepth & " F" & Feed
ZShift = GetOEMDRO (2202) 'guage ht.
ZOffset = GetVar(2002) 'Z Probe var
AxisPos = GetOEMDRO(85) 'Machine Z
ToolOffset = (AxisPos - ZOffset) -ZShift
Call setOEMDRO(42, ToolOffset) 'set Tool offset
End if
'===========End Tool Plate hiegth touch off code===============
'Scott