MDI
07 Jan 2020 22:28 #154269
by pbreed
I'm using PAthPilot on both a Tormach Lathe and Tormach Mill.
I've upgraded the mill from Mach 3, and one thing about PP is driving me nuts...
The inability to type multiple MDI lines ahead...
I'd like to make an attempt on fixing this....
Basic outline of what I think I'd do...
Step 1)
When you type an MDI command, if the previous command is not complete....
Add it to a list.
Then when the command previous is complete take the next command off the list and run that...
Until no more commands are available...
I see two ways to do this...
a)Add some kind of callback that notifies the python when interp-idle
(I think this would be GSTAT in full Linuxcnc, alas PP does not seem to have this)
b)Just query the MDI command completion state in the 50msec thread....
The 50msec version would put 0 to 50msec pauses in the MDI, so that is probably ok...
One would also have to grab the aborts/errors and clear this MDI list....so bad things did not restart of one had aborted your MDI commaand.....
Step 1 would give you the blind functionality....
Step 2) Either repurpose the GCode display pane in the GUI, or add another window that overlays the Gcode display pane
and enable/disable the appropriate window....so one could see what Gcode one has MDI'd ahead and watch it execute....
I'm a really experienced C++ guy, with limited python and almost no Linuxcnc experience...
So looking for feedback does this look like a workable fix?
If so does anyone have a standalone VM image of a running pathpilot, I can go try and suck and image off my mill and install it in a VM, but a working iso would be wonderful and save me some time...
I've upgraded the mill from Mach 3, and one thing about PP is driving me nuts...
The inability to type multiple MDI lines ahead...
I'd like to make an attempt on fixing this....
Basic outline of what I think I'd do...
Step 1)
When you type an MDI command, if the previous command is not complete....
Add it to a list.
Then when the command previous is complete take the next command off the list and run that...
Until no more commands are available...
I see two ways to do this...
a)Add some kind of callback that notifies the python when interp-idle
(I think this would be GSTAT in full Linuxcnc, alas PP does not seem to have this)
b)Just query the MDI command completion state in the 50msec thread....
The 50msec version would put 0 to 50msec pauses in the MDI, so that is probably ok...
One would also have to grab the aborts/errors and clear this MDI list....so bad things did not restart of one had aborted your MDI commaand.....
Step 1 would give you the blind functionality....
Step 2) Either repurpose the GCode display pane in the GUI, or add another window that overlays the Gcode display pane
and enable/disable the appropriate window....so one could see what Gcode one has MDI'd ahead and watch it execute....
I'm a really experienced C++ guy, with limited python and almost no Linuxcnc experience...
So looking for feedback does this look like a workable fix?
If so does anyone have a standalone VM image of a running pathpilot, I can go try and suck and image off my mill and install it in a VM, but a working iso would be wonderful and save me some time...
Please Log in or Create an account to join the conversation.
10 Jan 2020 17:44 #154563
by pbreed
The following user(s) said Thank You: Clive S
Please Log in or Create an account to join the conversation.
11 Jan 2020 03:43 #154594
by pbreed
Created a drop box with latest version of both mill and lathe MDI modifications.
www.dropbox.com/sh/rcijrsxow79f44b/AABOY...wV5AWS77yGkecSa?dl=0
Version 2.4.1
www.dropbox.com/sh/rcijrsxow79f44b/AABOY...wV5AWS77yGkecSa?dl=0
Version 2.4.1
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.277 seconds