Hi,
I wanted to modify the Ref All button to Home my X,Y and Z, then move to my actual table 0,0 (X,Y) then set the X and Y DRO's to Zero,
I came up with this code and it seems to do exactly what I want, but I just wanted to make sure it is the correct way of doing it.
Thanks,
John
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
While (IsMoving())
Sleep(100)
Wend
DoOEMButton(1008) 'Work X Zero
DoOEMButton(1009) 'Work Y Zero
DoOEMButton(1010) 'Work Z Zero
DoOEMButton(1011) 'Work A Zero
While (IsMoving())
Sleep(100)
Wend
Code("F100")
Code("G00 X0.1543 Y.2534")
While (IsMoving())
Sleep(100)
Wend
DoOEMButton(1008) 'Work X Zero
DoOEMButton(1009) 'Work Y Zero
DoOEMButton(1010) 'Work Z Zero
DoOEMButton(1011) 'Work A Zero
While (IsMoving())
Sleep(100)
Wend
DoOEMButton(160) 'Regen Display