axis select

More
22 Sep 2023 09:06 #281355 by Aciera
axis select was created by Aciera
Try using

halui.axis.L.select bit in

pin for selecting axis by letter
The following user(s) said Thank You: fomer

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

More
22 Sep 2023 09:44 - 22 Sep 2023 09:45 #281359 by Aciera
Replied by Aciera on topic axis select
Could you attach your ini and hal files?
Last edit: 22 Sep 2023 09:45 by Aciera.

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

More
22 Sep 2023 13:21 #281373 by Aciera
Replied by Aciera on topic axis select
in your hal file none of the halui.axis.L.select pins are connected to anything.
Example here for axis x, same for y,z,a,b :

net joint-select-x halui.axis.x.select

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

More
22 Sep 2023 14:06 #281379 by Aciera
Replied by Aciera on topic axis select
which graphical interface are you using?
The following user(s) said Thank You: fomer

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

More
22 Sep 2023 14:19 - 22 Sep 2023 14:19 #281382 by Aciera
Replied by Aciera on topic axis select
Yes in AXIS gui, halui.axis.L.select will not change the mark of the selected axis.

I'm not sure if there is another gui with axis selection as most seem to provide separate jog buttons for all active axes.
Last edit: 22 Sep 2023 14:19 by Aciera.

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

More
25 Sep 2023 05:27 - 28 Sep 2023 00:28 #281577 by phillc54
Replied by phillc54 on topic axis select
This should work for the AXIS GUI. Copy the attached file to your config directory then edit the INI file, in the [DISPLAY] section add:
USER_COMMAND_FILE = axis_selection.py
This will change the axis selection on the 0 to 1 transition of any halui joint/axis select pin.
 

File Attachment:

File Name: axis_selec...09-27.py
File Size:2 KB
Attachments:
Last edit: 28 Sep 2023 00:28 by phillc54. Reason: Change file for both python2 and python3
The following user(s) said Thank You: Aciera, fomer

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

More
27 Sep 2023 04:47 - 27 Sep 2023 05:22 #281691 by phillc54
Replied by phillc54 on topic axis select
What version of LinuxCNC are you running?

I just tried 2.8 on Buster and that works fine. I have test on 2.8, 2.9 and master.

Are you running it as a USER_COMMAND_FILE for the AXIS GUI in your INI file?

 
Last edit: 27 Sep 2023 05:22 by phillc54.
The following user(s) said Thank You: fomer

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

More
27 Sep 2023 05:38 #281693 by phillc54
Replied by phillc54 on topic axis select
Can you run LinuxCNC in a terminal and screenshot the exact error.

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

More
27 Sep 2023 06:04 - 28 Sep 2023 00:33 #281697 by phillc54
Replied by phillc54 on topic axis select
Is it possible that axis_selection.py has got some DOS/Windows style line endings?
You could try a copy paste from here:
Edit: Code fixed  here
 
Last edit: 28 Sep 2023 00:33 by phillc54.
The following user(s) said Thank You: fomer

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

More
27 Sep 2023 06:13 #281700 by phillc54
Replied by phillc54 on topic axis select
What Linux distribution are you using?
My testing has been on Debians Buster and Bookworm.
The following user(s) said Thank You: fomer

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

Time to create page: 0.093 seconds
Powered by Kunena Forum