Hello Guest it is October 14, 2019, 12:12:28 AM

Author Topic: order  (Read 1611 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  240 240
    • View Profile
order
« 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

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: order
« Reply #1 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)
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html