USB pendant stops working after using macros

More
08 Nov 2025 02:51 #338065 by frayja2002
Hi all

I have a dragon rise USB board (pendant) attached to one of my machines. When I first home the machine all of the buttons work as expected (IE I can jog the machine around)

After I press one of the macro buttons on the screen ( Switched Home or Work Zero) the USB pendant stops working.
I'm guessing that the macros are not exiting properly but I can find no errors.
I am running debian 3.10 with LinuxCNC 2.9.4

I'm hoping someone can give me some pointers on this.
Thanks
Alex
 
Attachments:

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

More
08 Nov 2025 15:53 #338082 by cmorley
Replied by cmorley on topic USB pendant stops working after using macros
After the macro runs, I believe the machine is in MDI mode.
I bet HALUI needs the machine in manual to allow jogging.

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

More
09 Nov 2025 03:01 - 09 Nov 2025 21:08 #338098 by frayja2002
Replied by frayja2002 on topic USB pendant stops working after using macros
Yes I have checked & that is the case. I should have realised.

Thanks.

PS is there a way that when the macro ends it tells LinuxCNC to go back into man mode?
...... Actually now I think about it is it possible to have a usb button that sets it back to man mode.

Alex
 
Last edit: 09 Nov 2025 21:08 by frayja2002.

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

More
09 Nov 2025 10:52 #338109 by rodw
There is a halui pin halui.mode.manual  that can do this and halui.mode.teleop will enable jogging. I have used these with pendants. 

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

More
09 Nov 2025 21:39 - 13 Nov 2025 21:05 #338125 by frayja2002
Replied by frayja2002 on topic USB pendant stops working after using macros
I have tried to setup one of the USB buttons to put it back into Man mode but the crash report keeps telling me I have used this before.
Line 65 of the report referring to line 26 of the USB hal.

Sorry. Ignore this post I found the problem.
I'll test some more soon as I get time.

Thanks
Alex


Later....
Just to finish this off, I added this line to my USB buttons hal file & everything seems to work as expected.

# Go into Manual mode
net man_mode <= halui.mode.manual <= input.0.btn-base2

 
Attachments:
Last edit: 13 Nov 2025 21:05 by frayja2002.

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

Moderators: cmorley
Time to create page: 0.082 seconds
Powered by Kunena Forum