Touch-off plate for CNC router? - Page 11


Page 11 of 13 FirstFirst ... 8910111213 LastLast
Results 201 to 220 of 254

Thread: Touch-off plate for CNC router?

  1. #201
    Registered
    Join Date
    May 2013
    Location
    India
    Posts
    0
    Downloads
    0
    Uploads
    0

    Default

    Hi All,

    This thread was very helpful in putting my Z touch-off probe in place. Thought to share some small information to great minds here.
    My Z-axis was moving down slowly towards the ground plate, touching it, and used to sit on the plate without rapidly moving away as programmed in the classicladder. After spending lot of time, I found that the third MDI command was commented out. Un-commenting the following line in custom_postgui.hal made my Z-probe to work as expected.
    net rapid-away classicladder.0.out-02 => halui.mdi-command-02

    Ho yeah, I also added debouncing for the probe to avoid noise/mdi errors, as many have suggested in the earlier thread. Following were the changes I did in my main.hal file.

    #added for probe debouncing
    loadrt debounce cfg=2
    setp debounce.0.delay 200
    addf debounce.0 base-thread
    #end of probe debouncing

    #Commented out the existing configuration
    #net probe-in => motion.probe-input
    #net probe-in <= parport.0.pin-13-in-not

    #added for probe debounce
    net debounce-probe-in debounce.0.0.in <= parport.0.pin-13-in-not
    net probe-in debounce.0.0.out => motion.probe-input
    #end of probe debounce

    Hope this helps

    -Regards,
    Gururaj
    ideaguru



  2. #202
    Registered
    Join Date
    Nov 2013
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by strokercrate View Post
    sorry I have been gone for awhile. Yea i'll upload the files, you need the input wire ran and the probe port turned on.

    shoot me a email, seeing that I check it more regularly when you get this reply and i'll send the files.

    jamesbalnks@ymail.com
    Hello,

    Does anyone have the O code files please? I've sent an email to strokercrate but haven't received a reply. I'll be very grateful if someone could upload or send the files to me please.

    thanks



  3. #203
    Registered
    Join Date
    Nov 2013
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by strokercrate View Post
    sorry I have been gone for awhile. Yea i'll upload the files, you need the input wire ran and the probe port turned on.

    shoot me a email, seeing that I check it more regularly when you get this reply and i'll send the files.

    jamesbalnks@ymail.com
    Hello,

    Do anyone have the O code files to share please? I have emailed strokercrate but have not received a reply yet.

    thanks in advance



  4. #204
    Registered
    Join Date
    Apr 2013
    Location
    usa
    Posts
    14
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Paulnd View Post
    Hello,

    Do anyone have the O code files to share please? I have emailed strokercrate but have not received a reply yet.

    thanks in advance
    I haven't received a email about the O codes in a couple of months, and those I replied to.

    Try again, jamesbalnks@ymail.com

    Also, you could just post your email and I could fwd them.

    Thanks



  5. #205
    Registered
    Join Date
    Nov 2013
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    Ah, just realised that I misspelled your email address! Sent you another one



  6. #206
    Registered
    Join Date
    Nov 2013
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    If it doesn't work, my email is pdumke at gmail dot com. Thanks



  7. #207
    Registered
    Join Date
    Nov 2013
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    I received your email, thanks. Unfortunately there was no zip file attached



  8. #208
    Registered
    Join Date
    Mar 2006
    Location
    USA
    Posts
    115
    Downloads
    0
    Uploads
    0

    Default

    After reading this thread several times, digging around and using the tutorial at For Science » LinuxCnc ? Touch plate ? Part 2 I have managed to learn more about HAL, HALUI, and classic ladder than I ever thought I could. Just wanted to thank all of you for your hard work. But I do have one question and don't know if it is even possible.

    If I do a manual touch off the display of the plot of my gcode will move to the new location. This is a great visual indicator of the touch off happening. When I use the touch off button from this thread, the offsets are set but the plot stays in it's original location. Is it possible to get the plot to move when the touch off is set like in manual mode? I just think it would be a great visual indication that all is working as expected.

    Thanks,

    Joe Hildreth



  9. #209
    Member
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1344
    Downloads
    2
    Uploads
    0

    Default

    strokercrate kindly provided the code for me to get my touch plate going. It's great.

    I've written an article: 7xCNC - Minilathe CNC :: LinuxCNC Probing / Touch Off
    I think O codes are the easiest way to get it going.



  10. #210
    Registered
    Join Date
    Mar 2006
    Location
    USA
    Posts
    115
    Downloads
    0
    Uploads
    0

    Default

    Pippin,

    Just looked at your article. So, this method removed the ladder program and replaces it with a sub-routine. Nice and clean!! Thanks for sharing it. One question. If the probe does not make contact, what happens after you get the error message? Does it just return from the sub-routine without running any more G-Code, Or does it continue to set the offset reguardless?

    Many thanks again for sharing!

    Joe



  11. #211
    Registered
    Join Date
    Apr 2013
    Location
    usa
    Posts
    14
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by WJHildreth View Post
    Pippin,

    Just looked at your article. So, this method removed the ladder program and replaces it with a sub-routine. Nice and clean!! Thanks for sharing it. One question. If the probe does not make contact, what happens after you get the error message? Does it just return from the sub-routine without running any more G-Code, Or does it continue to set the offset reguardless?

    Many thanks again for sharing!

    Joe
    You have to set the search distance in the 100.ngc file, if your Z travel is say 6 inches that should be your search distance, or if you go in mm and your Z travel is say 15mm the search should be set about the same, of course it doesn't have to be exactly that much accounting for a bit, but close enough.

    The hard components rarely wear out so why buy a whole new machine when you can replace the electronic parts that do? www.cncretrofitservices.com


  12. #212
    Registered
    Join Date
    May 2012
    Location
    usa
    Posts
    40
    Downloads
    0
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    hi all i was wondering if you could help me get my machine going with a touch off plate. i fallowed the instructions on the web sit listed and i though i did everything right but now linuxcnc will not start i got the error message
    Debug file information:
    Can not find -sec MOT -var MOT -num 1
    Can not find -sec IO -var IO -num 1
    Can not find -sec LINUXCNC -var NML_FILE -num 1
    Can not find -sec EMC -var NML_FILE -num 1
    custom_postgui.hal:4: Pin 'pyvcp.o100' does not exist
    6098
    PID TTY STAT TIME COMMAND
    6149
    PID TTY STAT TIME COMMAND
    Stopping realtime threads
    Unloading hal components
    can anyone help me resolve this issue attatched are all the files that were modified except the 100.ngc

    thank you for your time

    Attached Files Attached Files


  13. #213
    Member
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1344
    Downloads
    2
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    rotccapt. Slow reply, sorry.

    The problem is your custompanel.xml
    You've commented out (<!-- and -->) all the actual code, and you've doubled up on the xml and <pyvcp> tags.
    The whole file should be:
    Code:
    <?xml version='1.0' encoding='UTF-8'?>
    <pyvcp>
    <button>
         <halpin>"o100"</halpin>
         <text>"Touch Off Z"</text>
         <font>('fixed',10)</font>
    </button>
    </pyvcp>
    If you have other functions on your pyvcp you just need:
    Code:
    <button>
         <halpin>"o100"</halpin>
         <text>"Touch Off Z"</text>
         <font>('fixed',10)</font>
    </button>
    in there somewhere.



    In other news I've got a guide on finding a corner with LinuxCNC and NGCGU



  14. #214
    Registered
    Join Date
    May 2012
    Location
    usa
    Posts
    40
    Downloads
    0
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    thank you for the reply i did get linux cnc back up and running with the new button but the function still does not work when i click the button i get another error saying that "can not open file <100> im not sure if it might have something to do with creating the file in windows or what not. i opened hal monitor and i do see that the pin is active but it still does not work. i have not played with it in a while though. my problem was in the custom panel and i ended up deleting everything in the file and starting over but thanks for the help.



  15. #215
    Registered folc's Avatar
    Join Date
    Oct 2010
    Location
    Slovenia
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    Hello everyone,

    I'm wondering if it is possible to run more than 1 MDI_COMMAND with custom button in LinuxCNC. What i want is to make z-touch off buttown. YES i know here are files already, but non is working as i want. I'd like to run 7 G-code lines with 1 button. I'm tryin to do like this example on this page. Link]Untitled Document

    But problem is, that when i click on the created button, all MDI_COMMAND's are executed without waiting that 1st complete then 2nd and so one. I hope i make myself clear.
    Problem is what to write in "custom_postgui.hal" file.

    G-code I want to run with button
    G21
    G91 G38.2 F450 Z-60
    G90 G0 Z[#5063+2.5]
    G91 G38.2 F150 Z-13.5
    G90 G0 Z[#5063+1.52]
    G10 L20 P1 Z3.04
    Tnx for any help,
    Greeting from Slovenia



  16. #216
    Registered folc's Avatar
    Join Date
    Oct 2010
    Location
    Slovenia
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    hello



  17. #217
    Member
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1344
    Downloads
    2
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    folc,

    I'm not sure what the problem is exactly (I'm unclear what you want and what is wrong.)

    Can you post your files please?

    So you want a single virtual control panel button to run lines of GCode?
    Do you have your gcode in an o subroutine file, or specified in the ini?

    And to be clear on the code you want to run, my understanding of it is:
    Code:
    G21 (mm mode)
    G91 G38.2 F450 Z-60 (incremental mode, probe to Z-60 from current position at 450 feed)
    G90 G0 Z[#5063+2.5] (absolute mode, rapid to 2.5 above probe trigger)
    G91 G38.2 F150 Z-13.5 (incremental, probe at slower speed of F150 to Z-13.5)
    G90 G0 Z[#5063+1.52] (absolute, rapid to 1.52 above Z probe trigger point)
    G10 L20 P1 Z3.04 (set G54 Z to 3.04)
    I'm a bit confused about why you rapid up after the second probe, before actually setting the value in the coordinate system?



  18. #218
    Registered folc's Avatar
    Join Date
    Oct 2010
    Location
    Slovenia
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    So you want a single virtual control panel button to run lines of GCode?
    Do you have your gcode in an o subroutine file, or specified in the ini?
    Yes, I want to run series of lines of G-code by presing on single button, and YES i have my G-code stored in my .INI file as "MDI_COMMAND = G21" and then next line "MDI_COMMAND = G91 G38.2 F450 Z-60" etc.

    And to be clear on the code you want to run, my understanding of it is:
    Code:
    G21 (mm mode)
    G91 G38.2 F450 Z-60 (incremental mode, probe to Z-60 from current position at 450 feed)
    G90 G0 Z[#5063+2.5] (absolute mode, rapid to 2.5 above probe trigger)
    G91 G38.2 F150 Z-13.5 (incremental, probe at slower speed of F150 to Z-13.5)
    G90 G0 Z[#5063+1.52] (absolute, rapid to 1.52 above Z probe trigger point)
    G10 L20 P1 Z3.04 (set G54 Z to 3.04)
    I'm a bit confused about why you rapid up after the second probe, before actually setting the value in the coordinate system?
    Rapid UP is there for safe removing my PCB plate, so that there is no fizical contact while draging copper PCB plate out from end mill.
    1.52mm = ticknes of the PCB plate
    G10 L20 Z3.04 = ticknes of the PCB plate (1.52mm) + 1.52mm above plate = 3.04MM so end mill ends exacly 1.52mm above PCB touch off plate and 3.04mm off the part that i want to mill.



  19. #219
    Member
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1344
    Downloads
    2
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    I suggest following my guide 7xCNC - Minilathe CNC :: LinuxCNC Z Touch Off Plate

    Each MDI command in .ini is separate and needs to be called with it's own halui.mdi-command-xx (where xx is 00, 01 etc corresponding to the commands position in the list in the ini). I'm not sure what happens if you try to call multiple MDI command at once.

    You need the commands in a subroutine (an o file). It's in my guide.



  20. #220
    Registered folc's Avatar
    Join Date
    Oct 2010
    Location
    Slovenia
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Touch-off plate for CNC router?

    Quote Originally Posted by pippin88 View Post
    I suggest following my guide 7xCNC - Minilathe CNC :: LinuxCNC Z Touch Off Plate

    Each MDI command in .ini is separate and needs to be called with it's own halui.mdi-command-xx (where xx is 00, 01 etc corresponding to the commands position in the list in the ini). I'm not sure what happens if you try to call multiple MDI command at once.

    You need the commands in a subroutine (an o file). It's in my guide.

    i was just trying to set up my Z touch off by your guide for past hour, what i did is that i comment your 2 lines in custom.hal

    #net deb-probe-in debounce.0.0.in <= parport.0.pin-13-in-not
    #net probe-in debounce.0.0.out

    because i was getting the error that probe is already activated (I did that with StepCONF wizard)

    then i managed to do 100.ngc program and call sub program with custom button. Everything works great.
    The problem now is G-code ... i want 2 touches ... 1st rapid 2nd slower ...

    what would be the right G-code to make the same efect like if you would click "Touch Off" buttom who is already build in LinuxCNC for TouchOff Z axis ..

    what i writed ... is that good ?
    Code:
    #1 = 1.47 (PLATE THICKNESS)
    #2 = 2 (UP OFF PLATE FOR 2ND TOUCH)
    #3 = 8.53 (Distance to retouch)
    
    G21 (metric)
    
    (DEBUG,CHANGE TOOL AND PLACE TOUCH PLATE UNDER TOOL THEN PRESS START TO CONTINUE)
    G10 L20 P0 Z0
    G38.2 Z-40 F250
    G90 G0 Z[#5063+#3]
    G91 G38.2 Z-40 F15
    G10 L20 P0 Z#1
    G90 G0 Z[#5063+20]
    
    (DEBUG,REMOVE TOUCH PLATE AND PRESS START TO CONTINUE)
    yours ... what must i add that at 1st touch it moves 2mm above PCB plate and then slowley retouch and then agen move to the hight 10?

    Code:
    o100 sub
    ( Set current Z position to 0 so that we will always be moving down )
    G10 L20 P0 Z0
    ( Probe to Z-10 at F25 [Uses machine units, I work in mm, this is meant to be slow!] )
    G38.2 Z-10 f25
    ( Set Z0 at point where probe triggers with offset of +1.47 [this is the thickness of my PCB plate. You must adjust this for your plate / setup] )
    G10 L20 P0 Z1.47
    ( Rapid up to Z10 above the material )
    G0 Z10
    o100 endsub
    




Page 11 of 13 FirstFirst ... 8910111213 LastLast

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

Touch-off plate for CNC router?

Touch-off plate for CNC router?

Touch-off plate for CNC router?