Tool length offset and Part Zero

More
10 years 7 months ago #71769 by nicokid
Hi,
I have a tool length sensor, and I would like to use it to set to zero the z axis over my piece. My intention is to put the sensor on top of the piece and knowing the thickness of the sensor to obtain zero in the z axis.
This is the procedure for changing the tool length. But then I did not understand how to add the thickness of the sensor to the offset:
Code:
(MSG, Start tool length probe) G21 ( Metric mm) G90 ( Absolute coordinates) G49 (Delete any offset for tools) T1 M6 (load first tool) G53 G0 Z110 X495 Y100 ( Coordinate per G30, dove aspetta lo switch) G30.1 ( Save current position) G30 G91 (Relative coordinates) G38.2 Z-100 F300 (Touch the switch fast) G0 Z2 (Off the switch) G38.2 Z-10 F10 (Touch the switch slowly) (Save. The 5063 parameter is for z axis) #1000=#5063 #<_ToolRefZ> = #5063 ( save trip point) G90 G30 M2

Thanks, Nicola.

Please Log in to join the conversation.

More
10 years 7 months ago #71781 by eFalegname
Hi Nicola,
You can write a macro that contains the following string to reset the Z value to the sensor thickness when your mill closes (or opens) the contact:
Code:
G10 L20 P0 Z[#<_ini[TOOLSENSOR]H>]
then add a new section in your .ini file so you have the thickness of your touch plate always at hand:
Code:
[TOOLSENSOR] H = 3 (l'altezza del tuo tastatore > Z)
then you should implement the way to call the written subroutine by axis.

The thickness of the fixed sensor not matters, it's used only to reference (compare) the subsequent tools length

Please Log in to join the conversation.

More
10 years 7 months ago #71949 by nicokid

eFalegname wrote:

Code:
G10 L20 P0 Z[#<_ini[TOOLSENSOR]H>]
then add a new section in your .ini file so you have the thickness of your touch plate always at hand:
Code:
[TOOLSENSOR] Z = 3 (l'altezza del tuo tastatore)


Sorry for the delay of my reply. I did not think we could add custom sections on ini file :huh:
In the end I simply added the height of my sensor directly into gcode:
Code:
G10 L20 P0 Z32.4

Thanks, Nicola.

Please Log in to join the conversation.

More
10 years 7 months ago #71952 by eFalegname
Prego!

Please Log in to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum