2491
VB and the development of wizards / Re: homing macro and Ismoving
« on: September 03, 2014, 04:43:21 AM »
Hello Brett,
her the answer for CSLab
Thomas
her the answer for CSLab
Quote
Dear sir,
Homing is an autonomous function of CSMIO/IP motion controllers and Mach3 may have a problem with IsMoving() function.
To control if homing is finished you can use LED diodes GetOemLed(807) / GetOemLed(808) / GetOemLed(809).
DoButton( 22 )
Sleep(200)
While GetOemLed(807) = true
Sleep(50)
If GetOemLed(800) Then
Sleep(500)
Message"Error"
End
End If
Wend
Message"Axis referenced"
The way shown above works perfect
Regards
Wojtek Trawicki
Thomas