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?
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