585,978 active members*
4,234 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > How to program User confirmation to continue?
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2010
    Posts
    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.
    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
    Join Date
    Jun 2007
    Posts
    3757
    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
    Join Date
    Jun 2010
    Posts
    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
    Join Date
    Feb 2006
    Posts
    1792
    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. #5
    Join Date
    Jan 2006
    Posts
    2985
    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 Laser Engraving / Cutting Machine General Topics
    Replies: 12
    Last Post: 01-15-2012, 11:27 PM
  2. Edit Program (User) Problem
    By richlandrick in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 01-02-2009, 06:17 PM
  3. New user, program won't load.
    By l u k e in forum OneCNC
    Replies: 8
    Last Post: 11-30-2008, 03:52 PM
  4. Transformer Confirmation
    By bigz1 in forum Hobbycnc (Products)
    Replies: 2
    Last Post: 05-27-2006, 02:25 PM
  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, 08:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •