Hello,
Im working on some macros for 3D-probing (The probe is on an arm and pivots down to the probing position) and ToolLength compensation
I use the Probe Input and Output 9 to rotate the Probe. (On/Off)
Now after a succesful script for probing Z, X and Y in a row I simply can't deactivate Output9 inside the script.
Im fairly new to vbasic so its probably a obvious problem.
After probing and setting the values I use this to go to Safe-Z:
'Goto SafeZ if referenced
If GetOEMLED(809) Then
MsgBox "Z not referenced for safe retract",0
Else
Code "G0G53 Z" & GetOEMDRO(54)
While IsMoving()
Wend
DeActivateSignal(OUTPUT9)
End If
Code "M1019"
It moves to Safe-Z but it simply won't deactivate Signal 9
When creating another button with just the function "DeActivateSignal(Output9)" it works of course.
Any idea what I'm missing here?
Thanks!