How to debbug GCode

More
04 Dec 2011 21:23 #15380 by babis
How to debbug GCode was created by babis
Hello

I have a gcode which produce the following error when i try to run it on Axis:
"I word given for arc in yz plane"
With no line number info it is almost imposimble to debug the code.
Is it any way to find out which line produce the error?

Thanks

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

More
04 Dec 2011 21:26 #15381 by BigJohnT
Replied by BigJohnT on topic Re:How to debbug GCode
The error should give a "near line xx" in the error message but a quick search of your g code for I in an arc should find it. Or your plane is set for G18 when you meant it to be G17

John

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

More
05 Dec 2011 11:55 #15401 by babis
Replied by babis on topic Re:How to debbug GCode
Thank you for the response

There is no "near line xx" . I was hoping that is some way to to see that message.
It is hard to check several hundreds of code lines, but from what i have see there is no I in an arc, but i am not sure that i didn't miss something, and there is no G18 or G17 command.

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

More
05 Dec 2011 13:43 #15404 by BigJohnT
Replied by BigJohnT on topic Re:How to debbug GCode
Opps I meant to say G19... and the I is not valid when your in the YZ plane.

www.linuxcnc.org/docview/html/gcode_main.html#sub:G2,-G3:-Arc

www.linuxcnc.org/docview/html/gcode_main.html#sub:G17,-G18,-G19:

John

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

More
05 Dec 2011 16:41 #15409 by cncbasher
Replied by cncbasher on topic Re:How to debbug GCode
has this code been produced for emc or has been produced for another machine
what postprocess has been used to produce the gcode

also a small program showing the error also helps

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

More
05 Dec 2011 18:28 #15413 by babis
Replied by babis on topic Re:How to debbug GCode
The code was produced for EMC from GCam. There is no G17,G18 or G19 command so i add a G17 command in the beggining of the code and that looks to solve the problem.
Now i am running the code with the machine off just to make sure that everythng is ok.

Thank you all.

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

Time to create page: 0.204 seconds
Powered by Kunena Forum