Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:48:12 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Sus WhileDO()
Pages: 1   Go Down
Print
Author Topic: Sus WhileDO()  (Read 444 times)
0 Members and 1 Guest are viewing this topic.
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« on: July 13, 2011, 09: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
Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,190

UK


View Profile WWW
« Reply #1 on: July 14, 2011, 06: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
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #2 on: July 14, 2011, 10: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
Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,190

UK


View Profile WWW
« Reply #3 on: July 14, 2011, 10: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... Grin
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #4 on: July 14, 2011, 12: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, (;-)
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« Reply #5 on: July 14, 2011, 03:24:09 PM »

Quote
Thanks Ian, I learn something new almost every day, (;-)

Everyone should. Wink
Logged

BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #6 on: July 14, 2011, 03: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
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!