Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: BR549 on July 13, 2011, 10:55:35 PM

Title: Sus WhileDO()
Post by: BR549 on July 13, 2011, 10:55:35 PM
Has anyone figured out a way to Suspend a macro so you can do a Jog move in mach then press a KEY to return to the macro ??

I think it is time to ask for a

Sus WhileDo()
Susend

How about it Mathew???

(;-) TP
Title: Re: Sus WhileDO()
Post by: stirling on July 14, 2011, 07:48:53 AM
I won't ask why....

how about...

setVar(1000,0)
while getVar(1000)=0
  sleep (100)
wend

and then in a button

setVar(1000,1)

Ian
Title: Re: Sus WhileDO()
Post by: BR549 on July 14, 2011, 11:07:05 AM
OK that is a common hold state(;-) will it allow one to do other things such as JOG while it is active?

Trying to only use 1 button(;-). There are ONLY so many buttons on the hand pendant and 20 buttons on a useable pendant does not work(;-) Might as well have the keyboard in my hand. LOLOLOL

Just a thought(;-)TP
Title: Re: Sus WhileDO()
Post by: stirling on July 14, 2011, 11:34:09 AM
OK that is a common hold state(;-)
a what?

will it allow one to do other things such as JOG while it is active?
That it will sir...

Trying to only use 1 button(;-). There are ONLY so many buttons on the hand pendant and 20 buttons on a useable pendant does not work(;-) Might as well have the keyboard in my hand. LOLOLOL
It only uses one button...

You just can't please all of the people all of the time... ;D
Title: Re: Sus WhileDO()
Post by: BR549 on July 14, 2011, 01:28:53 PM
I have used that hold state inside of macros but never from an outside prespective.

YEP testing shows it certainly will allow outside movement while in the hold state (;-)

SO as long as I don't have any other macros running concurrently that use that approach then 1 button it is (;-)

Now the plasma G68 part rotation is a 1 button option.

Thanks Ian, I learn something new almost every day, (;-)
Title: Re: Sus WhileDO()
Post by: ger21 on July 14, 2011, 04:24:09 PM
Quote
Thanks Ian, I learn something new almost every day, (;-)

Everyone should. ;)
Title: Re: Sus WhileDO()
Post by: BR549 on July 14, 2011, 04:34:52 PM
Would still be nice to have the Sus WhileDo() function With the hotkey declared inside the () as in Sus WhileDo(^F4)

Just a thought(;-) TP