461
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: March 20, 2021, 03:10:36 AM »Code: [Select]
SetProbeState(True) 'disable Active Low of probe input
SetProbeState(False) 'enable Active Low of probe Input
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
SetProbeState(True) 'disable Active Low of probe input
SetProbeState(False) 'enable Active Low of probe Input
SetProbeActive(bool) // turns the probe ON or off, 1 for on, 0 for off
SetProbeState(bool) // sets the low-active on or off, 1 for on, 0 for off
Sub Main()
Code "G31 Z-150 F300.0"
While IsMoving()
WEnd
Sleep(200)
SetOEMDro(802, -3.4)
Sleep(200)
Code "G00 Z3.0000"
While IsMoving()
Wend
End Sub
--open Operator -> VB Script Editor
Open "C:\Mach3\probecoords.txt" For Append As #1 ' Open to write file.
'write machine coord's
Write #1,"X: " & GetOEMDro(83) & " Y: " & GetOEMDro(84) & " Z: " & GetOEMDro(85)
Close #1