Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 10:51:04 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
Wanted: Position X & Y at the Center of a Hole Macro
Pages:
1
Go Down
« previous
next »
Author
Topic: Wanted: Position X & Y at the Center of a Hole Macro (Read 612 times)
0 Members and 1 Guest are viewing this topic.
wvancura
Active Member
Offline
Posts: 72
Wanted: Position X & Y at the Center of a Hole Macro
«
on:
September 20, 2010, 11:45:10 PM »
I have seen a lot of talk about center finding and it all seems to boil down to finding the Z height and bug fixing... Is there a direct posting of a working macro, for Mach3, that will find the center of a drilled hole? I need to reliably find the center of a hole that has been drilled in a metal material for rework. The electric touch sensor can be positioned to fit in the hole without touching the sides as a starting point. Trying to read hundreds of pages of commentary with hundreds if external thread references is a bit much.
Thanks,
Bill
Logged
Dan13
Active Member
Offline
Posts: 759
Re: Wanted: Position X & Y at the Center of a Hole Macro
«
Reply #1 on:
September 21, 2010, 02:12:59 AM »
If you need accuracy, I'd use a dial indicator held in the spindle chuck.
Dan
Logged
ostie01
Active Member
Offline
Posts: 563
Re: Wanted: Position X & Y at the Center of a Hole Macro
«
Reply #2 on:
September 21, 2010, 06:41:30 AM »
This comes from the hoss website
Hope this help.
Jeff
HossProbeCodesUpdate.zip
(9.2 KB - downloaded 66 times.)
Logged
wvancura
Active Member
Offline
Posts: 72
Re: Wanted: Position X & Y at the Center of a Hole Macro
«
Reply #3 on:
September 22, 2010, 08:42:52 AM »
Thanks,
The files are very useful.
I noticed that if the 'Machine Coordinates' button happens to be pressed, strange things happen. I need to find how to determine that button is ON so I can force a warning message.
Thanks again,
Bill
Logged
Hood
Active Member
Offline
Posts: 17,358
Carnoustie, Scotland
Re: Wanted: Position X & Y at the Center of a Hole Macro
«
Reply #4 on:
September 22, 2010, 09:57:12 AM »
Quote from: wvancura on September 22, 2010, 08:42:52 AM
I noticed that if the 'Machine Coordinates' button happens to be pressed, strange things happen. I need to find how to determine that button is ON so I can force a warning message.
Thanks again,
Bill
Something like this at the start of the macro should do it.
If GetOemLED(16) Then
MsgBox("Machine Coord's Active, change and restart macro")
End
End If
Hood
Logged
wvancura
Active Member
Offline
Posts: 72
Re: Wanted: Position X & Y at the Center of a Hole Macro
«
Reply #5 on:
September 23, 2010, 12:28:43 PM »
Hood,
OEMLed(16) did the trick. I Found this solution works well. I used an ElseIf and posted the message in the status window. That way the process is automatically terminated on this error condition. Added it as follows:
===============================
If GetOemLed (825) <> 0 Then 'Check to see if the probe is already grounded or faulty
Code "(Probe is grounded, check clearance and try again)"
ElseIf GetOemLed (16) <> 0 Then 'Warning Wrong Coordinate system
Code "(Center Finder Error: Exit Machine Coordinate Mode)"
Else
(Body of the code)
===============================
I added a second pass at finding the center of the X axis, because I didn't trust the probe to give me good results if it starts out next to the Y edge of a hole. Once the near X axis center is found, the probability of a clean touch goes way up. The process now searches for X, then Y, then X again, done. On several practice runs, I noticed that the X center moved a few thousandths on the second pass, but never by more than 0.001 on a search starting from the near center of the circle. This is well within the slop of the CNC machine.
Thanks,
Bill
Logged
Hood
Active Member
Offline
Posts: 17,358
Carnoustie, Scotland
Re: Wanted: Position X & Y at the Center of a Hole Macro
«
Reply #6 on:
September 23, 2010, 01:46:07 PM »
The other way you could do it is if in Machine coords you could change it from the macro rather than aborting.
Hood
Logged
DaveCVI
V4 Screen Contributor
Offline
Posts: 532
Re: Wanted: Position X & Y at the Center of a Hole Macro
«
Reply #7 on:
September 23, 2010, 03:59:11 PM »
Hi,
If you don't like reinventing the wheel, you might be interested to know that circular hole center finding is a built in feature of MachStdMill's probing support.
Drop over to the MSM forum for more info.
http://www.machsupport.com/forum/index.php/topic,15291.0.html
Dave
Logged
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...