"KeyError" suddenly appears after moving a limitswitch
- Lcvette
-
- Away
- Moderator
-
Less
More
- Posts: 1449
- Thank you received: 701
05 Aug 2025 02:51 #332863
by Lcvette
Replied by Lcvette on topic "KeyError" suddenly appears after moving a limitswitch
ok, so then in your other config in the ini, add G54 to the start line and it should resolve for the time being. I will investigate the scenario here with it removed from the startup and see if i can reproduce, if so i will look at hardcoding a default work offset for startup to avoid the error in future releases. great job identifying the difference!
The following user(s) said Thank You: SebastianM
Please Log in or Create an account to join the conversation.
- SebastianM
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 3
05 Aug 2025 04:40 - 06 Aug 2025 20:13 #332864
by SebastianM
Replied by SebastianM on topic "KeyError" suddenly appears after moving a limitswitch
Hi!
I am 99% sure that I do have G54 in my startup code, but I will double check tomorrow.
Thx!
Update: Confirmed - G54 was in the startup code line.
I am 99% sure that I do have G54 in my startup code, but I will double check tomorrow.
Thx!
Update: Confirmed - G54 was in the startup code line.
Last edit: 06 Aug 2025 20:13 by SebastianM.
Please Log in or Create an account to join the conversation.
- SebastianM
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 3
06 Aug 2025 19:11 - 06 Aug 2025 22:01 #332972
by SebastianM
Replied by SebastianM on topic "KeyError" suddenly appears after moving a limitswitch
Update / Wednesday 5:52PM:
finally found the root cause for this behavior.
Its line 25 in my pendant.hal
# --- ESTOP-EXT ---
net pendant-estop <= hm2_7i76e.0.7i76.0.0.input-29
when I comment it out, everything is fine.
Now I just have to understand whats going on with this signal.
Regards
Sebastian
###############################
OK, I am one step closer.. I created a "virgin" configuration.. that worked fine and didnt show this error. Than I started copying my old config file by file into the new folder to narrow down when this error would be introduced.
And - believe it or not - it happens as soon as I include my pendant.hal file.
Here is a screencast. Its 100% reproducable.
As soon as "G54" is highlighted in the top left corner, everything is fine. When its "off", I always get this popup...
Does this make any sense to you?
this is my config.
github.com/SebastianMusser/LinuxCNC
finally found the root cause for this behavior.
Its line 25 in my pendant.hal
# --- ESTOP-EXT ---
net pendant-estop <= hm2_7i76e.0.7i76.0.0.input-29
when I comment it out, everything is fine.
Now I just have to understand whats going on with this signal.
Regards
Sebastian
###############################
OK, I am one step closer.. I created a "virgin" configuration.. that worked fine and didnt show this error. Than I started copying my old config file by file into the new folder to narrow down when this error would be introduced.
And - believe it or not - it happens as soon as I include my pendant.hal file.
Here is a screencast. Its 100% reproducable.
As soon as "G54" is highlighted in the top left corner, everything is fine. When its "off", I always get this popup...
Does this make any sense to you?
this is my config.
github.com/SebastianMusser/LinuxCNC
Last edit: 06 Aug 2025 22:01 by SebastianM.
Please Log in or Create an account to join the conversation.
- Lcvette
-
- Away
- Moderator
-
Less
More
- Posts: 1449
- Thank you received: 701
07 Aug 2025 18:28 #333013
by Lcvette
Replied by Lcvette on topic "KeyError" suddenly appears after moving a limitswitch
I wonder if it's because it's being loaded before the GUI is loaded
Please Log in or Create an account to join the conversation.
- SebastianM
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 3
07 Aug 2025 18:30 #333014
by SebastianM
Replied by SebastianM on topic "KeyError" suddenly appears after moving a limitswitch
Good question.
I also wonder is this really is a PB issue or maybe a general LinuxCNC topic. What do you think?
I also wonder is this really is a PB issue or maybe a general LinuxCNC topic. What do you think?
Please Log in or Create an account to join the conversation.
- Lcvette
-
- Away
- Moderator
-
Less
More
- Posts: 1449
- Thank you received: 701
07 Aug 2025 19:17 #333016
by Lcvette
Replied by Lcvette on topic "KeyError" suddenly appears after moving a limitswitch
It looks like maybe a comflict in pb, the ui tries loading which should set an active work coordinate system. This is how the button synchronization and exclusivity functions.
It may be your pendant code. This is the first error of that nature ive had reported in 8 years and there are thousands of pendant users out there.
I would try moving any items that need to synchronize with the gui into the postgui halfile and see if functionality still works and the error goes away.
It may be your pendant code. This is the first error of that nature ive had reported in 8 years and there are thousands of pendant users out there.
I would try moving any items that need to synchronize with the gui into the postgui halfile and see if functionality still works and the error goes away.
Please Log in or Create an account to join the conversation.
- SebastianM
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 3
07 Aug 2025 20:25 #333018
by SebastianM
Replied by SebastianM on topic "KeyError" suddenly appears after moving a limitswitch
Success!
I moved that line to my posthui.hal and now everything works.
# --- ESTOP-EXT ---
net pendant-estop <= hm2_7i76e.0.7i76.0.0.input-29
Thx for the support.
I moved that line to my posthui.hal and now everything works.
# --- ESTOP-EXT ---
net pendant-estop <= hm2_7i76e.0.7i76.0.0.input-29
Thx for the support.
The following user(s) said Thank You: Lcvette
Please Log in or Create an account to join the conversation.
- Lcvette
-
- Away
- Moderator
-
Less
More
- Posts: 1449
- Thank you received: 701
07 Aug 2025 20:45 #333019
by Lcvette
Replied by Lcvette on topic "KeyError" suddenly appears after moving a limitswitch
Awesome. Glad it's working!
Please Log in or Create an account to join the conversation.
Moderators: KCJ, Lcvette
Time to create page: 0.132 seconds