Axis: Wrong line in program marked and used
03 Apr 2015 17:47 #57479
by SvenH
Axis: Wrong line in program marked and used was created by SvenH
I realised something today that has been staring me in the face for a while.
In axis you have the gcode program shown at the bottom of the screen.
When I right click on a line and choose "run from here" it runs from two lines below the one I highlighted.
Similarly, when I mark a line segment in the viewer, it highlights a line in the gcode two lines above where it is supposed to.
I seem to recall that before one of the recent upgrades it always pointed to the right line or segment...
Has anyone experienced this too?
In axis you have the gcode program shown at the bottom of the screen.
When I right click on a line and choose "run from here" it runs from two lines below the one I highlighted.
Similarly, when I mark a line segment in the viewer, it highlights a line in the gcode two lines above where it is supposed to.
I seem to recall that before one of the recent upgrades it always pointed to the right line or segment...
Has anyone experienced this too?
Please Log in or Create an account to join the conversation.
05 Apr 2015 05:25 #57533
by andypugh
I haven't, but my working machines are running quite old versions.
What Version of LinuxCNC are you using?
Replied by andypugh on topic Axis: Wrong line in program marked and used
Has anyone experienced this too?
I haven't, but my working machines are running quite old versions.
What Version of LinuxCNC are you using?
Please Log in or Create an account to join the conversation.
05 Apr 2015 12:37 - 05 Apr 2015 12:38 #57541
by SvenH
Replied by SvenH on topic Axis: Wrong line in program marked and used
I found the cause.
I sometimes get an error when editing files that says something like "file ended with no percent sign" even when editing a file in the middle that previously worked.
Someone told me to add some blank lines in front of the code as well as behind, plus a % sign.
I had done that with this file too.
After removing the empty lines in front of the code, things were normal again.
Thanks Andy.
I sometimes get an error when editing files that says something like "file ended with no percent sign" even when editing a file in the middle that previously worked.
Someone told me to add some blank lines in front of the code as well as behind, plus a % sign.
%
gcode
%
I had done that with this file too.
After removing the empty lines in front of the code, things were normal again.
%
gcode
%
Thanks Andy.
Last edit: 05 Apr 2015 12:38 by SvenH.
Please Log in or Create an account to join the conversation.
05 Apr 2015 20:04 #57546
by BigJohnT
Replied by BigJohnT on topic Axis: Wrong line in program marked and used
You really should not wrap your code with % unless you understand what that does not do.
linuxcnc.org/docs/html/gcode/m-code.html#sec:M2-M30
The manual is not very explanatory but wrapping your code in %'s means to not do any program end behavior like M2.
linuxcnc.org/docs/html/gcode/overview.html#_file_requirements
JT
linuxcnc.org/docs/html/gcode/m-code.html#sec:M2-M30
The manual is not very explanatory but wrapping your code in %'s means to not do any program end behavior like M2.
linuxcnc.org/docs/html/gcode/overview.html#_file_requirements
JT
Please Log in or Create an account to join the conversation.
06 Apr 2015 00:56 #57556
by SvenH
Replied by SvenH on topic Axis: Wrong line in program marked and used
Thanks John.
I only wrap in % sign when I get an error "file ended with no percent sign or file end"
I do not understand why I would get an error like that, even when there clearly is an M2 on the last line and the file gave no error just before editing something in the middle of the file...
I only wrap in % sign when I get an error "file ended with no percent sign or file end"
I do not understand why I would get an error like that, even when there clearly is an M2 on the last line and the file gave no error just before editing something in the middle of the file...
Please Log in or Create an account to join the conversation.
06 Apr 2015 03:38 #57558
by BigJohnT
Replied by BigJohnT on topic Axis: Wrong line in program marked and used
Did you reload the file after editing? I've seen that error before and just hit the reload button.
JT
JT
Please Log in or Create an account to join the conversation.
Time to create page: 0.135 seconds