GScreen limit switch issue

More
05 Feb 2022 22:55 #234060 by Ivan_The_Red
Ive added some limit switches to my machine which is currently using GScreen and everything is working as expected except for one issue. When im using my keyboard arrow keys to manually jog the machine and i trip any of the limit switches i get error messages that fill up my entire screen in a strange scrolling fashion . This does not happen when i run a program or use an mdi command and a limit switch gets tripped. I have no idea how to fix this....any help would be greatly appreciated.
Thanks

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

More
06 Feb 2022 00:20 #234064 by cmorley
Replied by cmorley on topic GScreen limit switch issue
my guess here is the keyboard release event is not caught so it keeps trying to jog and can't so errors.
It's been a while since I've been in the gscreen code but I could look later.

This is 2.8? Do you use compiled version or an installed version?

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

More
06 Feb 2022 00:38 #234069 by Ivan_The_Red
Hi Chris, I was really hoping Id hear from you, thanks for the reply....Im using a downloaded version.

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

More
06 Feb 2022 08:44 #234086 by cmorley
Replied by cmorley on topic GScreen limit switch issue
Hi Ivan.

I'm happy you are still happy with your Gscreen based screen.
First I'll point out that if you set up the system correctly that you should never hit the hard limit switches unless there is a serious mechanical/electrical problem.
You can use the limit switches as homing switches.
You probably know all this but I thought I'd mention it anyways - but that still wouldn't properly fix the problem you are talking of.

Next I wonder if you can post a pic of the multi error messages.
Finally can you run linuxcnc from the terminal and see if the terminal gives any clues.

Chris

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

More
06 Feb 2022 22:59 #234192 by Ivan_The_Red
here are some screen shots of the error messages im getting during a keyboard jog into a limit switch trigger. i did test the limit switch functionality with a mechanical switch physically wired to my 7I76 as a jog button and the error messages went away. i think that reinforces your assumption that the keyup event may not be detected.let me know if you have any ideas and thanks for taking the time to lend a hand.
Attachments:

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

More
06 Feb 2022 23:12 #234195 by cmorley
Replied by cmorley on topic GScreen limit switch issue
Yes thanks for pics and your test.
I think if we cancel keyboard jogging on any caught error would cover this.
Now I just need to remember the code enough to make a patch to try :)

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

More
06 Feb 2022 23:58 #234199 by Ivan_The_Red
i did attempted to modify the key events in my gscreen.py but i dont know python programming all that well and i couldnt find out how to accomplish what you just suggested......i really did try though

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

More
07 Feb 2022 05:08 #234224 by cmorley
Replied by cmorley on topic GScreen limit switch issue
Can you find and replace or edit this file in your system?

 
Attachments:

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

More
07 Feb 2022 13:55 #234243 by Ivan_The_Red
Hi Chris,
If I knew where it was, i can edit it or replace it......can you tell me where its located?

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

More
08 Feb 2022 06:35 #234327 by cmorley
Replied by cmorley on topic GScreen limit switch issue
I would try looking in:
/usr/lib/python/dist-packages/lib/python/gscreen/

I don't use an installed version so can't confirm.

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

Time to create page: 0.131 seconds
Powered by Kunena Forum