MDI

More
07 Jan 2020 22:28 #154269 by pbreed
MDI was created 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...

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

More
10 Jan 2020 00:40 #154513 by pbreed
Replied by pbreed on topic MDI
Ok Step 1 complete.... I got PP working in virtual box the modified the mill UI to allow multiple MDI Type ahead.

All of my changes should be labeled #Paul MDI
Attachments:

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

More
10 Jan 2020 01:13 #154516 by pbreed
Replied by pbreed on topic MDI
Realize that I missed clearing the MDI command Queue in Reset and Stop...
That is now fixed
Attachments:

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

More
10 Jan 2020 17:44 #154563 by pbreed
Replied by pbreed on topic MDI
Ok here is the fully workingt version with display and everyuthing.
Handles errors, stop reset correctly.
(IE it clears the MDI queue on any of these)
Only one file is modified tormach_mill_ui.py

I'll probably do the same for the Lathe at some point
Attachments:
The following user(s) said Thank You: Clive S

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

More
11 Jan 2020 03:43 #154594 by pbreed
Replied by pbreed on topic MDI
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

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

Moderators: cncbasher
Time to create page: 0.277 seconds
Powered by Kunena Forum