16. CUSTOM MACRO
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
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.
M05; Changes #501.
M05; Changes #502.
M05; Changes #503.
M05; Changes #504.
M05; Changes #505.
D Parameter setting
D Variable value setting
D Program that calls a