Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Bill_O on March 29, 2011, 08:21:56 AM

Title: order
Post by: Bill_O on March 29, 2011, 08:21:56 AM
Can anyone tell me why the output in this section of a macro is deactivating before the motor moves up?

'Lift Spindle to safe height
   DoOEMButton(104)
   While IsMoving()
   Sleep(10)
   Wend
'MDF Frame Up
   DeActivateSignal(Output10)
   SetUserLED(1010,0)
   Sleep(2000)

Thanks, Bill
Title: Re: order
Post by: ger21 on March 29, 2011, 11:33:40 AM
Try it without the sleep(10)

'Lift Spindle to safe height
   DoOEMButton(104)
   While IsMoving()
   Wend
'MDF Frame Up
   DeActivateSignal(Output10)
   SetUserLED(1010,0)
   Sleep(2000)