Need Help! mach3 zero touch plate issue (script?)


Results 1 to 9 of 9

Thread: mach3 zero touch plate issue (script?)

  1. #1
    Member
    Join Date
    Mar 2018
    Location
    United States
    Posts
    54
    Downloads
    0
    Uploads
    0

    Default mach3 zero touch plate issue (script?)

    I have tried 2 scripts for the Auto Tool Zero and can't find the message I am getting. The message I get is " Scripter Compile Error", I have gone over the file a few times and it all looks right but I keep getting this message. The file is from The Guru Brew Guy and it looks like a great file. It seems no one else has this issue. Is it possible that t is Windows 7? Only thing I had to do was change to metric. Any help would be great, ill try anything because the first one I put in did work either and its getting old.Thanks

    Similar Threads:


  2. #2
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4043
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    Hi PJRU0304,

    The message would be from Mach3 when it tries to compile the script.

    Is there any other info in the message?

    Have you looked at the file with Notepad to see if there may be some bad characters somewhere?

    Can you post the file?

    Do other scripts work?

    What exactly did you change?

    Regards

    Regards
    TK http://dynomotion.com


  3. #3
    Member
    Join Date
    Mar 2018
    Location
    United States
    Posts
    54
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    here is a copy of the original and then the changes I made

    ORIGINAL COPY

    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
    IfGetOemLed (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-4. F4" 'probing move,
    can set the feed rate here as well as how far to moveWhile 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, .060) ' change .060 to your plate thickness and then adjust for final accuracy
    Sleep 200 'Pause for Dro to update.
    Code "G1 Z1. 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 IfIf CurrentGMode = 0 Then 'if G0 was in effect before then return to itCode "G0"End If

    MY COPY (EDITED)

    Current Feed = GetOemDRO(818) 'Get the current feedrate to return to later
    CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91
    stateCurrentGmode = GetOemDRO(819) 'Get the current G0/G1

    stateIf 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-75. F75" '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, 18.23) ' change .060 to your plate thickness and then adjust for final *
    accuracy
    Sleep 200 'Pause for Dro to update.
    Code "G1 Z25. F75" '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 IfIf CurrentGMode = 0 Then 'if G0 was in effect before then return to it
    Code "G0"End If

    * at the end of a line are the only 3 lines I edited

    and that was the only thing in the message space and I have no other scripts working but this issue may have something to do with another quirk going on. I can not set any soft limit at all I tried doing just 1 axis at a time and I get the same message on ever axis and the message says Outside of soft limits, I have zero's on all boxes in Homing/Limits. Nothing on and still get the message so I think I may have an unstable windows 7
    thanks for any help or ideas you might have
    Pat

    Last edited by PJRU0304; 04-05-2018 at 05:14 PM. Reason: came out wrongjust need to push lines around


  4. #4
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4043
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    Hi Pat,

    Your formatting is all messed up. Did you preview your post before posting?

    Please rename your files as .txt files and upload as attachments.

    Do you have a KFLOP?

    Regards

    Regards
    TK http://dynomotion.com


  5. #5
    Member
    Join Date
    Mar 2018
    Location
    United States
    Posts
    54
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    try this



  6. #6
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4043
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    Hi Pat,

    We wouldn't want to carefully check something that you edited manually by hand. We would want to be guaranteed to check exactly what you are using and causes the error. Do you realize that one wrong character or one misplaced carriage return in the wrong place could be your problem and cause the code not to compile? I see a few errors. Like instructions moved intto comments. 'If' changed to "stateIf". etc.

    Please rename your files as .txt files and upload as attachments.

    Do you have a Dynomotion KFLOP?

    Regards

    Regards
    TK http://dynomotion.com


  7. #7
    Member
    Join Date
    Mar 2018
    Location
    United States
    Posts
    54
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    okay here it is in a .txt file and my controller was designed and built by me so it is very simple and works goodthanks for the assist

    Attached Files Attached Files


  8. #8
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4043
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    Hi PJRU0304,

    Well now you combined both your files into one file and added some comments that would cause a script compile error. The idea was to be able to test the exact file you are using to see if we get a script compile error or not without having to make an assumptions about what you are changing and doing.

    Anyway I separated your copy of the script and removed the extra stuff and it doesn't give a script compile error on my system. I'm running Mach3 Version 3.043.066.

    See the attached file. You might test it on your system:

    #1 download the attached file
    #2 remove the .txt extension
    #3 run Mach3
    #4 open Operator | VB Script Editor
    #5 open the file
    #6 push the Run Script button

    do you get any error?

    Regards

    Attached Files Attached Files
    Regards
    TK http://dynomotion.com


  9. #9
    Member
    Join Date
    Mar 2018
    Location
    United States
    Posts
    54
    Downloads
    0
    Uploads
    0

    Default Re: mach3 zero touch plate issue (script?)

    okay thanks, ill give it a try today and let you know how it goes.Pat



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

mach3 zero touch plate issue (script?)

mach3 zero touch plate issue (script?)