2
« on: January 13, 2016, 06:58:25 AM »
Recently I converted my machine (AXYZ Millenium) under the control of MACH3.
Using wonderful 2010 screnset.
To initial spindle warm up, setup zeros and soft limits enablling check written a small macro code.
I call it M900 and write code M900 in initialization string field.
Perhaps it will be useful to someone.
macro:
Ret = MachMsg("Reference Axis?", "Axis Question", 1)
If Ret = 1 Then
Code "M887"
While IsMoving()
Wend
Sleep(1000)
Code "M885"
While IsMoving()
Wend
Sleep(1000)
Code "M886"
While IsMoving()
Wend
Sleep(1000)
If GetOEMLED(815) Then
Message "Soft Limits ON"
Else
DoOEMButton(119)
sleep(100)
If GetOEMLED(815)=0 Then
Message "Can Not enable SoftLimits!"
Else
Message "Soft Limits ON"
End If
End If
ElseIf Ret = 2 Then
End If
Ret = MachMsg("WarmUp Spindle?", "Spidle Question", 1)
If Ret = 1 Then
SetSpinSpeed(5000)
DoSpinCW()
Message "Spindel warmup 10 min left"
For i=0 To 7
Sleep(30000)
Next i
SetSpinSpeed(10000)
Message "Spindel warmup 6 min left"
For i=0 To 11
Sleep(30000)
Next i
DoSpinStop()
Message "Ready"
ElseIf Ret = 2 Then
End If