Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 11:33:54 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
| | |-+  Need to interupt while loop
Pages: 1   Go Down
Print
Author Topic: Need to interupt while loop  (Read 1250 times)
0 Members and 2 Guests are viewing this topic.
Whacko
Active Member

Offline Offline

Posts: 240


Happy Days


View Profile
« on: February 15, 2008, 04:49:38 PM »

I am using a system key in Mach3 to interupt a while loop by monitoring a led state. The OEM buttons and OEMled's has a low priority in a macro while loop it seems. I have worked around it, but can't locate info on buttons that has a higher priority and is not assigned to Mach3 system. Is there available buttons for such an interupt?
I am monitoring a button/led while in a timer loop as to terminate the loop via external interupt premature to the timeout.

Whacko
Logged

Nothing's impossible
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: February 15, 2008, 10:04:10 PM »

Redo your While conditon Put and "OR" in your while and the other part is your escape conditon

While (what I am waitin on here) OR (IsActive(INPUT2)) (INPUT2 your escape clause, or button, or led here)
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Whacko
Active Member

Offline Offline

Posts: 240


Happy Days


View Profile
« Reply #2 on: February 16, 2008, 03:18:48 PM »

Hi Scott, thanks for the input, but that won't work. I'm in a timer loop. Whilst in the timer loop, OEM buttons don't trigger an interupt in the kernell. I think I got the answer though. I didn't think of it but it has something to do with the button group.

Whacko
Logged

Nothing's impossible
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!