Gcode error

More
14 years 6 months ago #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.

Attachment gcodeprogramm.ngc not found

Please Log in to join the conversation.

More
14 years 6 months ago #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

Please Log in to join the conversation.

More
14 years 6 months ago #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 to join the conversation.

More
14 years 6 months ago #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 to join the conversation.

More
14 years 6 months ago #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.

Attachment gcodeprogramm-f93b9c2831d05a89a13ab1bdd9bb6249.ngc not found

Please Log in to join the conversation.

More
14 years 6 months ago #18989 by rene
Replied by rene on topic Re:Gcode error
After exiting Axis this error is shown.

Attachment error-0e63d7d62cb34825bb6c0e3ec60255a6.txt not found

Please Log in to join the conversation.

More
14 years 6 months ago #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 to join the conversation.

More
14 years 6 months ago #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 to join the conversation.

More
14 years 6 months ago #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 to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum