How to reset 5221, 5222 and 5223 parameters (G54)?

More
8 years 10 months ago - 8 years 10 months ago #102956 by nicokid
Hi,
I save my coordinates G54 with:
G54 G10 L20 P1 x0 M100
G54 G10 L20 P1 y0 M100
G54 G10 L20 P1 z0 M100

These remain saved in linuxcnc.var and often I have to delete it.
What is the best way to reset these coordinates? I have problems especially when I use touch off with the z axis.

Thanks, Nicola.
Last edit: 8 years 10 months ago by nicokid.

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

More
8 years 10 months ago #102960 by andypugh
What does M100 do?

Why have a G54 at the start? (and why repeat it)

G10 L20 P1 X0 Y0 Z0
Is valid G-code too.
The following user(s) said Thank You: SanzuiWorks

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

More
8 years 10 months ago #102992 by nicokid
Hi, I copied M100 somewhere:
Code:
#! /bin/sh axis-remote --reload exit 0

I use 3 separate lines because I have 3 separate buttons (x, y, z) in my gui.
Nicola.

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

More
8 years 10 months ago #102996 by Todd Zuercher
Replied by Todd Zuercher on topic How to reset 5221, 5222 and 5223 parameters (G54)?
G10 L2 P1 X0 Y0 Z0 will reset the G54 offsets for XYZ back to 0.

Like Andy was trying to say The P after the G10 L2 (L20) command specifies the work coordinate system, and unless you specify P0 the current one selected is irrelevant so setting it before hand is not needed.

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

More
8 years 10 months ago #103210 by nicokid

Todd Zuercher wrote: G10 L2 P1 X0 Y0 Z0 will reset the G54 offsets for XYZ back to 0.

Uh, you're right, I've read the documentation better.

Todd Zuercher wrote: Like Andy was trying to say The P after the G10 L2 (L20) command specifies the work coordinate system, and unless you specify P0 the current one selected is irrelevant so setting it before hand is not needed.

OK! I got it.
With P0 I reset the current coordinates, while with the other numbers (P1, P2, ...) I reset the others (G54, G55, ...).

Another question: what is the difference between G10 L2 and G10 L20? The documentation says:
Code:
instead of setting the offset/entry to the given value, it is set to a calculated value that makes the current coordinates become the given value
I think I did not understand.:blink:

Thanks.
Nicola.

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

More
8 years 10 months ago - 8 years 10 months ago #103251 by Todd Zuercher
Replied by Todd Zuercher on topic How to reset 5221, 5222 and 5223 parameters (G54)?
L2 sets the G5x offset to the values you specify. So X0 clears the X offset. L20 sets the current axis location to the value specified. Think touch off.
Last edit: 8 years 10 months ago by Todd Zuercher. Reason: Stupid typo error pointed out by nicokid below. thanks.

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

Time to create page: 0.327 seconds
Powered by Kunena Forum