FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
306
By using the subprogram call function that uses M codes, the cumulative
usage time of each tool is measured.
D The cumulative usage time of each of tool numbers 1 to 5 is measured.
The time is not measured for tools whose number is 6 or more.
D The following variables are used to store the tool numbers and
measured times:
#501
#502
#503
#504
#505
Cumulative usage time of tool number 1
Cumulative usage time of tool number 2
Cumulative usage time of tool number 3
Cumulative usage time of tool number 4
Cumulative usage time of tool number 5
D Usage time starts being counted when the M03 command is specified
and stops when M05 is specified. System variable #3002 is used to
measure the time during which the cycle start lamp is on. The time
during which the machine is stopped by feed hold and single block
stop operation is not counted, but the time used to change tools and
pallets is included.
Set 3 in parameter No.6071, and set 05 in parameter No.6072.
Set 0 in variables #501 to #505.
O0001;
T0100 M06;
M03;
:
M05;
Changes #501.. . . . . . . . . . . . . . . . . . . . . . . . . .
T0200 M06;
M03;
:
M05;
Changes #502.. . . . . . . . . . . . . . . . . . . . . . . . . .
T0300 M06;
M03;
:
M05;
Changes #503.. . . . . . . . . . . . . . . . . . . . . . . . . .
T0400 M06;
M03;
:
M05;
Changes #504.. . . . . . . . . . . . . . . . . . . . . . . . . .
T0500 M06;
M03;
:
M05;
Changes #505.. . . . . . . . . . . . . . . . . . . . . . . . . .
M30;
16.6.7
Sample Program
Conditions
Operation check
D Parameter setting
D Variable value setting
D Program that calls a
macro program

Leave a Reply

Your email address will not be published. Required fields are marked *