FANUC Series 16/18/160/180-Model C Machining Center Operators Manual

PROGRAMMING
B–62764EN/01
16. CUSTOM MACRO
403
By using the subprogram call function that uses M codes, the cumulative
usage time of each tool is measured.
S The cumulative usage time of each of tools T01 to T05 is measured.
No measurement is made for tools with numbers greater than T05.
S 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
S 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;
T01 M06;
M03;
M05; Changes #501.
T02 M06;
M03;
M05; Changes #502.
T03 M06;
M03;
M05; Changes #503.
T04 M06;
M03;
M05; Changes #504.
T05 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 *