How to refresh the Axis screen after setting offsets G10 L20

More
1 year 5 months ago #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 to join the conversation.

More
1 year 5 months ago #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:
Code:
axis-remote --reload

www.linuxcnc.org/docs/html/man/man1/axis-remote.1.html

Please Log in to join the conversation.

More
1 year 5 months ago #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

Please Log in to join the conversation.

More
1 year 4 months ago #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 to join the conversation.

More
1 year 4 months ago #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 to join the conversation.

More
1 year 4 months ago #329484 by tommylight
Code:
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 to join the conversation.

More
1 year 4 months ago #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:

 

Attachment not found

Please Log in to join the conversation.

More
1 year 4 months ago #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 to join the conversation.

More
1 year 4 months ago #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

Attachment not found

Please Log in to join the conversation.

More
1 year 3 months ago #331292 by cakeslob

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum