question-circle Question Tool Length Sensor (Breaks tool)

  • mathieu.hebbrecht
  • mathieu.hebbrecht's Avatar Topic Author
  • Offline
  • Forum Nutzer
  • Forum Nutzer
More
27 Dec 2017 17:03 #51836 by mathieu.hebbrecht
Tool Length Sensor (Breaks tool) was created by mathieu.hebbrecht
Hi all,

I've had the tool length sensor for a while. Due to lack of time I didn't install it yet.
Today I found the time and I contacted the sensor. Using this tutortial: www.stepcraftsupport.com/faq-items/install-and-setup-of-the-tool-length-sensor/
In the diagnostic window I see the that pin 10 reacts to my press/release action.
I overwritten the M31 macro in the C:/UCCNC/profiles/Macro_STEPCRAFT_V2_840SC
To be sure I also did it in the the Marco_STEPCRAFT_V2_ALL_Machines folder.

When I press the tool sensor button (the one on the left from the 'Go to zero' button) the Z-axis start to go down slowly. When it reaches the sensor (I hear the click). It stops, goes up again. Then it seems to start over, only this time it ignores the state of the sensor. Causing the Z-axes to block. There was a 1 mm tool mounted to my spindle, and it broke due to the behavior described above. I tried multiple times, but it fails every time.

Any idea's?

Kind regards,
Mathieu

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

More
27 Dec 2017 21:47 #51842 by Taylor
Replied by Taylor on topic Tool Length Sensor (Breaks tool)
When it lowers the z for the second time do you still have the sensor still in place?
It normally comes down quickly on the first pass then backs up a little then comes down slowly for a more accurate setting.

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

  • mathieu.hebbrecht
  • mathieu.hebbrecht's Avatar Topic Author
  • Offline
  • Forum Nutzer
  • Forum Nutzer
More
28 Dec 2017 09:28 #51846 by mathieu.hebbrecht
Replied by mathieu.hebbrecht on topic Tool Length Sensor (Breaks tool)
Taylor,
Yes the sensor is kept in place. It is my tool broke on the sensor actually.
It found a few youtube movies where I saw how it works. But to be honest, I didn't notice the second routine for accuracy.

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

More
03 Jan 2018 20:16 #52007 by Cpt Wingnut
Replied by Cpt Wingnut on topic Tool Length Sensor (Breaks tool)
Hi,
I had the same problem with the macro from Stepcraft. Rory from StoneyCNC sent me a simpler macro that worked straight away.
If you message him I’m sure he’ll help you out.

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

  • mathieu.hebbrecht
  • mathieu.hebbrecht's Avatar Topic Author
  • Offline
  • Forum Nutzer
  • Forum Nutzer
More
04 Jan 2018 11:36 #52019 by mathieu.hebbrecht
Replied by mathieu.hebbrecht on topic Tool Length Sensor (Breaks tool)
Hi Cpt Wingnut!
Thanks for your reply. I will contact StonyCNC. Although I think stepcraft should edit the macro so it works for everyone. Show poor final testing to what they deliver.

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

More
04 Jan 2018 13:04 #52022 by peterg1000
Replied by peterg1000 on topic Tool Length Sensor (Breaks tool)
Hi Cpt Wingnut,

If you are still having difficulties, let me know and I will post my M31 macro on this forum.

Peter

SC 420/2, Industrial VFD spindle from StoneyCNC
UC100 + UCCNC
Cut2D, Autosketch10, Draftsight, Eagle 9.5.1


There is no problem, however simple, that cannot be made more complicated by thinking about it.

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

More
05 Jan 2018 17:16 #52039 by Cpt Wingnut
Replied by Cpt Wingnut on topic Tool Length Sensor (Breaks tool)
Hey Mathieu,
I agree. The Stepcraft macro does a sort of ‘double dip’, but on the second ‘dip’ just crashes into the sensor. The macro I received from Rory does away with the second ‘dip’.

Hi Peterg1000,
Thank you for the offer but I’m all good now.

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

  • mathieu.hebbrecht
  • mathieu.hebbrecht's Avatar Topic Author
  • Offline
  • Forum Nutzer
  • Forum Nutzer
More
05 Jan 2018 18:03 #52040 by mathieu.hebbrecht
Replied by mathieu.hebbrecht on topic Tool Length Sensor (Breaks tool)
Hi Peter,

Ik still don't have the macro. Van you send it to me?
Thx

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

More
05 Jan 2018 23:45 #52044 by peterg1000
Replied by peterg1000 on topic Tool Length Sensor (Breaks tool)
Hi,

