. .

Thread: g31 code probe

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    well gentlemen, three months ago i never thought id be asking for help with g code..if im honest i didnt think id be this far in............im after a piece of code to put into mach3 to get my touch off probe working.iv seen some posts on other forums but im not a member so cant copy the code.....weve got my touch off fitted and wired so on my mach plasma screen it shows a digitise light when activated but does nothing more...would like it to zero my dro and lift up to a designated point........

    im learning and its a steep curve.if im using the wrong termonology please correct me...............

    warwick

  2. #2
    Neale's Avatar
    Lives in Plymouth, United Kingdom. Last Activity: 4 Hours Ago Has been a member for 9-10 years. Has a total post count of 1,726. Received thanks 295 times, giving thanks to others 11 times.
    What do you need it to do exactly? You have a probe that will detect the top of the work and set Z DRO to a preset value?

    I've just been working on this for my router, based heavily on code published elsewhere (including 53 pages of posts on CNCZone in just one topic, making sure that I had the latest version...). It's pretty straightforward, Just a couple of lines of code to do the work. Plus a couple of dozen lines to sort out issues like units, abs/inc mode, coord display mode, etc...

    Be happy to throw something together if you really can't find what you want elsewhere but I would suggest that you pick up a known version from CNCZone - worth signing up to it for that alone.

  3. #3
    Quote Originally Posted by Neale View Post
    What do you need it to do exactly? You have a probe that will detect the top of the work and set Z DRO to a preset value?

    I've just been working on this for my router, based heavily on code published elsewhere (including 53 pages of posts on CNCZone in just one topic, making sure that I had the latest version...). It's pretty straightforward, Just a couple of lines of code to do the work. Plus a couple of dozen lines to sort out issues like units, abs/inc mode, coord display mode, etc...

    Be happy to throw something together if you really can't find what you want elsewhere but I would suggest that you pick up a known version from CNCZone - worth signing up to it for that alone.
    hi, i would like it to touch off on the steel rise to set height and zero the dro....i think.correct me if im wrong....i understand that i will have to modify it for my machine...id seen a topic and some code on cnc zone but im not a member and im a bit funny about just taking content of forums and giving nothing back.hence my build log.....

  4. #4
    Neale's Avatar
    Lives in Plymouth, United Kingdom. Last Activity: 4 Hours Ago Has been a member for 9-10 years. Has a total post count of 1,726. Received thanks 295 times, giving thanks to others 11 times.
    Quote Originally Posted by warwick View Post
    id seen a topic and some code on cnc zone but im not a member and im a bit funny about just taking content of forums and giving nothing back.hence my build log.....
    I understand your view but I tend to take the attitude that what goes around, comes around. Help when and where you can, take help from wherever you need. It averages out in the end!

  5. #5
    Quote Originally Posted by warwick View Post
    ...id seen a topic and some code on cnc zone but im not a member and im a bit funny about just taking content of forums and giving nothing back.hence my build log.....
    ...if it is public and available for you to see then there is nothing wrong with taking that code. If you are not comfortable with that then you have to wait until tonight and hope that I remember, and have time to get back to this thread. I will post my code for Z zero but will probably not have time with guiding you all the way because I no longer use Mach3 and have very little time to play with it. Anyway, the code I will post works for me and have used it quite some time, but it is a pretty simple code.

    Probing is really pretty simple, and the simplest is to place your probe a few mm over the touch plate (less than 3 mm in my example), zero Z by clicking on the button and simply type for example: G31 Z-3 F400 (assuming you have mm units). The code will start move your Z towards the touch plate with a speed of 400mm/min and will stop as soon as the probe touches the plate, or as soon as it reaches -3 mm, whichever come first. If the probe stops after it touched the plate you can zero Z again and that's it.

    Yes, there are fancier ways of doing it as well but either you take the code you think fits your needs or create your own which fits your ideas of how it should behave. Anyway, I can paste my code in here for anyone to use, but cannot promise to spend time discussing it or how to connect the touch plate/probe and so on. There is plenty public information about this on the Internet.

  6. #6
    Sorry, I had no time last night. Will try again tonight.

  7. #7
    Quote Originally Posted by A_Camera View Post
    Sorry, I had no time last night. Will try again tonight.
    its no problem..im greatful of any help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Edge Probe + tool length probe on same input
    By Noplace in forum General Electronics
    Replies: 1
    Last Post: 18-06-2016, 11:12 AM
  2. CNC Probe - Tried this one?
    By Davek0974 in forum Machine Discussion
    Replies: 13
    Last Post: 03-06-2016, 02:58 PM
  3. Probe-it / any users ?
    By dudz in forum CAD & CAM Software
    Replies: 8
    Last Post: 02-11-2015, 11:51 PM
  4. RFQ: Cooler probe
    By DAHammond in forum Projects, Jobs & Requests
    Replies: 0
    Last Post: 10-06-2015, 05:18 PM
  5. Cambium Code Web Tools – Parametric G-code Generation
    By CambiumMachines in forum Manufacturer News
    Replies: 0
    Last Post: 09-01-2013, 04:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •