(Common to Power Mate i–D and –H)
13. CUSTOM MACRO
By using the subprogram call function that uses M codes, the cumul ative
usage time of each tool is measured.
The cumulative usage time of each of tools T01 to T05 is measured.
No measurement is made for tools with numbers greater than T05.
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
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
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.
Variable value setting
Program that calls a