Hello Guest it is April 24, 2024, 03:44:00 AM

Author Topic: Auto Zero Assistance - Moves up 1inch  (Read 1505 times)

0 Members and 1 Guest are viewing this topic.

Auto Zero Assistance - Moves up 1inch
« on: August 28, 2017, 02:54:46 PM »
I've tried to search, but came up empty.  I also attempted a few tries with my supplied script for my machine, but only got it to work once.  I sadly then had a system failure and had to set up all software again.  Now, Auto Z only moves up 1 inch when I hit auto z.  My script is for a China CNC Router, and supplied by vendor.  Here it is, but not sure why it only moves up 1inch and then stops.   -  Any help would be much appreciated.  This is my last hurdle before being able to run my first test job. 


Rem   Probe Down by leafboy77 2010-11-20 (Based On Erniebro & PEU Work)

FeedCurrent = GetOemDRO(818)    'Get the current settings, OEM DROs (818)=Feedrate DRO
ZCurrent = GetOemDro(802)   'OEM DROs (802)=Z DRO
GageH = GetOEMDRO(1001)   'OEMDRO(1001)=Gage Block Height
ZNew = ZCurrent - 20      'probe down 20 mm

Code "G90F100"         'slow feed rate to 100 MM/MIN
Rem Code "G4 P1"         'Pause 1 second to give time to position probe plate
Code "G31 Z" &ZNew
While IsMoving()
Sleep(10)
Wend
Call SetDro (2,GageH)      'DRO(2)=Z DRO

FinalMove = GageH + 10
Code  "G0 Z" &FinalMove
Code "F" &FeedCurrent        'restore starting feed rate   dr.lin 2009.10.16

Offline RonC

*
  •  32 32
    • View Profile
Re: Auto Zero Assistance - Moves up 1inch
« Reply #1 on: September 01, 2017, 08:46:10 AM »
Hi,
I am no expert at this but it looks like the code tells the tool to raise to 10mm above your gage block height ,  try increasing the 10 to 20 or 30.
Also the code is in Metric not inches.
Best
RonC