- Posts: 6803
- Thank you received: 0
Anyone willing to help bring jog-while-paused back into master?
keyboard-jog-while-pause-joints-axes4
It's about 18 commits -maybe half merge cleanly.
I tried merging myself but my C++ is knowledge is almost zero and the TP has changed a bit.
I didn't push my merge attempt as I probably guessed wrong a couple times
In particular tpGetPos() : tpGetPos(TP_STRUCT const * const tp, EmcPose * const pos);
now take two vaiables now - emcmotQueue and EMCProse
and i can't figure out what to put in for EMCProse.
Anyways i wonder if someone with more experience would be interested in making it compile in master.
I'd like to experiment and see if it can lead to something.
I'm hitting roadblocks - remapping M2 didn't quite work out yet either.
Chris
Please Log in to join the conversation.
from a quick look I would say, that EmcPose parameter returns a value. So you have to give the adress of an EmcPose variable like this
with respect to the initial issue:
I don't believe, that jog-while-paused is the right way.
Better would be, save current state and allow to resume after hitting Stop.
Heidenhain works that way. They call the function "Goto".
On Fanuc controllers you can turn into singlestep mode. When machine stops for next "Run", you can switch into edit-mode and move cursor. Then you can change back to execute gcode and resume from the new current line.
At job we heavily use that functionality. After toolchange we code a verbose line, that takes all parameters to setup machine for current job like this:
There may be plenty reasons, why you have to abort a running job. Linuxcnc - afaik - is not prepared to resume an aborted job. So this may be the real goal to go for.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
It is and it does have run from here, used daily by several of my clients on plasma cutters.Reinhard wrote: There may be plenty reasons, why you have to abort a running job. Linuxcnc - afaik - is not prepared to resume an aborted job. So this may be the real goal to go for.
Please Log in to join the conversation.
forum.linuxcnc.org/20-g-code/36719-run-f...blem?start=10#156764
Please Log in to join the conversation.
Though I'm sure JWP would be useful to me while i run my lathe.
JWP allows an alternate motion queue to be switched in and out.
So it preserves the machine state at pause, runs another motion list then, adds a move to blend back to the original motion queue state.
This could be useful for more then JWP.
Chris
Please Log in to join the conversation.
github.com/mhaberler/asciidoc-sandbox/wi...while-paused-support
Please Log in to join the conversation.
Please Log in to join the conversation.
I know about run from here. I tested that a lot during development of my app.tommylight wrote: It is and it does have run from here
"run from here" only works, if you setup the machine with mdi first. Right of the box you can't select arbitrary line and run from there.
What does not work too is run from here in single step mode.
I tried to cheat linuxcnc to get it working, but was not successful.
.
Yes, that's an interesting use case. Could be valueable for lathe with milling heads or the like. Great. But lathe with milling head is a typical use case for two instances of linuxcnc, so JWP might be a sync point of both instances.cmorley wrote: JWP allows an alternate motion queue to be switched in and out.
So it preserves the machine state at pause, runs another motion list then, adds a move to blend back to the original motion queue state.
This could be useful for more then JWP.
Please Log in to join the conversation.
I am also very interrested in the jog-while-paused feature and willing to support a port to Master.
But i think i have not enough experience in the linuxcnc internals to do it on my own.
Please Log in to join the conversation.
It is a lot of work.
A proper run-from-line with "calculation" would be simpler and more effective solution to many problems.
With calculation I mean it should read a program up to the selected line and apply all modal functions, change tool if necesarry and get and move to a start position.
So you are able to abort anywhere, jog, change tool, change insert, measure new tool, turn off the machine at the end of the day and continue the next day simply by remembering the line to start at.
I am willing to help with solution for run from line, but I need some kickstart/help. I think that the starting point would be here linuxcnc.positionlogger linuxcnc.org/docs/2.7/html/config/python...sitionlogger_tt_type
Please Log in to join the conversation.
