"KeyError" suddenly appears after moving a limitswitch

More
05 Aug 2025 02:51 #332863 by Lcvette
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.

More
05 Aug 2025 04:40 - 06 Aug 2025 20:13 #332864 by SebastianM
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. 
Last edit: 06 Aug 2025 20:13 by SebastianM.

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

More
06 Aug 2025 19:11 - 06 Aug 2025 22:01 #332972 by SebastianM
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
Last edit: 06 Aug 2025 22:01 by SebastianM.

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

More
07 Aug 2025 18:28 #333013 by Lcvette
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.

More
07 Aug 2025 18:30 #333014 by SebastianM
Good question.
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.

More
07 Aug 2025 19:17 #333016 by Lcvette
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.

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

More
07 Aug 2025 20:25 #333018 by SebastianM
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. 
The following user(s) said Thank You: Lcvette

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

More
07 Aug 2025 20:45 #333019 by Lcvette
Awesome. Glad it's working!

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

Moderators: KCJLcvette
Time to create page: 0.132 seconds
Powered by Kunena Forum