
B–61803E–1/10
APPENDIXO. FANUC Super CAPi T
510
2. When the turret number is the same as the previous one, going
to 6
3. When the tool change operation has already done, going to 5
4. Executing T–code (Turret number + Compensation number
”0”)
5. Executing M–code for the tool change operation
6. Executing T–code (Turret number + Compensation number )
7. PMC operation: ATC operation with the turret number of
the next process
8. Tool change operation end
O9000 (CAP TOOL CHANGE);
/*#20799–#20600: Macro parameters
/*#9127: System variables
/*#10699: Turret number of the previous use
/*#149: T–code
#4=#149;
IF [#149EQ0] GOTO 41;
N10 IF [#20683GE10000] GOTO 12; Tool change is necessary.
IF [#20803NE1] GOTO 11;
IF [#20702NE1] GOTO 11;
IF [#20682EQ#10699] GOTO 13; The used tool has been
already prepared.
GOTO 12;
N11 IF [#20683EQ#10699] GOTO 13;
N12 #1= FIX [[#149/100]]*100;
T#1; ATC operation
N13 M6 Tool change operation
#4=#0;
N20 IF [#20803NE1] GOTO 21; Excepting bar machining
/* Bar Machining
IF [#20702EQ0] THEN; In not executing automatic
residual cutting
#1=#20697; Compensation number
#2=#20682; Turret number
#3=#20694; T–code of the next process
ELSE; In executing automatic
residual cutting
#1=#20696; Compensation number
#2=#20681; Turret number
#3=#20693; T–code of the next process
ENDIF;
GOTO 22;
/* Excepting bar machining