1191
General Mach Discussion / Re: Plasma ignition and stop lag problem
« on: July 06, 2019, 06:59:30 AM »
if your run in Plasma mode with THC on, it will allways wait until torch on Signal Shows up.
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.
Const LastMsDRO = 1300 'DRO for data
Dim LastMs As Long
LastMs = GetUserDRO(LastMsDRO)
If LastMs > 6000 Then
LastMs = 0
'save the actual workoffset
Open "C:\Mach3\ActOffset.txt" For Output As #1 ' Open to write file.
'get the actual offset
wo = GetOEMDro(46)+53
Write #1, wo
Close #1
End If
LastMs = LastMs + 10
'save data
SetUserDRO(LastMsDRO,LastMs)
Sub Main()
'save the actual workoffset
Open "C:\Mach3\ActOffset.txt" For Output As #1 ' Open to write file.
'get the actual offset
wo = GetOEMDro(46)+53
Write #1, wo
Close #1
'shut down Mach3
SendKeys "%+{F4}"
End Sub
Sub Main()
'read last workoffset
Open "C:\Mach3\ActOffset.txt" for Input As #2 ' Open to read file.
Line Input #2, FileData ' Read a line of data.
Close #2
' make sure that we only restore the WO once
If FileData <> "999" Then
Code "G"&FileData
End if
'clear the WO data
Open "C:\Mach3\ActOffset.txt" For Output As #1 ' Open to write file.
Write #1, 999
Close #1
End Sub
As an alternate idea. Is there any way to switch the active Port and Pin settings for the probe using a macro? I could just do that with a button on the screen if I needed to.
#100=2
G1 X0 F500
M1234
M98 P#100 L1
M30
O1
G1X1 F500
M99
M30
%
O2
G1X2 F500
M99
M30
%
SetVar(100,2)