1
General Mach Discussion / Re: Mach3 macro homing
« on: February 23, 2022, 01:36:07 PM »
Hi,
just a followup, I have been frustrated that my macro with homing is working with other motions controllers, and more or less gave up and accepted that I had to press cyclestart when enabling my c-axis with homing macro, but yesterday evening I tried different things again, and the solution was quite easy, I put a sleep command before the homing command, and it also only worked with the refcombination command, not dooembutton. I could use the sleep down to around 100 and it still worked most of the time, so 500 was on the safe side, tested it around 30 times, so think it's working as it should.
Link to my questions at warp9 forum:
https://warp9td.com/index.php/kunena/8-requests-and-suggestions/8921-mach3-smoothstepper-homing-bug?limitstart=0
snip from my code:
ActivateSignal(OUTPUT4)
Sleep(300)
If GetOEMLED(845) Then
Code "G91 G0 C35"
While isMoving()
Wend
End If
sleep(500)
refcombination(32)
'DoOEMButton(1027)
'Call dobutton(27)
just a followup, I have been frustrated that my macro with homing is working with other motions controllers, and more or less gave up and accepted that I had to press cyclestart when enabling my c-axis with homing macro, but yesterday evening I tried different things again, and the solution was quite easy, I put a sleep command before the homing command, and it also only worked with the refcombination command, not dooembutton. I could use the sleep down to around 100 and it still worked most of the time, so 500 was on the safe side, tested it around 30 times, so think it's working as it should.
Link to my questions at warp9 forum:
https://warp9td.com/index.php/kunena/8-requests-and-suggestions/8921-mach3-smoothstepper-homing-bug?limitstart=0
snip from my code:
ActivateSignal(OUTPUT4)
Sleep(300)
If GetOEMLED(845) Then
Code "G91 G0 C35"
While isMoving()
Wend
End If
sleep(500)
refcombination(32)
'DoOEMButton(1027)
'Call dobutton(27)