PathPilot mpg jog enable

More
26 Jun 2022 09:06 - 26 Jun 2022 09:09 #245903 by Clive S
Some time ago I fitted 3 mpg's and a spindle encoder to my S1100. This all works fine but for one small thing.

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.

 

File Attachment:

File Name: custom_enc...only.hal
File Size:1 KB

 

File Attachment:

File Name: millshuttl...6-26.hal
File Size:3 KB
Attachments:
Last edit: 26 Jun 2022 09:09 by Clive S. Reason: Had to reload files

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

More
26 Jun 2022 16:58 #245937 by snowgoer540
Hey Clive, 

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.

More
26 Jun 2022 17:00 #245938 by snowgoer540
Here is the terminal outputs by the way <<<>>> stuff is my comments:
<<<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.

More
26 Jun 2022 17:14 #245939 by snowgoer540
Took a few more minutes look at this...

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.

More
26 Jun 2022 17:22 - 26 Jun 2022 17:26 #245940 by Clive S
Replied by Clive S on topic PathPilot mpg jog enable
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.

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 
Last edit: 26 Jun 2022 17:26 by Clive S.

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

More
26 Jun 2022 17:26 #245941 by snowgoer540

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.
The following user(s) said Thank You: tommylight, Clive S

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

More
26 Jun 2022 21:17 #245954 by Clive S
Replied by Clive S on topic PathPilot mpg jog enable
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

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

More
26 Jun 2022 21:29 #245957 by tommylight
Replied by tommylight on topic PathPilot mpg jog enable
Deleted.
Thank you.
The following user(s) said Thank You: Clive S

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

More
26 Jun 2022 22:41 #245963 by snowgoer540

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.

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...

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.

More
26 Jun 2022 23:07 #245965 by tommylight
Replied by tommylight on topic PathPilot mpg jog enable
Snowwy, i was convinced you are in AU !!! No idea why... :(
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.

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