I second that,
That Big Texan bloke has given us all a great tool. :wee:
Dale, I hope you get yours sorted out, You will love it.
Cheers
Denis
I second that,
That Big Texan bloke has given us all a great tool. :wee:
Dale, I hope you get yours sorted out, You will love it.
Cheers
Denis
Hi,
First big thanks and respect to Ernie and BigTex for this great tool which makes life so so so much easier.
This my Metric version.
Denz's metric version i down loaded only changed some of the units to metric, it only altered the initial zero and tool change setup to metric units all the other probe functions were still in imperial units.
This version changes every probe function to metric, i,ve also made a few changes by adding a few constants at the start of the code to make it easier to change things like feedrate,travel amounts, retract amounts etc by just changing the setting in one place which then gets passed down thru the code where ever needed.
I use a lot aluminium on my machine and some times things can get a bit tight for room between cutter and top of part which doesn't leave much room for offset plates.
Because the part is metal i shouldn't need an offset plate and just need to touch part with probe wire and then referance from top of part.
With the previous version i had this was a problem because if you left the offset plate DRO set to zero it behaved strange.
So i,ve made it so that it works eithier with or without offset plate and still retracts and sets DRO's like if you used a offset plate.
I,ve tested every probe function extensively on my machine and it works perfect everytime. . . . BUT.!!
I,M NO PROGRAMMER SO TEST THIS YOURSELF . . . CAREFULLY.
I,ve got a few little changes i want to make but it works perfect as is, but i will keep tweaking it and post any updates that i make.
Cheers
Dean
I've up loaded a vid to you tube on using the metric macro tool setter. Its been working find most of the time. When I get time I think I'll copy the code back to the normal screen sets as I am not a big fan of the blue screen set, its too busy for my liking. Dean, I've downloaded your screen set I'll give it a try in the next week or two and see if it is more stable then the one I'm using now.
Regards
Dale
web link: [nomedia="http://www.youtube.com/watch?v=VgylyFwoq8s"]YouTube- tool zero probe_0001.wmv[/nomedia]
<object width="980" height="765"><param name="movie" value="http://www.youtube.com/v/VgylyFwoq8s&hl=en_GB&fs=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/VgylyFwoq8s&hl=en_GB&fs=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="980" height="765"></embed></object>
It works fine for me here all the time, i have 1 little issue that i think is probably more to do with the Machblue set or a mach bug than the probe code.
I dont use limit switchs only home switchs and use softlimits for limits, for some reason every now and again it mucks up the softlimits and mach gets confused, it's easy to fix i just ref home and everything resets fine it's more of an annoyance than a problem.
I,m like you with Machblue far too clutterd for me.
So i,m going to design my own eventually but untill then i,m going to use Hoss's version which i like a lot because of the corner finding probe etc and just copy across the tool change code and stick a few controls on the main screen.
I really love these probing features i cant belive how much easier it makes working.
Regards
Dean.
Will loading this affect my config and motor tuning parameters?
Thanks,
Paul
suggestion, why cant we have a check box (on the screen ) or a setup.txt file to select metric / imp.
is would allows use to pick what ever units they like, thus one code to maintain for future upgrade and use variable in the code to switch from metric to imp?
someone who handy in writing code... can you please.....modify the code so user can select what units there perfer?
Okay, I've loaded the software and have made the touch plate and made the proper connections to my C11G-BOB. The input status light for Pin 15 turns off whenever the touch plate is touched to the end mill in the spindle.
I hit the Mach3 Ref All Home button and all the axis home.
I then press the Initial Zero Setup, so the milling head moves down slowly from the top of the z-axis, does a little stutter step about 4 inches from the touch plate, but continues down...touches the touch plate....backs up a bit and retouches the touch plate....backs up about 1/4 inch...pauses and then the head moves up the z-axis until it trips the z-axis limit switch.
What am I doing incorrectly?
Thanks,
Paul
I just checked and my SafeZ setting is set to zero, but I'm not sure if that's the reason for the action above.
Paul,
The code works by, 1st the tool moves to wards the touch plate @ a fast feed rate, then backs off a small amount, then touches with a slow feed rate. Then the tool backs off an amount thats set in the macro code and then moves over to the fixed touch plate and then repeats the process it did for the mobile touch plate. You may need to alter the amount it backs off after the first touch plate.
Regards
Dale
You mus edit script as needed.
Option Explicit 'NOTE: This script is for Inches as Native Units
Dim xjobcoord
Dim yjobcoord
Dim xmachcoord
Dim ymachcoord
Dim zmachcoord
Dim xprobeloc
Dim yprobeloc
Dim xtoprobe
Dim ytoprobe
Dim PlateOffset
Dim CurrentFeed
Dim ZNew
Dim Zplate
Dim Zrestposition
Dim ZMaterialmachcoord
Dim ZPlatejobcoord
Dim Zplatetomaterial
xjobcoord = GetDRO(0) 'get current job coordinate for X
yjobcoord = GetDRO(1) 'get current job coordinate for Y
xmachcoord = GetOemDRO(83) 'get current machine coordinate for X
ymachcoord = GetOemDRO(84) 'get current machine coordinate for Y
zmachcoord = GetOemDRO(85) 'get current machine coordinate for Z
xprobeloc = GetUserDRO(1100) 'get X machine coordinate location of the touch plate
yprobeloc = GetUserDRO(1101) 'get Y machine coordinate location of the touch plate
xtoprobe = xprobeloc-xmachcoord+xjobcoord 'calculate the X move from the current location to the touch plate
ytoprobe = yprobeloc-ymachcoord+yjobcoord 'calculate the Y move from the current location to the touch plate
Rem VBScript To probe In the z axis
If GetOemLed (825) <> 0 Then 'Check to see if the probe is already grounded or faulty
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Else
Code "G4 P1" 'Pause 1 seconds to give time to position probe plate
PlateOffset = GetUserDRO(1151) 'Get plate offset DRO
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
Rem Probe In the z direction
Code "F12" 'slow down feedrate to 12 ipm
ZNew = GetDro(2) - 6 'probe move to current z - 6 inches
Code "G31Z" &ZNew
While IsMoving() 'wait for probe move to finish
Wend
ZNew = GetVar(2002) 'read the touch point
Code "G0 Z" &ZNew +.1 'move back to hit point incase there was overshoot +.1
While IsMoving ()
Wend
Rem End add lines
Code "F4" 'slow down feedrate to 4 ipm
ZNew = GetDro(2) - .25 'probe move to current z - .25 inches
Code "G31Z" &ZNew
While IsMoving() 'wait for probe move to finish
Wend
ZNew = GetVar(2002) 'read the touch point
Code "G0 Z" &ZNew 'move back to hit point incase there was overshoot
While IsMoving ()
Wend
If PlateOffset <> 0 Then
Call SetDro (2, PlateOffset) 'set the Z axis DRO to plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
ZNew = PlateOffset + 1.6315 'calc retract
Code "G0 Z" &ZNew 'put the Z retract height you want here
While IsMoving ()
Wend
End If
End If
This entire code but line needed to be changed is here below
ZNew = PlateOffset + 1.6315 'calc retract
plate offset is your plate thickness + 1.6315= equals hight retracted
edit value 1.6315 to what is needed same goes for retraction after second plate touch off. I hope that helps.
Viper are from TX? Dallas area?
Big-Tex,
Nope from Round Rock just a few miles north of Austin.
How do I edit the .set file?
How do I assign the m6 macro to the the button.
Thanks,
Paul
Paul
I will be free after 5:30 PM you got my number in PM inbox.
Brother I used to work in Georgetown just quit that job recently..
Another happy customer
can someone modify the code to a have check box or setting in a ini file etc.
to set unit... thus there would be only one source code to up date for
new realeses if there available