. .

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Here is my problem I am hoping someone can help me. When I use my touch plate the bit does stop when it reaches the plate, but it does not retract and when I push on the go to zero button it goes back up to the starting point before the touch plate was used instead of going down to material. I went into configuration and then ports / pins then did the automated setup for input.

    Here is my system I am using
    Windows 7 ultimate, 32 bit. using parallel port
    Mach 3 version R3.043.062
    mm units

    Here is the code I am using

    CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
    CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91 state
    CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

    If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
    DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
    Code "G4 P3" ' this delay gives me time to get from computer to hold probe in place
    Code "G90 G31Z-10. F4" 'probing move, can set the feed rate here as well as how far to move
    While IsMoving() 'wait while it happens
    Wend
    ZProbePos = GetVar(2002) 'get the exact point the probe was hit
    Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
    While IsMoving ()
    Wend
    Call SetDro (2, 20.041) ' change .060 to your plate thickness and then adjust for final accuracy
    Sleep 200 'Pause for Dro to update.
    Code "G1 Z21. F50" 'put the Z retract height you want here, must be greater than the touch plate thickness
    While IsMoving ()
    Wend
    Code "(Z axis is now zeroed)" 'puts this message in the status bar
    Code "F" &CurrentFeed 'Returns to prior feed rate
    Else
    Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if applicable
    End If
    If CurrentAbsInc = 0 Then 'if G91 was in effect before then return to it
    Code "G91"
    End If
    If CurrentGMode = 0 Then 'if G0 was in effect before then return to it
    Code "G0"
    End If

    I would appreciate any help as I am very new to all this, Thank you
    Last edited by Terik1957; 05-10-2021 at 10:23 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mach3 Auto Tool Zero help
    By piper1 in forum Gantry/Router Machines & Building
    Replies: 16
    Last Post: 27-04-2021, 07:36 AM
  2. Missing codes in auto tool changer
    By jhonansaro in forum Gantry/Router Machines & Building
    Replies: 1
    Last Post: 22-04-2018, 11:17 PM
  3. Help Please With Auto Tool Height Mach 3 Problem
    By howser37 in forum Probing, Digitizing & Scaning
    Replies: 26
    Last Post: 12-06-2014, 07:55 PM
  4. What Spindle / Auto Tool Changer?
    By Chaz in forum Tool & Tooling Technology
    Replies: 11
    Last Post: 01-08-2013, 10:35 PM
  5. how to make auto tool changer on mach3
    By m.vekariya in forum Artsoft Mach (3 & 4)
    Replies: 1
    Last Post: 13-03-2013, 08:48 PM

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
  •