Run program from line... from a shell?
- salvuz
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
01 Mar 2021 14:54 #200700
by salvuz
Run program from line... from a shell? was created 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!
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4860
02 Mar 2021 22:49 #200841
by andypugh
Replied by andypugh on topic Run program from line... from a shell?
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.
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.
- newbynobi
- Offline
- Platinum Member
Less
More
- Posts: 2072
- Thank you received: 408
03 Mar 2021 21:54 #200946
by newbynobi
Replied by newbynobi on topic Run program from line... from a shell?
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
Norbert
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds