586,117 active members*
3,510 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2013
    Posts
    32

    Exclamation HELP MACH3 VBSCRIPT

    helllo
    if you could help me with my problem that would be great .. i have a little problem with mach3 vb script .. whenever i write this vb script it sends a message says "syntax error" is there anything wrong in the script ... im a newbie here ( the script is for Mach3 probe that works with THC proma ) and if you have good probe scripts that works with THC that would be great if you sent them
    the script:
    CurrentFeed = GetOemDRO(818)
    PierceHight = -4.0
    ProbeFeed = 1300.0

    Code "G90 F" &ProbeFeed

    If GetOemLed(825)=0 Then

    Code "G31 Z-117 F" &ProbeFeed

    While IsMoving()
    Wend

    Code "G4 P0.25"

    ZprobePos = GetVar(2002)

    Message "ProbePos is" & ZprobePos


    Code "G0 Z" &ZprobePos

    While IsMoving()
    Wend

    Call SetDRO(2. PierceHight)

    While IsMoving()
    Wend


    Code "G4 P0.6"
    Code "G0 Z 0"
    Code "G92 Z0.0"

    Message "Z at Perice Hight " & ZprobePos

    Code "F" & CurrentFeed

    StartTHC()

    ZeroTHC()

    Else

    Code "(ERROR. Plate is Grounded)"

    GotoSafeZ()

    Exit Sub

    End If

    if you could help me please reply soon

  2. #2
    Join Date
    Jul 2003
    Posts
    1220

    Re: HELP MACH3 VBSCRIPT

    You should have a space between the & and variables.

Similar Threads

  1. need to convert conventional gcode in vbscript for mach3
    By revolucion in forum Visual Basic
    Replies: 1
    Last Post: 05-30-2015, 12:00 AM
  2. trying to convert probig script linux cnc in vbscript for mach3
    By revolucion in forum Digitizing and Laser Digitizing
    Replies: 0
    Last Post: 01-16-2015, 05:12 AM
  3. Mastercam vbscript execution
    By vortxx in forum Visual Basic
    Replies: 1
    Last Post: 03-06-2012, 05:32 PM
  4. VBScript Documentation for Mach3?
    By fatal-exception in forum Mach Wizards, Macros, & Addons
    Replies: 3
    Last Post: 09-19-2007, 03:52 PM
  5. VBScript
    By DAB_Design in forum Mach Software (ArtSoft software)
    Replies: 5
    Last Post: 02-21-2005, 02:19 PM

Tags for this Thread

Posting Permissions

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