586,082 active members*
3,772 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Barfeeder subprogram need more information
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2019
    Posts
    30

    Wink Barfeeder subprogram need more information

    Hello guys,
    I really wonder if anyone could explain to me the barfeeder subprogram code, I would be really grateful:

    O9001
    IF[#1002EQ1]GOTO20 - where I can find this in my controller Fanuc?
    IF[#1000EQ0]GOTO10 - where I can find this in my controller Fanuc?
    G0X#500
    Z#501
    M72
    #100=0 - where I can find this in my controller Fanuc?
    WHILE[#1001EQ0]DO1 - where I can find this in my controller Fanuc?
    G04X0.1
    #100=#100+1 - where I can find this in my controller Fanuc?
    IF[#100GE#515]GOTO2000 - where I can find this in my controller Fanuc?
    END1
    G0Z#503
    X#502
    M65
    M71
    M98P8020
    G0Z#505
    X#504
    M72
    M65
    M71
    M99
    N10M72
    M65
    M71
    M99
    N20IF[#1000EQ0]GOTO30 - where I can find this in my controller Fanuc?
    G0X#500
    Z#501
    M71
    #100=0 - where I can find this in my controller Fanuc?
    WHILE[#1001EQ0]DO1 - where I can find this in my controller Fanuc?
    G04X0.1
    #100=#100+1 - where I can find this in my controller Fanuc?
    IF[#100GE#515]GOTO2000 - where I can find this in my controller Fanuc?
    END1
    G0Z#503
    X#502
    M65
    M72
    M98P8020
    G0Z#505
    X#504
    M71
    M65
    M72
    M99
    N30M71
    M65
    M72
    M99
    N2000#3000=1(BF NO EJECT) - where I can find this in my controller Fanuc?

  2. #2
    Join Date
    Feb 2011
    Posts
    353

    Re: Barfeeder subprogram need more information

    these are generally where to find these
    you don't mention the model or age of the controller

    #1000 / #1001 and #1002 are system variable you may not be able to see them directly but you can see the numbers in them by writing a macro statement #1=#1000
    #100's is a macro variable seen in the offset pages under macro
    #500's is a macro variable seen in the offset pages under macro

    By the question;s of (where I can find this in my controller Fanuc?)
    you would be wise to purchase a book on macro programming
    Sinha- custom macro b
    peter smid -fanuc cnc custom macro's

    these will cover if statements /while do statements/ local variable/ global variables

    these will start you on understanding what is in your bar feed program

Similar Threads

  1. Tech 998 barfeeder
    By WHITELANE in forum Uncategorised MetalWorking Machines
    Replies: 2
    Last Post: 03-01-2020, 07:33 PM
  2. Barfeeder
    By gunda in forum Okuma
    Replies: 3
    Last Post: 03-08-2019, 11:09 PM
  3. unplug barfeeder
    By godtar in forum Fanuc
    Replies: 1
    Last Post: 01-29-2016, 06:57 AM
  4. LNS barfeeder with M32B
    By mikey B in forum Mazak, Mitsubishi, Mazatrol
    Replies: 1
    Last Post: 06-18-2011, 02:26 AM
  5. 300 barfeeder problem
    By metaltec in forum Haas Lathes
    Replies: 2
    Last Post: 11-06-2007, 10:27 PM

Tags for this Thread

Posting Permissions

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