- Posts: 17
- Thank you received: 0
How to refresh the Axis screen after setting offsets G10 L20
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.
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.
1 year 5 months ago #329190
by Aciera
Replied by Aciera on topic How to refresh the Axis screen after setting offsets G10 L20
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:
www.linuxcnc.org/docs/html/man/man1/axis-remote.1.html
Code:
axis-remote --reload
www.linuxcnc.org/docs/html/man/man1/axis-remote.1.html
Please Log in to join the conversation.
- juliankoenig87
- Offline
- Premium Member
-
Less
More
- Posts: 120
- Thank you received: 0
1 year 5 months ago #329324
by juliankoenig87
Replied by juliankoenig87 on topic How to refresh the Axis screen after setting offsets G10 L20
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
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.
1 year 4 months ago #329482
by bondglen
Replied by bondglen on topic How to refresh the Axis screen after setting offsets G10 L20
Not really what I wanted, but I think it will work.
Thanks for the link to the example code.
Thanks for your help.
Thanks for the link to the example code.
Thanks for your help.
Please Log in to join the conversation.
1 year 4 months ago #329483
by bondglen
Replied by bondglen on topic How to refresh the Axis screen after setting offsets G10 L20
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.
I really appreciate you guys taking time to reply and share your knowledge.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
1 year 4 months ago #329484
by tommylight
This should work for 2.8 and up, notice the hal command at the end for refreshing the Gremlin (plotter).
Replied by tommylight on topic How to refresh the Axis screen after setting offsets G10 L20
Code:
G10 L20 P0 X0 Y0 \ %halcmd setp axisui.refresh 1
Please Log in to join the conversation.
1 year 4 months ago #329500
by Aciera
Replied by Aciera on topic How to refresh the Axis screen after setting offsets G10 L20
Not sure where you got that information from but I don't see an 'axisui.refresh' pin:This should work for 2.8 and up, notice the hal command at the end for refreshing the Gremlin (plotter).
Attachment not found
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
1 year 4 months ago #329509
by tommylight
Replied by tommylight on topic How to refresh the Axis screen after setting offsets G10 L20
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...
Just checked the 2.10 on this PC, not there either...
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
1 year 4 months ago #329511
by tommylight
Replied by tommylight on topic How to refresh the Axis screen after setting offsets G10 L20
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
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.
1 year 3 months ago #331292
by cakeslob
Replied by cakeslob on topic How to refresh the Axis screen after setting offsets G10 L20
yeah its a pin phil added in the plasmac usercommand file
github.com/LinuxCNC/linuxcnc/blob/master...c2/plasmac2.py#L5689
github.com/LinuxCNC/linuxcnc/blob/master...c2/plasmac2.py#L5689
Please Log in to join the conversation.
Time to create page: 0.098 seconds
