Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: fish.norling@gmail.om on October 16, 2017, 08:28:04 AM

Title: STOP command
Post by: fish.norling@gmail.om on October 16, 2017, 08:28:04 AM
I have created the M101 command

ActivateSignal(OUTPUT2)
Sleep 100000

It activates fine but does not go to sleep, other posts have offered this as valid script, any ideas?

Thanks,
Dave
Title: Re: STOP command
Post by: ger21 on October 16, 2017, 12:23:38 PM
Try:
Sleep(100000)
Title: Re: STOP command
Post by: TPS on October 16, 2017, 01:08:22 PM
hi,
if you have a look to the Mach Script Language Referenceit says:

Sleep  Sub
Sleep(Time As Integer)

so a 100000 is more than an integer can take.

Thomas
Title: Re: STOP command
Post by: fish.norling@gmail.om on October 17, 2017, 09:35:29 PM
Thanks guys, I figured it out and you were helpful!