Results 1 to 2 of 2

Thread: Macro Programming

  1. #1
    Registered
    Join Date
    Apr 2006
    Location
    US
    Posts
    4
    Downloads
    0
    Uploads
    0

    Macro Programming

    Hello,
    I want to put a "if" statement in my tool changer on a okuma hoz. fanuc 16I controll. What I want it to do is look at data # D0004 tool in spindle and if same tool as program is calling up just have it goto end of tool changer program.

    Reason for this, right now it alarms tool in spindle so the operators skip over tool changer and we all hope right tool in spindle. We had one junk part last night, trying to put 3/4 em where a 1/4 drill should be.

    Thanks


  2. #2
    Registered
    Join Date
    Nov 2007
    Location
    Canada and Nothern ireland
    Posts
    116
    Downloads
    0
    Uploads
    0
    If operators can skip the t command they will do the if statment as well
    On a mill its how you create the main that is the issue
    ()
    O1000(mill)
    G200-Macro for home pos
    N101 M98 P9101(DRILL)
    N102 M98 P9102(TAP)
    ETC
    G200
    M30

    SUB
    O9101(DRILL)
    G200
    T1
    M6
    G00G54P1G43H1X100.0Z100.0Y100.0M03S1000
    DRILLING CYCLE
    G200
    M99

    With this program you can only see the main desplayed if you want to lock out the subs and you can rework from the main and the sub is self contained to look after tool change


Similar Threads

  1. Fanuc Macro-a Programming Manual
    By CHANDRU in forum Fanuc
    Replies: 4
    Last Post: 03-20-2011, 12:00 PM
  2. Macro Programming Intro?
    By I_flungdung in forum G-Code Programing
    Replies: 2
    Last Post: 04-14-2008, 06:16 PM
  3. Macro Programming
    By dapoling in forum G-Code Programing
    Replies: 4
    Last Post: 01-18-2008, 12:33 PM
  4. Do I need macro programming in future
    By koppis in forum General CAM Discussion
    Replies: 3
    Last Post: 09-19-2006, 02:44 PM
  5. Macro/Parametric Programming
    By screensnot in forum Fadal
    Replies: 4
    Last Post: 03-28-2005, 09:45 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.