586,096 active members*
3,727 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    4

    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
    Join Date
    Nov 2007
    Posts
    352
    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, 05:00 PM
  2. Macro Programming Intro?
    By I_flungdung in forum G-Code Programing
    Replies: 2
    Last Post: 04-14-2008, 11:16 PM
  3. Macro Programming
    By dapoling in forum G-Code Programing
    Replies: 4
    Last Post: 01-18-2008, 06:33 PM
  4. Do I need macro programming in future
    By koppis in forum Uncategorised CAM Discussion
    Replies: 3
    Last Post: 09-19-2006, 07:44 PM
  5. Macro/Parametric Programming
    By screensnot in forum Fadal
    Replies: 4
    Last Post: 03-29-2005, 03:45 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
  •