Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: fredmens on May 11, 2017, 05:17:41 AM

Title: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 05:17:41 AM
Hi there,

I have read a ziljon scripts and i still do not understand a thing about them. I am dyslectic as hell (reading only) and just cannot get the hang of it.

I have a router where the hardware is ready and tested for auto zero the Z-axis. It works with some scripts, just the values are not right.

What i need is ultra simple.

I would like to use the probe to zero the Z only with 50 MM a minute a pause/dwelling of 3 seconds would be great
My probe gage is 19.4 mm thick
when measured i would like to raise the Z axis 10 mm. The DRO should point out 10 mm off course.

No more, no less. Most scripts are so complete/complex so i d not understand the first thing about them

Whatever i do i cannot get it to work. metric/imperial. Axis going down in stead of up, stuff like that.

Any help would be very much appreciated

Kind regards

Fred
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 11, 2017, 05:37:46 AM
Hi Fred,

This one is very basic but it should do the job.

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 06:41:49 AM
I will give it a go in a few minutes, thank you very much

Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 07:05:04 AM
Hi Tweakie. It works with one last drawback (I guess). After touching the probe it doesn't get up 10 mil, but goes down about 10 Cm. Where do I change that in the file ? or is something else wrong. The router works perfectly in every other perspective.

Thanx in advance

Hi Fred,

This one is very basic but it should do the job.

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 11, 2017, 07:19:00 AM
Hi Fred,

Something else is wrong.  :(

The script says raise the Z axis 10 mm (Code "G0 Z10") so why is it going down ?
If you go into the MDI screen and Zero the Z axis then Input G0 Z10 and press Return does the Z axis raise up 10 mm and the Z axis DRO show +10.0000 ?

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 07:32:27 AM
Sorry, obviously I was not  clear in my answer.

I copied your text without any changes in Mach 3. I run auto tool zero. it holds a few seconds (dwell is ok) goes down the way it should. very slow, I guess 50 mm/minute. then it makes contact with the probe. (for safety-reasons I do it manually high above the router-bed) Then it goes down quite far, I guess about 10 cm. stops, goes up 10 mm, and the DRO says + 10.0005.

So everything seems ok, besides the bit when it makes contact and should just go up, in stead of lowering the Z before it raises it again
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 11, 2017, 07:39:42 AM
Hi Fred.

If you touch your probe to the plate does the Digitize LED on the Diagnostics page illuminate?

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 07:45:42 AM
Yip, it makes contact, and the "digitize" led lights up
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 11, 2017, 07:54:24 AM
Hi Fred,

Try this modified script.

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 08:14:22 AM
Thank you for your efforts. It is getting better, but not right yet. Z axis goes down... I make contact ( as if probe was touched) z-axis goes down a bout 10 mill. DRO says +10.0005
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 08:22:58 AM
if I change your file to :" Code "G0 Z-10" 'Change the Z retract height here
While IsMoving()" So minus 10 in stead of positive.Z goes down. makes contact. goes up (so hurray) but drops down again !!?? so strange
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 08:30:14 AM
Yeah, I tried to measure it. I start out 175 mm (roughly measured) over my router-bed. I zero the Z-axis in the MDI window.
 I run auto tool zero, and make "contact"  as close as I can at -/0 10.0000. Z drops 10 mm. If I re-measure the endresult, the Z-axis is 155 mm above my router-bed where it should have been at 175
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 11, 2017, 08:42:53 AM
Hi Fred,

Your Z axis should be going down during the line      Code "G31Z-50 F" &ProbeFeed

Then it touches the plate, stops then the Z axis goes up during the line    Code "G0 Z10" 'Change the Z retract height here


Are you using a the Parallel Port or a motion controller ?
Which version of Mach3 are you using ?

Can you attach your .xml file.
This file is in your Mach3 folder called <your profile>.xml  copy and rename the copy to fredmens.xml before attaching using the Reply and Additional Options tabs.

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 09:45:25 AM
sure. i will do that within an hour or so. thanx a lot !! I am not at the milling location now
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 11:20:16 AM
i upped twice and it didn't work. I will try again in an hour or so
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 11, 2017, 02:12:35 PM
Hi there i hope i t works this time

I am using Version R3.043.066 , the USB breakoutboard i am using is the MACH3 Control Cord Manual-MKX-IV Wi XHC
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 12, 2017, 03:46:14 AM
Hi Fred,

The .066 version of Mach3 may be causing the issue but there is also the possibility that the XHC controller is not supporting the G31 command properly.

Download and install Mach3 version .062 ftp://anonymous:guest@ftp.machsupport.com/Mach3/Mach3Version3.043.062.exe (ftp://anonymous:guest@ftp.machsupport.com/Mach3/Mach3Version3.043.062.exe) (this can be installed over the top of your existing install). As a precaution make a safe copy of the <your profile>.xml file which contains your machine settings.

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 13, 2017, 06:32:34 AM
At last i found some time to go on. I will try your suggestion and keep you informed

Kind regards

Fred
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 14, 2017, 06:03:01 AM
Muy fantasico, thanx a lot .

It work a lot better, not correct yet, but now it must be a matter of details.

Z goes down after dwelling. Hits the probe, goes a bit up, comes down and hoovers above the probe at about 5 mm height stating Z axe is zerod and showing 10.0005 at the DRO (it should say 29.4 if it was 10 mm above the probe)

After installing the mach3 older verison  i copied the xml file, the licence file and the screens like the 1024
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 14, 2017, 06:14:57 AM
Sounds like good news  ;)

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 14, 2017, 06:20:06 AM
Yip, i ran the file several times now, sonwthing seems to be wrong, not with the file, but with the system itself. I did a few runs, what i noticed:

