Hello Guest it is March 29, 2024, 08:08:36 AM

Author Topic: Sus WhileDO()  (Read 4002 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Sus WhileDO()
« 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

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Sus WhileDO()
« Reply #1 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Sus WhileDO()
« Reply #2 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

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Sus WhileDO()
« Reply #3 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Sus WhileDO()
« Reply #4 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, (;-)

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Sus WhileDO()
« Reply #5 on: July 14, 2011, 04:24:09 PM »
Quote
Thanks Ian, I learn something new almost every day, (;-)

Everyone should. ;)
Gerry

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

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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Sus WhileDO()
« Reply #6 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