Attached is my M31 macro. Medium speed approach followed by a small retract and a very slow second approach and a larger retract to a stop. When calibrating don't use a real tool, a short piece of metal rod will do just as well. This macro will NOT be suitable if you have a tool changer fitted.

The following line of the macro will need to be edited to enter the height of your sensor - the "32.60" is the height of mine when contact is broken :-

"double newZ = 32.60; // The new Z DRO value after probing and calibration "

After probing, execute a "Goto Zero" - the tool should JUST touch the workpiece. Best to make this value relatively small to start with and then refine it gradually. You can use an electrical contact method to detect the contact, and with care can set the height to within 0.025mm if the height sensor triggers consistently at the same Z value.

Peter


SC 420/2, Industrial VFD spindle from StoneyCNC
UC100 + UCCNC
Cut2D, Autosketch10, Draftsight, Eagle 9.5.1


There is no problem, however simple, that cannot be made more complicated by thinking about it.

This message has an attachment file.
Please log in or register to see it.

The following user(s) said Thank You: greenwood

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

More
17 Jan 2018 22:09 #52227 by greenwood
Replied by greenwood on topic Tool Length Sensor (Breaks tool)
Hi Cpt Wingnut,

I'm having the same issues with the Stepcraft M31. Can you post the macro from Rory please?

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

More
17 Jan 2018 22:31 #52228 by Cpt Wingnut
Replied by Cpt Wingnut on topic Tool Length Sensor (Breaks tool)
Hey Greenwood,
This macro has a single 'dip', unlike the Stepcraft double 'dip'.

This message has an attachment file.
Please log in or register to see it.

The following user(s) said Thank You: greenwood

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

More
13 Apr 2018 22:21 #53466 by saslanis
Replied by saslanis on topic Tool Length Sensor (Breaks tool)
I do not remember wher i downloaded my macro but it works good.

The difference to the one posted from peter is that it checks for homing first. I noticed that you should always perform a home before the first time you use the tool.

My macro follows, i changed the "double newZ =" to 32.75 instead the original 32.45 as this worked better after some checks.

//M31 probing macro

double Zmin = -100; //Max.Z depth
double FeedrateFast = 300; //Feedrate for probing
double FeedrateSlow = 40; //Feedrate for probing
double SafeZ = 100;
double retractheight = 10; //The retract height
double retractforsecondmeasurement = 2;
double newZ = 32.75; //The new Z DRO value after probing 32.45

bool dodualcycle = true; //Do probing from 2 cycles, first with Fast and second with Slow feedrates

if(!exec.GetLED(56)||!exec.GetLED(57)||!exec.GetLED(58)) // If machine was not homed then it is unsafe to move in machine coordinates, stop here...
{
MessageBox.Show("You need to home the machine first!");
exec.Stop();
return;
}

while(exec.IsMoving()){}
exec.Wait(200);

double Xoriginalpos = exec.GetXmachpos(); // Get the current machine coordinates
double Yoriginalpos = exec.GetYmachpos(); // Get the current machine coordinates

if(dodualcycle)
{
exec.Code("G31 Z" + Zmin + "F" + FeedrateFast); // Do the Z probing with Fast feedrate first
while(exec.IsMoving()){}
exec.Wait(200);
exec.Code("G91 G0 Z" + retractforsecondmeasurement);
exec.Code("G90");
exec.Wait(200);
}

exec.Code("G31 Z" + Zmin + "F" + FeedrateSlow); // Do the Z probing again with Slow Feedrate to get a more accurate reading
while(exec.IsMoving()){}
exec.Wait(200);

exec.ChangeaxisDROvalue(2, newZ.ToString()); //Change the DRO value
exec.Wait(200); //Safety wait for the UC100 syncronisation

if(!exec.Ismacrostopped()) // If tool change was not interrupted with a stop only then validate new tool number
{
double Zup = exec.GetZmachpos() + retractheight;

if(Zup > SafeZ)
{
Zup = SafeZ;
}
exec.Code("G00 G53 Z" + Zup); // Move 10mm above probe plate
while(exec.IsMoving()){}
exec.Wait(1000);
}

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

More
20 Aug 2019 00:02 #57234 by English
Replied by English on topic Tool Length Sensor (Breaks tool)
Has anyone used a 1/8th inch flat alum plate for zeroing the z axis?
Also, does anyone have a script that omits the homing of the machine?

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

Powered by Kunena Forum

© 2024 STEPCRAFT GmbH & Co. KG

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.