Results 1 to 9 of 9

Thread: Does this post look right?

  1. #1
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,946
    Downloads
    2
    Uploads
    3

    Does this post look right?

    I added a few functions at the end before finish and would like to know if I have to adjust this bit of code to make it work-

    function floodon()
    text(" M08 (Flood coolant on)\n")
    end
    function miston()
    text(" M07 (Mist coolant on)\n")
    end
    function coolantoff()
    text(" M09 (Coolant off)\n")
    end
    function finish()
    -- endz = safez
    text (" T0\n")
    text (" G00 Z4.5\n")
    text (" G59\n")
    text (" G00 X0 Y0\n")
    -- rapid()
    -- endy = 0
    -- endx = 0
    -- endz = 5
    -- rapid()
    text (" M05\n M30\n")
    end
    Attached Files Attached Files
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  2. #2
    Registered
    Join Date
    Nov 2004
    Location
    England
    Posts
    137
    Downloads
    0
    Uploads
    0
    Yes that should work fine. It might do odd things if you use the parking position in options->material (later versions of SheetCam only)

    Les


  3. #3
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,946
    Downloads
    2
    Uploads
    3
    What I would like is for the flood to turn on and off with the laser is that possible?
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  4. #4
    Registered
    Join Date
    Nov 2004
    Location
    England
    Posts
    137
    Downloads
    0
    Uploads
    0
    If you are using a plasma based post then edit the pendown() and penup() events. Otherwise use the spindlecw() and spindleoff() events.

    Just use text() to add the code to the output, just like you did in function finish().

    Les


  • #5
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,946
    Downloads
    2
    Uploads
    3
    function pendown()
    if (preheat > 0.001) then
    modaltext (" G00")
    modalnumber (" Z", cutheight * scale, "0.0000")
    text ("\n G04 P")
    number (preheat,"0.###")
    eol()
    end
    modaltext (" G00")
    modalnumber (" Z", pierceheight * scale, "0.0000")
    text ("\n M03\n") (" M08\n") <------------------ like this ?
    if (piercedelay > 0.001) then
    text (" G04 P")
    number (piercedelay,"0.###")
    eol()
    end
    end
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  • #6
    Registered
    Join Date
    Nov 2004
    Location
    England
    Posts
    137
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by CNCadmin View Post
    function pendown()

    text ("\n M03\n") (" M08\n") <------------------ like this ?

    end
    Try this instead
    text ("\n M03\n M08\n")

    The \n starts a new line

    Les


  • #7
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,946
    Downloads
    2
    Uploads
    3
    So this is all I need than-

    function pendown()
    if (preheat > 0.001) then
    modaltext (" G00")
    modalnumber (" Z", cutheight * scale, "0.0000")
    text ("\n G04 P")
    number (preheat,"0.###")
    eol()
    end
    modaltext (" G00")
    modalnumber (" Z", pierceheight * scale, "0.0000")
    text ("\n M03\n M08\n") <--------------------here
    if (piercedelay > 0.001) then
    text (" G04 P")
    number (piercedelay,"0.###")
    eol()
    end
    end


    function penup()
    text (" M05\n M09\n") <------------here
    if (enddelay > 0) then
    text (" G04 P")
    number (enddelay,"0.###")
    eol()
    end
    end

    Thanks so much for your help!!
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  • #8
    Registered
    Join Date
    Nov 2004
    Location
    England
    Posts
    137
    Downloads
    0
    Uploads
    0
    Yup. That is all you need to do.

    Les


  • #9
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,946
    Downloads
    2
    Uploads
    3
    Thanks a bunch!
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  • Similar Threads

    1. Replies: 0
      Last Post: 10-26-2006, 05:59 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.