Help needed to setup auto tool offsets
- suspension
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 1
19 Nov 2016 23:54 #83012
by suspension
Help needed to setup auto tool offsets was created by suspension
Today I migrated from planencnc USB to LinuxCNC and things have been good so far. However I am having some difficulty setting up automatic tool offset detection. Since I am new to gcode I cant figure out what the problem is exactly.
I have tried executing following code to determine Z offset of the current tool.
option1
G90
G38.2 Z-10 F50
G0 Z2 F50
G92 Z27
Above one fails always saying Z-10 is not with in the limits. (However my Z axis negative limit is around -60). To fix that, I changed G90 to G91 and this error went away. However after executing the full command set, G92: Z value does not show 27 as expected.
Then I tried option 2 below again with similar results:
G91
G38.2 Z-10 F50
G10 L2 P0 Z25
G0 Z2
I expect G92:Z value to be 27, but it shows something else.
Could any one let me know what I am doing wrong here?
Also, the the button 'Tool touch Off' in axis GUI is disabled. What could be the reason for that?
Thanks
I have tried executing following code to determine Z offset of the current tool.
option1
G90
G38.2 Z-10 F50
G0 Z2 F50
G92 Z27
Above one fails always saying Z-10 is not with in the limits. (However my Z axis negative limit is around -60). To fix that, I changed G90 to G91 and this error went away. However after executing the full command set, G92: Z value does not show 27 as expected.
Then I tried option 2 below again with similar results:
G91
G38.2 Z-10 F50
G10 L2 P0 Z25
G0 Z2
I expect G92:Z value to be 27, but it shows something else.
Could any one let me know what I am doing wrong here?
Also, the the button 'Tool touch Off' in axis GUI is disabled. What could be the reason for that?
Thanks
Please Log in or Create an account to join the conversation.
20 Nov 2016 10:35 #83027
by andypugh
G10 will not change the G92 value. I would suggest, for simplicity, running G92.1 in the MDI to clear the G92 offsets.
It is probably greyed-out because you don't have a tool loaded (or, to be more precise, LinuxCNC doesn't think you have a tool loaded). MDI M6 T1 G43 to make LinuxCNC aware that tool 1 has been loaded.
I suspect that your code might want to use G10 L20 or maybe G10 L11.
linuxcnc.org/docs/2.6/html/gcode/gcode.html#sec:G10-L2_
Replied by andypugh on topic Help needed to setup auto tool offsets
I don't think G92 is the right thing to use here.G92 Z27
G10 is the right thing to use. That sets the tool offset or the work-coordinate offset.G10 L2 P0 Z25
G0 Z2
I expect G92:Z value to be 27, but it shows something else.
G10 will not change the G92 value. I would suggest, for simplicity, running G92.1 in the MDI to clear the G92 offsets.
Also, the the button 'Tool touch Off' in axis GUI is disabled. What could be the reason for that?
It is probably greyed-out because you don't have a tool loaded (or, to be more precise, LinuxCNC doesn't think you have a tool loaded). MDI M6 T1 G43 to make LinuxCNC aware that tool 1 has been loaded.
I suspect that your code might want to use G10 L20 or maybe G10 L11.
linuxcnc.org/docs/2.6/html/gcode/gcode.html#sec:G10-L2_
Please Log in or Create an account to join the conversation.
- eFalegname
-
- Offline
- Elite Member
-
Less
More
- Posts: 253
- Thank you received: 30
20 Nov 2016 13:07 - 22 Nov 2016 08:20 #83037
by eFalegname
Replied by eFalegname on topic Help needed to setup auto tool offsets
Hi suspension, there is a fine configuration example for the manual toolchange with auto z and tool lenght touch off here:
Manual tool change
pyvcp example
Manual tool change
pyvcp example
![;) ;)](/media/kunena/emoticons/wink.png)
Last edit: 22 Nov 2016 08:20 by eFalegname.
Please Log in or Create an account to join the conversation.
- suspension
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 1
20 Nov 2016 16:59 #83041
by suspension
Replied by suspension on topic Help needed to setup auto tool offsets
Thank you all.
The coordinates shown in Axis display was bit confusing so I switched to gmoccapy.
Also I changed the line G10 L2 P0 Z25 to G10 L20 P0 Z25 and it works fine now.
The coordinates shown in Axis display was bit confusing so I switched to gmoccapy.
Also I changed the line G10 L2 P0 Z25 to G10 L20 P0 Z25 and it works fine now.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Away
- Platinum Member
-
Less
More
- Posts: 4978
- Thank you received: 1377
20 Nov 2016 21:34 - 20 Nov 2016 21:37 #83046
by Todd Zuercher
Replied by Todd Zuercher on topic Help needed to setup auto tool offsets
Tool touch off is disabled until you tell Linuxcnc to load a tool (T1 M6).
www.linuxcnc.org/docs/2.7/html/gcode/tool-compensation.html
As to your soft limit problems, I;m not sure where to start. Does your machine use home or limit switches? How do you have your homing configured? Is Z0 at the top of the Z travel?
(Edit)
Sorry, Not sure why I didn't see all the replies to the original message before I typed and sent this.
www.linuxcnc.org/docs/2.7/html/gcode/tool-compensation.html
As to your soft limit problems, I;m not sure where to start. Does your machine use home or limit switches? How do you have your homing configured? Is Z0 at the top of the Z travel?
(Edit)
Sorry, Not sure why I didn't see all the replies to the original message before I typed and sent this.
Last edit: 20 Nov 2016 21:37 by Todd Zuercher.
Please Log in or Create an account to join the conversation.
Time to create page: 0.113 seconds