Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:10:32 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Queue not refilling... why?
Pages: 1 2 »   Go Down
Print
Author Topic: Queue not refilling... why?  (Read 419 times)
0 Members and 1 Guest are viewing this topic.
lfleiva
Active Member

Offline Offline

Posts: 33


View Profile
« on: August 29, 2011, 12:32:30 PM »

Hi,
I have this problem: the queue is not refilling while running the g-code. It just empties an then stops movement for a couple seconds refills and continues until the queue empties.  I am using 40 in lookahead.

The machine worked fine until last week, so I though maybe could be a virus or something from Windows so I reinstalled the whole windows and reused the XML file: same thing.  So now I think it must be a configuration somewhere but just can't find it.  I've never seen this behaviour before.

Someone has the answer??

Thanks
Luis
Logged
Hood
Active Member

Online Online

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #1 on: August 29, 2011, 01:05:59 PM »

Attach your xml and maybe the problem can be found.
Hood
Logged
lfleiva
Active Member

Offline Offline

Posts: 33


View Profile
« Reply #2 on: August 29, 2011, 01:16:12 PM »

Found the problem!

I have an M-code to remove the menu from screen, so I entered it to the macropump.m1s as a line:
code "M1000"

It turned out this was the problem.
Solved it removing the Code"M1000" and entering the line DoOEMButton(348),  which is the only line in M1000.m1s

Hood, do you know why this happens?

Luis

Logged
HimyKabibble
V4 Screen Contributor

Offline Offline

Posts: 1,348



View Profile
« Reply #3 on: August 29, 2011, 03:06:14 PM »

You really should not put something like that into the macropump, as the macropump is executed ~10X/second.  You should not need to execute that command more than once.  The macropump should also NEVER be used for anything that takes any significant time to execute.

Regards,
Ray L.
Logged

Regards,
Ray L.
Hood
Active Member

Online Online

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #4 on: August 29, 2011, 03:21:01 PM »

If you want that macro to run on startup then add it to the initialisation line on the General Config page.
Hood
Logged
lfleiva
Active Member

Offline Offline

Posts: 33


View Profile
« Reply #5 on: August 29, 2011, 06:06:08 PM »

I'll do that Hood.
Ray: I do have a sleep(1000) in the macropump so it is not executing that much.
Thanks to both.
Luis
Logged
HimyKabibble
V4 Screen Contributor

Offline Offline

Posts: 1,348



View Profile
« Reply #6 on: August 29, 2011, 08:30:37 PM »

You should NEVER put a Sleep into a macropump!  Macropumps are for simple functions that can be completed QUICKLY, and without ANY delay.  Putting a Sleep in completely defeats the purpose, and WILL cause problems.
Logged

Regards,
Ray L.
stirling
Global Moderator
*
Offline Offline

Posts: 1,190

UK


View Profile WWW
« Reply #7 on: August 30, 2011, 04:06:23 AM »

Not sure I can see the point of putting this in the init string either. When you turn off the menu it's state is stored in the xml anyway. Once it's off - it's off accross all future sessions - until you turn it back on again.

Ian
Logged
Hood
Active Member

Online Online

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #8 on: August 30, 2011, 04:11:47 AM »

That is true but it may be it is turned on and forgotten to again turn off before  Mach is. If that happened then the next start they would be available and it may be desired that operators can not access them so if its in the initialisation string it will automatically hide them on the reset.
Hood
Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,190

UK


View Profile WWW
« Reply #9 on: August 30, 2011, 04:29:15 AM »

A good point well made  Tongue

Ian
Logged
Pages: 1 2 »   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!