Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 07:10:28 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  order
Pages: 1   Go Down
Print
Author Topic: order  (Read 205 times)
0 Members and 1 Guest are viewing this topic.
Bill_O
Active Member

Offline Offline

Posts: 104



View Profile
« on: March 29, 2011, 07: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
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« Reply #1 on: March 29, 2011, 10: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)
Logged

Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!