PathPilot mpg jog enable
The mill also has a ShuttleXpress which works fine.
Issue is, that when using the mpg's (all working ok) but then after using the MDI the mpg's stop responding ie become disabled.
I can enable them by pressing any of the buttons on the ShuttleXpress or by pressing any jog keys on the keyboard that will then re-enable the mpg's.
Attachments:
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
- Posts: 2388
- Thank you received: 779
The reason is because the way PathPilot is set up, it puts LinuxCNC into MDI mode when an MDI Command is sent. Then, it does not place LinuxCNC back into Manual mode until you do something that requires it, IE press a jog key.
I am sure there is a way to fix this, but it would involve modifying the ui_common python script. What you are really after is as soon as the MDI loses focus, it sets the machine back to manual mode.
I am getting ready to write them an email for a beta testing finding, I can mention it to see if they are interested in making the change on their end.
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
- Posts: 2388
- Thank you received: 779
<<<TYPED G0X5 INTO MDI AND PRESSED ENTER>>>
2022-06-26 11:39:30.001129 CDT (+0:00:10.535070) | ensure_mode: changing LCNC mode to MODE_MDI [tormach_mill_ui.py:9480]
2022-06-26 11:39:30.043618 CDT (+0:00:00.042489) | issuing MDI command: G0X5 [tormach_mill_ui.py:8279]
2022-06-26 11:39:30.477424 CDT (+0:00:00.433806) | LinuxCNC status.task_mode change was MODE_MANUAL is now MODE_MDI [/home/operator/v2.9.0-BETA-40/python/ui_common.py:7749]
2022-06-26 11:39:30.478119 CDT (+0:00:00.000695) | LinuxCNC interp_state change was INTERP_IDLE is now INTERP_READING [/home/operator/v2.9.0-BETA-40/python/ui_common.py:7758]
2022-06-26 11:39:33.016622 CDT (+0:00:02.538503) | LinuxCNC interp_state change was INTERP_READING is now INTERP_IDLE [/home/operator/v2.9.0-BETA-40/python/ui_common.py:7758]
<<<PRESSED A JOG KEY>>>
2022-06-26 11:39:39.189432 CDT (+0:00:06.172810) | ensure_mode: changing LCNC mode to MODE_MANUAL [tormach_mill_ui.py:9480]
2022-06-26 11:39:39.658557 CDT (+0:00:00.469125) | LinuxCNC status.task_mode change was MODE_MDI is now MODE_MANUAL [/home/operator/v2.9.0-BETA-40/python/ui_common.py:7749]
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
- Posts: 2388
- Thank you received: 779
If you leave the MDI by pressing Enter or Return with a Blank MDI command, then I believe the following would solve your problem...
Change the following in ui_common.py (/home/operator/_VERSION NUMBER YOU ARE ON_/python)
FROM:
if event.keyval in (gtk.keysyms.Return, gtk.keysyms.KP_Enter):
# reset the state flag so that history or autocompletion can capture
# the up/down
self.mdi_line_updownarrow_capture = CAPTURE_FREE
if self.gcode_pattern_search.find_last(event):
return True
TO:
if event.keyval in (gtk.keysyms.Return, gtk.keysyms.KP_Enter):
# reset the state flag so that history or autocompletion can capture
# the up/down
self.mdi_line_updownarrow_capture = CAPTURE_FREE
self.ensure_mode(linuxcnc.MODE_MANUAL)
if self.gcode_pattern_search.find_last(event):
return True
There are other ways to leave the MDI, but they would require a more complex solution. This should get you back in business again
Please Log in or Create an account to join the conversation.
I was hoping that you would come back to me as I believe you have PP on a machine.
I am preparing to sell this machine and did not want to have any problems for the next user so I can now can explain re. the clicking of any button on the shuttle or jog key to get the mpg back in focus.
I have made a crib sheet for the next owner to be able to update to the latest version.
Where are you in the states ?
I want to build a smaller mill from scratch. I like a challenge
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
- Posts: 2388
- Thank you received: 779
Thank you Greg that explains a lot, I thought that it was my fault.
I was hoping that you would come back to me as I believe you have PP on a machine.
Nah, not your fault! I am guilty of having PathPilot on two machines I have an 1100S3, and a Slant Pro that I hardly use, but I got for a deal I couldnt pass up.
I am preparing to sell this machine and did not want to have any problems for the next user so I can now can explain re. the clicking of any button on the shuttle or jog key to get the mpg back in focus.
I have made a crib sheet for the next owner to be able to update to the latest version.
You could add the solution above to the crib sheet, might save some hassle. I always leave MDI by pressing enter on a blank MDI entry anyhow.
I want to build a smaller mill from scratch. I like a challenge
If yours is anything like mine it'll be sad to see it go. That Tormach has built me a lot of neat stuff, including much of my plasma table.
Please Log in or Create an account to join the conversation.
My hobby with cnc stuff is not making parts but modifing the S1100 like making a 12 pocket tool changer
fiting mpg's and encoder for rigid tapping.
As you know I did build a plasma with help from Phil and Tom etc. with PlasmaC then QtplasmaC although I had the S1100 all the stuff was made on the router that I built in 2013
If yours is anything like mine it'll be sad to see it go. That Tormach has built me a lot of neat stuff, including much of my plasma table.
Yes I will be sad but I need the space more.
May I ask where you are in the states
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
- Posts: 19300
- Thank you received: 6462
Thank you.
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
- Posts: 2388
- Thank you received: 779
I actually really enjoy that aspect of all of this as well. I'm tempted to build a tool changer for my 1100 as well. But, other things seem to always take priority...The thing is I am now not far from the age of Paul M so I have to tidy up my life a bit.
My hobby with cnc stuff is not making parts but modifing the S1100 like making a 12 pocket tool changer
fiting mpg's and encoder for rigid tapping.
As you know I did build a plasma with help from Phil and Tom etc. with PlasmaC then QtplasmaC although I had the S1100 all the stuff was made on the router that I built in 2013
If yours is anything like mine it'll be sad to see it go. That Tormach has built me a lot of neat stuff, including much of my plasma table.
Yes I will be sad but I need the space more.
May I ask where you are in the states
Sure, I am in Pennsylvania, near Hershey.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
- Posts: 19300
- Thank you received: 6462
Clive, my name is not Tom etc, it is Tom Berisha! hmmm, what is the "grinning smiley" shortcut?
Please Log in or Create an account to join the conversation.