Manufacturing Data Systems, Inc.
 
Author Previous Topic Topic Next Topic  
Dnguyen
New


19 Posts
Posted -  8/19/2008  :  8:04:04 PM
Hi everyone,

            If anyone could shine a light on a problem that I have, I would be very grateful.  We are using MDSI Open CNC 6.6 on a Windows XP-single processor machine.  It is a four axis machine, A, X and Z are three of the programmed axes.
I have a parts program as shown below:


------Start of Program------


vb #1 = 1

vb #2 = (#1-1)*5

E00

G90

G01 Z17 F350

X21.5800

A#2 F400

M00

G91

A700.000 F770

Label Start

A360.0000 X1.5 F770

vb #1 = #1 + 1

IFvb (#1 < 10) GOTO Start


------End of Program------


It’s a relatively simple program: The user may change the first line to “vb #1 = x” where x is maybe from 1 to 9.  Changing the first line will start the parts program from a particular location and continue until #1=10.   
I have simplified the motion after “label Start” a bit to avoid an un-necessary long code for everyone to read through. 
Basically we run this code about 2 times a day and shut the machine down each day.  Every 3-4 days, we get a “PARSER ERROR -- PLEASE SCAN PART PROGRAM” while it is excuting a line within the "Go-to" loop.
We would put the machine in manual.  Then, rewind the part-program.  Put the machine in Auto, and start the program again.  And everything would be fine again... for a few more days.
Please let me know if anyone has even the slightest idea what is going on, or please let me know of any suggestions you may have for me to try to fix this.
 

Thank you very much,

David


Edited by - Dnguyen on 8/19/2008 8:07:02 PM


Author Replies  
Eric
New


0 Posts
Posted - 8/20/2008 : 10:20:06 AM
Hi David,

I'll need some more information to help with your problem. 

Was there any other message that appeared about the same time as “PARSER ERROR -- PLEASE SCAN PART PROGRAM”?  Often there is another message which starts with "SCAN -- ..." or "Macro fault: ...".


What was the active block at the time you got the error message?  It should be highlighted in yellow in the Program window.  If you could list some of the blocks leading up to the error (including the error block) it would be helpful.

Are you using Subcall, Subfile, Macrofile, or a G-code macro in your program?  The G-code macros would be set up in your tune file using defGMacroNumber and defGMacroFile.

Thanks,

Eric 

quote:
Dnguyen wrote:
Hi everyone,

If anyone could shine a light on a problem that I have, I would be very grateful. We are using MDSI Open CNC 6.6 on a Windows XP-single processor machine. It is a four axis machine, A, X and Z are three of the programmed axes.
I have a parts program as shown below:


------Start of Program------


vb #1 = 1

vb #2 = (#1-1)*5

E00

G90

G01 Z17 F350

X21.5800

A#2 F400

M00

G91

A700.000 F770

Label Start

A360.0000 X1.5 F770

vb #1 = #1 + 1

IFvb (#1 < 10) GOTO Start


------End of Program------


It’s a relatively simple program: The user may change the first line to “vb #1 = x” where x is maybe from 1 to 9. Changing the first line will start the parts program from a particular location and continue until #1=10.
I have simplified the motion after “label Start” a bit to avoid an un-necessary long code for everyone to read through.
Basically we run this code about 2 times a day and shut the machine down each day. Every 3-4 days, we get a “PARSER ERROR -- PLEASE SCAN PART PROGRAM” while it is excuting a line within the "Go-to" loop.
We would put the machine in manual. Then, rewind the part-program. Put the machine in Auto, and start the program again. And everything would be fine again... for a few more days.
Please let me know if anyone has even the slightest idea what is going on, or please let me know of any suggestions you may have for me to try to fix this.


Thank you very much,

David


Edited by - Dnguyen on 8/19/2008 8:07:02 PM





Go to Top of Page
Dnguyen
New


19 Posts
Posted - 8/20/2008 : 10:51:01 AM
Hi Eric,

Thank you for responding so quickly!  To answer your follow up question, we are not using Subcall, Subfile, Macrofile, or G-code macros in our program.  I will ask the operator to take a screen shot of the entire error message as well as the yellow highlighted line of the error.  I will get back to you.

Thank you,
David


Go to Top of Page
kvblaircum
New


4 Posts
Posted - 8/20/2008 : 10:10:57 PM
Hello David;

 I have reviewed your post and discussed it with Eric. My suspicion is that from time to time the vb scripting engine is timing out executing one of the program lines that is passed to it. This happens and is often very intermittent in nature.

To resolve the issue add the following argument displayed in bold to the line shown in the *.ost file for your machine. The default timeout is 2 seconds. The example below sets it to 20. 

 

p "C:\Program Files\MDSI\6.6\Programs\blkCalc" -vb -vbTimeout 20000 


Kelly Van Blaircum
Technical Services Manager

MDSI

Manufacturing Data Systems, Inc.
3885 Research Park Drive, Suite A
Ann Arbor, MI 48108-2217
www.mdsi2.com

Direct: 734-327-8214
Fax: 734-769-9112
Support: 888-OpenCNCGo to Top of Page
Dnguyen
New


19 Posts
Posted - 8/26/2008 : 10:19:09 AM
Hi Kelly,
    Thanks for your suggestion.  After reading your post, I did a quick study on blkCalc and noticed a -vbAllowUI option.  I think we'll try to add this statement first so that we can concrete proof that the vb scripting engine is timing out.  If it is the case, then we'll extend the timeout period and should have our machine running 'trouble-free'!

I'll let you know what we find out.

Thanks,
David


Edited by - Dnguyen on 8/26/2008 10:20:21 AM


Go to Top of Page
Dnguyen
New


19 Posts
Posted - 3/18/2009 : 10:57:36 AM
Hello everyone.

     I did as Kelly suggested in the previous post.  It has been working fine since the last 10 or so runs we've ran.  I can confidently say that it has been solved.

Thanks Kelly!
-David



Go to Top of Page


Set us as your default homepage Bookmark us Privacy   © 2008 Manufacturing Data Systems, Inc. All Rights Reserved. Go To Top Of Page