461
General Mach Discussion / Re: Tool Offset Macro...
« on: August 19, 2016, 08:01:29 AM »
Sorry the code above is old, must have been the days before they actually had an oem code for the dro and I was using a brain to write to a user dro, here is the code I have on the actual machine.
If GetOemLED(800) Then
MsgBox ("Mach In Reset, Enable and start again")
End
End If
Offset = GetOemDRO(100)
SetOemDRO(1555,Question("Enter Offset Number"))
Tool = GetOemDRO(1555)
Code "G90" & "G10" & "L1" & "P" & Tool &"Z" & Offset
DoOemButton(121)
Hood
If GetOemLED(800) Then
MsgBox ("Mach In Reset, Enable and start again")
End
End If
Offset = GetOemDRO(100)
SetOemDRO(1555,Question("Enter Offset Number"))
Tool = GetOemDRO(1555)
Code "G90" & "G10" & "L1" & "P" & Tool &"Z" & Offset
DoOemButton(121)
Hood