Gcode error

More
05 Apr 2012 09:34 - 05 Apr 2012 09:35 #18982 by rene
Gcode error was created by rene
Hello,

I build this machine:

I want that every Operator our company can use this machine so i made a gladevcp userinterface,
The glade panel is standalone and loads after the axis program.
All hal boxes in this panel are connectet with analog ports.
The gcode programm read these analog ports

The problem is when axis starts the analog ports are zero and axis shows an error message.
how can stop axis from sending this gcode error messages.

In the attach is this gcode programm. Error is in Line 115
Sorry for my bad english.

File Attachment:

File Name: gcodeprogramm.ngc
File Size:4 KB
Attachments:
Last edit: 05 Apr 2012 09:35 by rene.

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 11:26 - 05 Apr 2012 11:31 #18983 by BigJohnT
Replied by BigJohnT on topic Re:Gcode error
You will have to somehow not have a negative feed value to prevent the error. Perhaps use an absolute number that can not be negative.

Very nice video and a neat machine... you do have a lot of error messages on your screen to work out.

John
Last edit: 05 Apr 2012 11:31 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 11:36 #18984 by Rick G
Replied by Rick G on topic Re:Gcode error
Did not have time to follow the logic but perhaps if after...

#<rueckfahrspeed> = [#<temp1> - #<pos1>] / [#<schneidzeit> + #<haltezeit> * 60]
You added logic that...

If <rueckfahrspeed> is less than or equal to 0
#<rueckfahrspeed> equals 10 or some number that will not cause a problem

Then continue, again I have not followed your logic but earlier in your program you have...
#<rueckfahrspeed> = 10

Rick G

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 11:49 #18985 by BigJohnT
Replied by BigJohnT on topic Re:Gcode error
Good idea Rick, I just tested in the Axis Sim and F0 is an acceptable G code so if less than 0 set to 0 should solve the problem.

John

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 14:36 #18988 by rene
Replied by rene on topic Re:Gcode error
Thank you BigT for the compliment.

I have found the problem. :)
At the start of axis the parameter #<laenge> = 0
with this parameter i calculate #<rueckfahrspeed>

#<temp1> = [#<laenge> + 20]
#<leerlaufzahl> = 0
o102 while [#<temp1> GT #<maxlaenge>]
#<temp1> = [#<temp1> - #<maxlaenge>]
#<leerlaufzahl> = [#<leerlaufzahl> + 1]
o102 endwhile

#<rueckfahrspeed> = [#<temp1> - #<pos1>] / [#<schneidzeit> + #<haltezeit> * 60]

so get a negativ number

If fix this with

O112 if [#<laenge> EQ 0]
#<laenge> = 1000
O112 endif

modified Gcode in the attachments

now i get no error massage but when i now start axis the interpreter hang up.

File Attachment:

File Name: gcodeprogr...6249.ngc
File Size:4 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 14:38 - 05 Apr 2012 14:39 #18989 by rene
Replied by rene on topic Re:Gcode error
After exiting Axis this error is shown.

File Attachment:

File Name: error-0e63...55a6.txt
File Size:4 KB
Attachments:
Last edit: 05 Apr 2012 14:39 by rene.

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 14:55 #18991 by BigJohnT
Replied by BigJohnT on topic Re:Gcode error
If when you load a G code file with loops Axis hangs up it is usually a loop that does not ever exit or loops a zillion times.

John

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 15:15 #18993 by ArcEye
Replied by ArcEye on topic Re:Gcode error
Hi

JT beat me, the video looks like it is in an endless loop.

The errors are related to loading the .ngc file too which figures

Only thing to do is revert to the file that loaded and slowly introduce the changes until you hit a problem.
I would suspect that your substitution of 0 for 1000 is having an unforeseen effect in another section of the code.

regards

Please Log in or Create an account to join the conversation.

More
05 Apr 2012 16:11 #18996 by cncbasher
Replied by cncbasher on topic Re:Gcode error
O112 if [#<laenge> EQ 0]
#<laenge> = 1000
O112 endif

this should be a lower than or equals if equate , i under stand this to equate to 0 only and not a lower than or equals , so i recon it hangs up

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum