Hi,
I'm working on a milling with Fanuc controller.
I'm trying to adjust the tool change command with the GOTO condition but I don't know how it work.
Here's what my program look like :
(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *)
(LOAD TOOL NO: 10 DRILL .500)
(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *)
N10 M5
N12 M1
N14 G54
IF[#994EQ10]GOTO?
N16 T10
N18 M6
N20 M1
N22 G40
N24 S391 M3
The thing here is : IF the tool number (10) actually in the spindle (#994 = 10 variable) is EQual to 10, GOTO (I would like to next M1 at line N20)
The reason why is like that is, Fanuc give me an alarm if the tool is called (T10, M6) while he his already in the spindle so that's why I want a GOTO to next M1 if the tool is already in spindle to skip tool change.
So my question is : how can I complete the GOTO condition that it will automatically calculate to jump 3 lines lower or going to next M1 (like GOTO N+3..... GOTO next M1) cause right now I'm adding the line number manually each time my program is posted.
Tx a lot for help
Phil