Adjust soft limits from the UI?

More
25 Apr 2023 18:13 #269878 by Geosec
Adjust soft limits from the UI? was created by Geosec
Is there an easy way to adjust the soft limits from the user interface?
I have a small bench-top mill and sometimes the vice overhangs the back of the table. With limited Y axis travel I'd like to change the Y- soft limits to match whether or not the vice is installed on the table.
The way I do it now is to have two different setups of LinuxCNC... one for with the vice and one without, and launch the appropriate one on startup.
Thanks.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
25 Apr 2023 18:19 #269879 by tommylight
Replied by tommylight on topic Adjust soft limits from the UI?

The way I do it now is to have two different setups of LinuxCNC... one for with the vice and one without, and launch the appropriate one on startup.

That is exactly what i wanted to suggest.

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

More
25 Apr 2023 18:29 #269880 by Aciera
Replied by Aciera on topic Adjust soft limits from the UI?
You can access the limit values through hal like this example:
net limit-x-max-set <= your_x_max_limit_value => ini.x.max_limit
net limit-x-min-set <= your_x_min_limit_value => ini.x.min_limit

so you could switch between two fixed values set in the ini file or i suppose you could also use a pyvcp slider to set it.

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

More
25 Apr 2023 18:31 #269881 by Geosec
Replied by Geosec on topic Adjust soft limits from the UI?
Yea, I don't know how the program works re: soft limits. Wondered if maybe they are loaded at start up and changing would require a restart.
Was hoping a custom button could be added to the UI where, the Y- could be moved to the limit I want and a "SET Y- LIMIT" button could be clicked. Then a... Set Y- To Default to restore it to normal limit.

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

More
25 Apr 2023 18:42 #269882 by Aciera
Replied by Aciera on topic Adjust soft limits from the UI?
What UI are you using?

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

More
25 Apr 2023 19:32 #269885 by Geosec
Replied by Geosec on topic Adjust soft limits from the UI?
Currently GMOCCAPY. Though I may change to something else in the future. Since I'm just getting started I'm pretty flexible to change.

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

More
25 Apr 2023 19:52 #269888 by Geosec
Replied by Geosec on topic Adjust soft limits from the UI?
I was just thinking...
Being able to adjust the Z- soft limit too may be useful. I'm probably too paranoid about crashing into my vice/table by accident though.

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

More
26 Apr 2023 06:43 #269950 by Aciera
Replied by Aciera on topic Adjust soft limits from the UI?
Gmoccapy offers custom panel integration using Glade. Installing the Glade editor can be a bit of an adventure, at least the last time I did it some years ago.
So you could have a toggle button in the gui to toggle between two sets of limit values defined in the ini or you could also add some spinboxes to enter the limit values in the gmoccapy gui itself.
If you just want to change the limits outside of gcode execution then I think that is all that is needed if you want to switch them while gcode is executing you need to add a queue buster to get the motion planner to work with the updated limits. Some experimenting may be required.
As for how easy it is to implement, that would depend on your skills and/or motivation of course.
The following user(s) said Thank You: Geosec

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

More
26 Apr 2023 20:20 #269999 by Geosec
Replied by Geosec on topic Adjust soft limits from the UI?
Thanks, I'll look into that when I have more time.

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

Time to create page: 0.098 seconds
Powered by Kunena Forum