
Tool: Compensation and Monitoring (W1)
25.4 Tool monitoring
Turning, Milling, Nibbling
Function Manual, 11/2012, 6FC5397-1CP10-5BA0
429
25.4.3
Workpiece count monitoring
The workpiece count of the active cutting edge of the active tool is monitored.
The workpiece count monitoring records all tool cutting edges used to produce a workpiece.
If the workpiece count is changed by an operator input, the monitoring data of all the cutting
edges that have become active since the last workpiece count are adjusted.
Updating the workpiece count by operator input or SETPIECE( )
The workpiece count can be updated by an operator input (HMI) or in the NC program
through the SETPIECE( ) function.
With the SETPIECE function, the user can refresh the workpiece count monitoring data of
the tools that were involved in the machining process. All tools with the D numbers that have
become active since the last time SETPIECE was activated are included in the update. If a
tool is active at the time SETPIECE is called, this is counted as well.
As soon as a block with path axis movements is executed after SETPIECE( ) this tool is also
considered for the subsequent SETPIECE call.
SETPIECE(x )
x = 1... 32000
The number of workpieces that have been produced since the last
execution of the SETPIECE function. The counter status for the remaining
part quantity ($TC_MOP4[t,d] ) is reduced by this value.
x = 0
Deleting all counts for the remaining workpiece count ($TC_MOP4[t,d] )
for the tools/D number that have been involved in machining since that
point of time. Alternatively, deletion via operator input (HMI) is
recommended.
Example
N10 G0 X100
N20 ...
N30 T1
N40 M6 D2
N50 SETPIECE(2)
; $TC_MOP4[1,2 ] (T1,D2) is decremented by 2
N60 X... Y...
N100 T2
N110 M6 D1
N120 SETPIECE(4)
; $TC_MOP4[2,1 ] (T2,D1) and $TC_MOP4[1,2 ] are
; decremented by 4
N130 X... Y...
N200 T3
N210 M6 D2
N220 SETPIECE(6)
; $TC_MOP4[3,2 ] (T3,D2) and $TC_MOP4[2,1 ] (T2,D1) and
; $TC_MOP4[1,2 ] decremented by 6
N230 X... Y...
N300 SETPIECE(0)
; Deletes all above $TC_MOP4[t,d ]
N400 M2