586,358 active members*
3,559 visitors online*
Register for free
Login

Thread: Touch Plate

Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2007
    Posts
    20

    Touch Plate

    Hello Everyone,

    I have made a Touch Plate and some programs to touch off the new tool hen i insert it, when the program trys to call the touch off progam(s) it stops working and goes no where.

    Just wondering if anyone has any ideas or hint or pages with info on how to call sub rutiones that set the new tool height and contine the program.

    Hope this makes sence.

    Thanks
    William

  2. #2
    Join Date
    Oct 2010
    Posts
    156
    Hi William,

    Maybe seeing you code might help. My probe code starts something like: G38.2 Z -100 F998.0 and then G92 Z0.0 after the switch is tripped. And in my HAL file, I have the touch probe setup something like: ProbeSwitch parport.0.pin-11-in => motion.probe-input. What is on the line of code when your setup stops working?

    Paul

  3. #3
    Join Date
    Nov 2007
    Posts
    20
    thanks for the info/help paul

    this is still puzzling me thought so here are the 2 files i'm using and it locks up/cans itself at the line where it calls the 1st ztouch.

    hope you can understand what it's doing.

    any more help would be great.

    William

  4. #4
    Join Date
    Oct 2010
    Posts
    156
    William,

    Not sure how much I can help. I don't use subroutines as much as I should. But more questions/comments:

    I think you need the "<" and ">" surounding your named subroutines.

    The sub file: is it named ztouch (Not ZTouch) and does it have a file extension? .ngc?

    Is this file located in the root of either PROGRAM_PREFIX or SUBROUTINE_PATH from the ini file?

    Not sure what the "%" does in the sub.

    I think you need to modify your sub's line "oztouch sub" to add "<" and ">" around the name

    I think you need to add an endsub statement to the end of ztouch.



    Hope something above helps...

    Paul

  5. #5
    Join Date
    Nov 2007
    Posts
    20
    Hello Again

    Sorry i attached the wrong files, here is the proper ztouch off program i am trying to use. It works when called in MDI mode but not in auto so anyones thoughts/help would be great.

    The file for attachment reasons has been labeled ztouch.txt but on the linux pc it it know as ztouch.ngc.

    So hope someone out there can help some more.

    Also thanks so far Paul

    Cheers
    William
    Attached Files Attached Files

  6. #6
    Join Date
    Oct 2010
    Posts
    156
    Hi William,

    Just making sure, but are you pressing "S" on the keyboard when you get into your subroutine to get the machine off of the M0, pause mode?

    PK

  7. #7
    Join Date
    Nov 2007
    Posts
    20
    Hello again Paul.

    Yeah was trying to do that but it would even bring up the message before hand to tell me to.

    Anyway with your help on a few points like putting the sub routines in a directory and point it there and me just mucking round with it and my post processor it now somehow works.

    Thanks for the help thought and if i have any more problems i will prob be back.

    Thanks again
    William

  8. #8
    Join Date
    Oct 2010
    Posts
    156
    Glad you got it going, William.

    Paul

Similar Threads

  1. CNC Touch Off Plate
    By bgriggs in forum DIY CNC Router Table Machines
    Replies: 6
    Last Post: 01-04-2014, 05:48 AM
  2. z touch off plate
    By Alwaysintheknow in forum Chinese Machines
    Replies: 1
    Last Post: 06-10-2013, 03:20 AM
  3. Replies: 12
    Last Post: 06-05-2013, 06:05 PM
  4. Touch off plate
    By rich_cree in forum Benchtop Machines
    Replies: 2
    Last Post: 06-03-2010, 06:05 PM
  5. Touch Off Plate
    By gunlocators in forum Benchtop Machines
    Replies: 4
    Last Post: 10-07-2008, 07:25 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
  •