Hey guys,
I'm not familiar with macros, but I was wondering if some one could help figure this out. This a macro program for a tool setting cycle for a yasnac mx3 control. I would like to apply it to a fanuc 11m control, also I would like to make pre-stage the next tool and make for 30 tools as oppossed to 20. It works pretty sweet on a yasnac, if I call up t1 i can jog it down set my tlo in the offset page hit cycle start picks up next t#. kind of like the next tool feature on the haas mills
I punched it in and it worked for up until the m0, than it alarmed out saying something wrong with the IF statement. Here it is.
G65P8600T1.B0.
O8600
IF[[[#20NE#0]+[#2NE#0]]NE2.0]#3000=5001(MUST SET T AND B)
G94G80G64G40G17G0
G91G28Z0
G49H0D0
WHILE[#20LT21.0]DO1
M1
T#20
G91G28Z0
M6
M0
IF[#5023LT0]#[12000+#20]=[5023-#2]
#20=#20+1.0
G91G28Z0
END1
M30