first time z went down, touched, went up and hovered about 5mm above the contact
second time Z went down....... hovered about 8 mm telling me it was 29.5 (so nearly perfect
third time Z went down, touched, and went down deeper, offcourse i stopped it

So i am lost in space now. Everything else runs perfect, only this function goes sour.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 14, 2017, 06:23:29 AM
I can live with it if the Z axis goes down. Stops on contact. If possible telling me it's 19.4 mm, doing nothing else. What values should i change in the file??
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 14, 2017, 07:22:43 AM
Hi Fred,

If it's not operating 100% reliably then, in my opinion, it would be unwise to use the Auto Zero function. The problem is that it may work perfectly until you are setting an expensive or delicate tool - and that's when it always fails.

Many of the Chinese motion controllers do not fully support the G31 function (as far as Mach3 is concerned) and unless they are prepared to offer customer support by updating their plugin there is little that can be done. Try contacting XHC to find out which version of Mach3 they recommend for using the G31 function (it may be an earlier version than the .062 which I suggested). If you don't have an XHC contact email then Alex He may be able to help  xhctech-alex@hotmail.com

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 14, 2017, 07:28:53 AM
Thanx very much. I had some mailcontact with alex before. he is about the only one who is capable and willing in helping and is able to write in English.

If it is something that is due to XHC i will use the probe, only to make contact and stop it there manually. From there on i will evertything by hand.

Thanx very much

Fred
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 15, 2017, 04:32:12 AM
I meant off-course the only one at XHC. The real tech department there are not able to speak or write in english, and to be honest.... my chinese is quite rusty

Thanx very much. I had some mailcontact with alex before. he is about the only one who is capable and willing in helping and is able to write in English.

If it is something that is due to XHC i will use the probe, only to make contact and stop it there manually. From there on i will evertything by hand.

Thanx very much

Fred
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 15, 2017, 05:31:28 AM
Quote
and to be honest.... my chinese is quite rusty

 ;D ;D ;D

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 15, 2017, 07:06:54 AM
By any chance Tweakie, is it possible for you to "tweak"  the script you gave me ? lowering the Z speed 50 it makes contact with the probe, then the DRO should show 19.4 and nothing further on. Z stays in that position, end of action.

Thanx in advance
Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 15, 2017, 08:20:40 AM
Hi Fred,

The third line in the script determines the probe feed-rate (currently set at 50).

The line which raises the axis, after the ‘touch’, has been commented out so the axis should now touch and stay.

Tweakie.
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 17, 2017, 09:48:42 AM
Perfect thanx. I hope i find some time tomorrow to give it a go.

Thanx for everything you did so far.

Fred

Title: Re: Auto Zero Z-axis Metric
Post by: Tweakie.CNC on May 17, 2017, 10:14:59 AM
My pleasure sir.

Tweakie.
Title: Auto Zero Z-axis Metric
Post by: stephenpinn on May 18, 2017, 03:23:26 AM
If you go to the XHC website and read the read.me file for the USB driver http://www.cdxhctech.com/html/edownloads/view_282.html

You will find a section on how they have issues with some probing scripts. I would get the exact wording for you but I cannot view the file on my phone. The offer a work around by recommending that the 3 axis DRO calls are replaced with a different call.
I had the z axis crash problem on mine until I incorporated their recommended fix. It was simple enough to do and has been running great for months. If you have difficulty finding the fix pm me and I will dig it out for you

Steve


Sent from my iPhone using Tapatalk
Title: Re: Auto Zero Z-axis Metric
Post by: fredmens on May 20, 2017, 06:18:33 AM
Thank you, i will look into it today.Tomorrow i will leave for at least 6 weeks (off-shore work) so if i cannot comment today.... i will get back to it when i return.

thanx a lot for your offer, this forum really works great because of the friendly people here. Do you speak chinese ? i just looked into it (first glance) and i really do not understand how somebody could understand it, if you don't speak/read chinese.