Run program from line... from a shell?

More
01 Mar 2021 14:54 #200700 by salvuz
Greetings everybody,
I know how to start program run by shell:

halcmd setp halui.program.run true

But it executes all the G-Code from the start of the program.
Is there a way to specify a certain line from which to start?
Like you do in AXIS GUI when you right click on the line you want to start from, and click on "run from here", but from a command prompt?
Thank you!

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

More
02 Mar 2021 22:49 #200841 by andypugh
Interesting question.

I thought that it might be part of axis-remote
linuxcnc.org/docs/2.8/html/man/man1/axis-remote.1.html

But apparently not.

You can do it from linuxcncrsh:
linuxcnc.org/docs/2.8/html/man/man1/linuxcncrsh.1.html

And that does it here:
github.com/LinuxCNC/linuxcnc/blob/master...intf/emcrsh.cc#L1173

And that called function, sendProgram is found in halui and emcsh too.
But halui always starts at line 0:
github.com/LinuxCNC/linuxcnc/blob/8e38c4..._intf/halui.cc#L1688

So, basically, starting from a different line is supported at the lower levels, but it isn't entirely clear how to get to it from the command line.

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

More
03 Mar 2021 21:54 #200946 by newbynobi
If you are willing to use python, it can be done nearly easy. You may look at the code of gmoccapy for that part. Should be something line on_btn_runfromline_clicked or so. I am not on my pc so I can not look at the exact name of the Def.

Norbert

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

Time to create page: 0.075 seconds
Powered by Kunena Forum