. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by kell View Post
    If my gauge height is 19.10mm how would the code change as i am unsure where it is entered.
    And i will try this code on my machine as i am trying to get a zero z script to work
    It will be a constant in the probe macro you are using. Post the macro and will take a look.
    -use common sense, if you lack it, there is no software to help that.

    Email: [email protected]

    Web site: www.jazzcnc.co.uk

  2. #2
    kell's Avatar
    Lives in doncaster, United Kingdom. Last Activity: 15-12-2024 Has been a member for 9-10 years. Has a total post count of 53.
    Quote Originally Posted by JAZZCNC View Post
    It will be a constant in the probe macro you are using. Post the macro and will take a look.
    Hi dean
    long time. i have a code here that is on machine but it gose down and touches then gose up about 50mm then when i remove probe and click goto zero it only moves about 25mm down

    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 G31 Z-50 F255" '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, 19.10) ' change .060 to your plate thickness and then adjust for final accuracy
    Sleep 200 'Pause for Dro to update.
    Code "G1 Z25 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

  3. #3
    Mark, can't see anything in the code that would make it do that. These are the lines that set the new Zero by entering the thickness of your probe plate into the Z DRO and then it retracts up to 25mm above new Zero so shouldn't go anywhere near 50mm.?

    Do you have any tool height offset's set in the tool table.?

    Quote Originally Posted by kell View Post
    Call SetDro (2, 19.10) ' change .060 to your plate thickness and then adjust for final accuracy
    Sleep 200 'Pause for Dro to update.
    Code "G1 Z25 F50" 'put the Z retract height you want here, must be greater than the touch plate thickness
    -use common sense, if you lack it, there is no software to help that.

    Email: [email protected]

    Web site: www.jazzcnc.co.uk

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. WANTED: Boxford or Denford Lathe Auto Tool Changer
    By DagnW in forum Items Wanted
    Replies: 1
    Last Post: 27-03-2017, 10:45 PM
  2. 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
  3. Z AXIS, big tex blue screen and auto tool sensor Problems
    By Tomnewry in forum Artsoft Mach (3 & 4)
    Replies: 11
    Last Post: 01-01-2014, 09:01 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
  •