Results 1 to 5 of 5

Thread: How to program User confirmation to continue?

  1. #1
    Registered
    Join Date
    Jun 2010
    Location
    Canada
    Posts
    151
    Downloads
    0
    Uploads
    0

    How to program User confirmation to continue?

    I am planning on making a tool changer for my cnc milling machine. Since I am using a dremel tool for the spindle, it does not have the required capabilities for a 100% automatic tool change.

    I need to program in the tool change process to stop (after performing one sequence), and then require user interface to signal that it can move on to the next task.

    Here's some pseudo code as an example:
    Code:
    Legend: 
    #User (human) Action
    @Machine Action
    
    Code: (when tool is in dremel)
    
    @End of Rough Cut Code
    @Move to tool post height (a set height compared to table surface)
    @Move tool into slot
    @Wait for User Confirmation
    
    #Loosen Dremel-tool Collet
    #Press Confirmation Button
    
    @Move Z Axis Up to clearance height
    @Spin tool rack to Finishing tool
    @Move Z Axis Down to Finishing tool (a set height compared to table surface)
    @Wait for User Confirmation
    
    #Tighten Dremel-tool Collet
    #Press Confirmation Button
    
    @Move tool out of slot
    @Run Finishing Path Code
    Something like this is what I need to happen. I am using EMC2 (linuxCNC).

    Thanks,

    Ian

    EDIT: Just realized it would be pointless since having the locking collars on the tool shanks would keep the tool lengths set. Would have been cool though.
    Last edited by AssassinXCV; 04-21-2012 at 08:19 PM.
    A machine is only as accurate as the tools used to build it. "CNC = Computer Numeric Control - or on some days - CNC = Can Not Control" Imagineering


  2. #2
    Registered neilw20's Avatar
    Join Date
    Jun 2007
    Location
    Australia
    Posts
    3,424
    Downloads
    0
    Uploads
    0
    M0 is non-optional stop.
    Code:
    .. some code
    M0 (adjust tool, zero it and hit cycle start)
    .. continue code..
    Not sure about EMC2 but if it displays the comment it is all you need.
    Works in Mach3
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.


  3. #3
    Registered
    Join Date
    Jun 2010
    Location
    Canada
    Posts
    151
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by neilw20 View Post
    M0 is non-optional stop.
    Code:
    .. some code
    M0 (adjust tool, zero it and hit cycle start)
    .. continue code..
    Not sure about EMC2 but if it displays the comment it is all you need.
    Works in Mach3
    So this M0 code usually stops the machine at this like of code, and it waits. Perfect

    Thanks,

    Ian
    A machine is only as accurate as the tools used to build it. "CNC = Computer Numeric Control - or on some days - CNC = Can Not Control" Imagineering


  4. #4
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    M0 has a difficulty.
    Depending on how ladder is written, the spindle may or may not start automatically when CYCLE START is pressed after M0. Therefore, M03/M04 might be needed immediately after M00, in the program.
    On Fanuc #3006 can also be used with a message to be displayed, typically up to 26 characters.


  • #5
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    2,464
    Downloads
    0
    Uploads
    0
    In mach you can use a macro to to turn off the spindle and wait for a cycle start each time a tool change comes up in the code.

    Matt


  • Similar Threads

    1. Need confirmation
      By mondo50m in forum General Laser Engraving & Cutting Machine Discussion
      Replies: 12
      Last Post: 01-15-2012, 05:27 PM
    2. Edit Program (User) Problem
      By richlandrick in forum Mach Software (ArtSoft software)
      Replies: 3
      Last Post: 01-02-2009, 12:17 PM
    3. New user, program won't load.
      By l u k e in forum OneCNC
      Replies: 8
      Last Post: 11-30-2008, 09:52 AM
    4. Transformer Confirmation
      By bigz1 in forum Hobbycnc (Products)
      Replies: 2
      Last Post: 05-27-2006, 09:25 AM
    5. Use of user cycles and variables in a techology program
      By Grom1 in forum DeskCNC Controller Board
      Replies: 0
      Last Post: 09-27-2005, 03:18 AM

    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.