588,550 active members*
4,954 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    73

    A Little Basic VB Help, please?

    Zmove = 1.5 'amount the tool will move down to hit the probe
    Zpos = GetDRO(2)
    Tool = GetDRO (24)
    ZOffset = .5 'enter height of probe here

    I'm trying to set up the Auto Tool Zero button in my Mach 3. I got the VB Script from the Auto Tool Zero thread and use the "Edit Button" from the operator drop down menu just liek the thread says, but get a "Driver Watchdog Triggered" message as soon as I'm done entering the script lines. Dumb question, but once I get all the lines entered, what do I do next; save the file, save the file as something specific, run it, HELP??? I've never used scripts before so I'm a NEWBIE at it!!!!
    OldZpos = Zpos
    ZPos = Zpos - ZMove
    Code "G31 Z" & ZPos & " F20.0"
    While IsMoving()
    Wend
    Zpos = GetVar (2002)
    If Zpos = OldZpos - ZMove Then
    responce = MsgBox ("ERROR! The tool did not hit the probe and DRO was not set" , 4 , "Probe ERROR!" )
    Else
    SetDRO (2,ZOffset)
    End If

    Code "G00 G53 Z-.1"

  2. #2
    Join Date
    Mar 2004
    Posts
    73

    EUREKA!

    I figured it out! Had a few punctuation and syntax errors and found out that simply closing the window and saving the changes is the way to do it. It's too cool! I'm using a TP100 probe with the "tool set platform" on it and setting the VB probe height to 2.040. PERFECT!!

Similar Threads

  1. a very basic fan question.
    By cyclestart in forum CNC Machine Related Electronics
    Replies: 2
    Last Post: 07-07-2008, 12:43 AM
  2. Need Basic Help
    By Giz_zmo in forum Mastercam
    Replies: 3
    Last Post: 05-14-2008, 08:27 PM
  3. Some really basic Questions
    By Chris64 in forum Mach Software (ArtSoft software)
    Replies: 7
    Last Post: 01-30-2008, 07:39 PM
  4. Some basic questions about (DIY) cnc
    By mihaelbele in forum DIY CNC Router Table Machines
    Replies: 1
    Last Post: 09-07-2007, 09:07 PM
  5. New guy asking basic questions.
    By Crazybillybob in forum CNC Machine Related Electronics
    Replies: 2
    Last Post: 02-23-2007, 05:28 AM

Posting Permissions

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