Tutorial, step by step, for Auto Tool Measurement

More
10 years 3 months ago #77994 by kylotron
I LinuxCNC, i have my small CNC and i have a number of tools.
Now i have the need to realize the machining with different tools and i homemade 2 sensors connected to the input PROBE-IN, one mobile, the 1.33 mm thick, and a fixed, positioned at X741 Y102 coordinates.

I can manually reset the workpiece or the tool relative to the fixed sensor.

But how can i automate the tool zero with respect to the workpiece?


Bernardo
P.S.: sorry for my English, it is generated using google translator.

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

More
10 years 3 months ago - 10 years 3 months ago #78003 by andypugh
If you start LinuxCNC and look in the sample configs:
sim/axis/remap/manual-toolchange-with-tool-length-switch
You will find a simulated config that does what you want.

You should just need to copy the nc_subroutines and python folders from that configuration to your configuration and then add the relevant section to your INI file:
Code:
[RS274NGC] ... SUBROUTINE_PATH = nc_subroutines:../../nc_files/remap_lib/common_nc_subs ... ON_ABORT_COMMAND=O <on_abort> call # # ------ remapping toolchange - related codes ---------------------- # # see python/remap.py for the prolog and epilog handlers # see nc_files/remap-subroutines for the NGC procedures # # the prepare_min.ngc and change_min.ngc are templates - fill in as needed REMAP=M6 modalgroup=6 prolog=change_prolog ngc=manual_change epilog=change_epilog

(edit} And connect your tool-length switch to motion.probe-input
Last edit: 10 years 3 months ago by andypugh.

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

More
7 years 10 months ago #123112 by Karri
Hey

Does anyone have idea why my machine doesn't care of the "Current Z length",
I'm able to use this example config to measure the tool height, but the machine goes as deep as g-code says, without any matter how long the tool is.

I make first tool measurement with "reference tool" button pressed and second tool measurement unpressed, but second tool goes too deep, like it would be as long as reference tool.

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

More
7 years 10 months ago #123139 by andypugh
Does the G-code contain a G43 to apply tool geometry corrections?

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

More
7 years 10 months ago #123162 by Karri
Thx for fast reply.

There is g43 in code, but i found out that if there is allready g43 in the "Active g-codes:" -window, the new G43 turns it to G49 and doesn't allow to turn it on again. G43 comes back in active after re-entering "t4 m6" to MDI and going through the lenght measurement.
If i manually enter to MDI new z position it works, but if i enter g43 z100 then it turns g49 mode, and goes to "absolute" value.

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

More
7 years 10 months ago - 7 years 10 months ago #123164 by Leon82
Use g49g53z0 to return before the tool change.

Or g49
G91g28z0

You should cancel the offset before Channing tools.
Last edit: 7 years 10 months ago by Leon82.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum