How to reset 5221, 5222 and 5223 parameters (G54)?
11 Dec 2017 23:49 - 11 Dec 2017 23:50 #102956
by nicokid
How to reset 5221, 5222 and 5223 parameters (G54)? was created 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.
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: 11 Dec 2017 23:50 by nicokid.
Please Log in or Create an account to join the conversation.
12 Dec 2017 01:41 #102960
by andypugh
Replied by andypugh on topic How to reset 5221, 5222 and 5223 parameters (G54)?
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.
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: sou528
Please Log in or Create an account to join the conversation.
12 Dec 2017 13:10 #102992
by nicokid
Replied by nicokid on topic How to reset 5221, 5222 and 5223 parameters (G54)?
Hi, I copied M100 somewhere:
I use 3 separate lines because I have 3 separate buttons (x, y, z) in my gui.
Nicola.
#! /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.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
12 Dec 2017 13:58 #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.
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.
17 Dec 2017 14:33 #103210
by nicokid
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:I think I did not understand.
Thanks.
Nicola.
Replied by nicokid on topic How to reset 5221, 5222 and 5223 parameters (G54)?
Uh, you're right, I've read the documentation better.G10 L2 P1 X0 Y0 Z0 will reset the G54 offsets for XYZ back to 0.
OK! I got it.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.
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:
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
Thanks.
Nicola.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
17 Dec 2017 21:34 - 21 Dec 2017 14:04 #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: 21 Dec 2017 14:04 by Todd Zuercher. Reason: Stupid typo error pointed out by nicokid below. thanks.
Please Log in or Create an account to join the conversation.
21 Dec 2017 09:56 #103424
by nicokid
But I still do not understand the difference. What is the difference between these two commands?In both cases I specify a value
Thanks.
Nicola.
Replied by nicokid on topic How to reset 5221, 5222 and 5223 parameters (G54)?
I think you meant writing L2 and L20.G2 sets the G5x offset to the values you specify. So X0 clears the X offset. G20 sets the current axis location to the value specified. Think touch off.
But I still do not understand the difference. What is the difference between these two commands?
G10 L20 P1 X0
G10 L2 P1 X0
Thanks.
Nicola.
The following user(s) said Thank You: Todd Zuercher
Please Log in or Create an account to join the conversation.
24 Dec 2017 01:07 #103508
by andypugh
Replied by andypugh on topic How to reset 5221, 5222 and 5223 parameters (G54)?
One sets the #522x parameters to the given values
The other sets the #522x parameters such that the current machine position becomes the given values.
The other sets the #522x parameters such that the current machine position becomes the given values.
Please Log in or Create an account to join the conversation.
26 Dec 2017 23:44 #103721
by nicokid
G10 L20 P1 X0
In this case X0 is wrong:
G10 L2 P1 X0
The right command is:
G10 L2 P1 X
I understood right?
Thanks and happy holidays.
Nicola.
Replied by nicokid on topic How to reset 5221, 5222 and 5223 parameters (G54)?
So in this case X0 works:One sets the #522x parameters to the given values
The other sets the #522x parameters such that the current machine position becomes the given values.
G10 L20 P1 X0
In this case X0 is wrong:
G10 L2 P1 X0
The right command is:
G10 L2 P1 X
I understood right?
Thanks and happy holidays.
Nicola.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
27 Dec 2017 00:04 #103722
by Todd Zuercher
Replied by Todd Zuercher on topic How to reset 5221, 5222 and 5223 parameters (G54)?
No, The X must have a number after it.
For example using this command to touch off the right side of the piece.
You would type G10L2P1X0, if you wanted that point to be 0 in your G54 work coordinate system.
If you were locating off a hole 1" from where you want the edge to be you could enter G10L2P1X1.
For example using this command to touch off the right side of the piece.
You would type G10L2P1X0, if you wanted that point to be 0 in your G54 work coordinate system.
If you were locating off a hole 1" from where you want the edge to be you could enter G10L2P1X1.
Please Log in or Create an account to join the conversation.
Time to create page: 0.158 seconds