Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mike^3 on June 30, 2015, 08:52:08 PM

Title: DRO Question! :D
Post by: mike^3 on June 30, 2015, 08:52:08 PM
Hi, If I am running a VB script to change tools, what do I put in to update the tool number dro to the selected tool?

I can get the tool changer to work but I put a DRO on the screen, OEM code 824, what code do I insert before the end to update the tool number?


 If GetSelectedTool() = GetCurrentTool() Then
End 
 End If     

 If GetSelectedTool = 1 Then 
 ActivateSignal(OutPut2) 
 Sleep 500   
 Code "G53 G0 A0" 
 Code "G53 G0 A-5"  W
 hile IsMoving() 
 Wend
 DeActivateSignal(OutPut2)
 End If 

THANK YOU!!!!!!