How to refresh the Axis screen after setting offsets G10 L20

More
27 May 2025 00:20 #329183 by bondglen
Hi all,
I have a home-made pendant that can jog and set the offsets using HALUI commands.
When I set the G54 offsets (using HAL commands) I would like to refresh the Axis display so that it will show the part in the offset position.
I would like to use a HALCMD to refresh the Axis display if possible, but will use whatever is required.
Is this even possible?

Thanks in advance.

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
27 May 2025 06:04 - 27 May 2025 06:12 #329190 by Aciera
Not sure if there is a halcmd to do that but you can use an executable custom Mcode to call a bash script that executes this:
axis-remote --reload

www.linuxcnc.org/docs/html/man/man1/axis-remote.1.html
Last edit: 27 May 2025 06:12 by Aciera.

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

More
28 May 2025 16:21 - 28 May 2025 16:28 #329324 by juliankoenig87
I use M codes for this kind of stuff also. For example M130.

github.com/hausen8/EasyProbe/blob/v2.0/nc_files/M130

Use with:
M130 P255

I am not sure right know, but I had something in mind while writing  "&".
Also some sleeps are always a good idea. Sometimes it gets lost otherwise.

Best regards
Julian
Last edit: 28 May 2025 16:28 by juliankoenig87.

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

More
01 Jun 2025 00:48 #329482 by bondglen
Not really what I wanted, but I think it will work.
Thanks for the link to the example code.
Thanks for your help.

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

More
01 Jun 2025 00:51 #329483 by bondglen
Thanks. With you and juliankoenig and the links, I have plenty to work with.
I really appreciate you guys taking time to reply and share your knowledge.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
01 Jun 2025 01:29 #329484 by tommylight
G10 L20 P0 X0 Y0 \  %halcmd setp axisui.refresh 1
This should work for 2.8 and up, notice the hal command at the end for refreshing the Gremlin (plotter).

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
01 Jun 2025 09:29 #329500 by Aciera

This should work for 2.8 and up, notice the hal command at the end for refreshing the Gremlin (plotter).

Not sure where you got that information from but I don't see an 'axisui.refresh' pin:

 
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
01 Jun 2025 13:23 #329509 by tommylight
PlasmaC uses it, i have it on several machines in daily use, so might be there....
Just checked the 2.10 on this PC, not there either...

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
01 Jun 2025 14:13 #329511 by tommylight
This turned strange so i fired one of the laptops with 2.8.4 and sure enough it is not in Axis but it is in PlasmaC Axis as cane be seen in the attachment.
This should be included in normal Axis, although rarely needed, it is a good feature to have

Attachments:

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

Time to create page: 0.173 seconds
Powered by Kunena Forum