Activating workpiece counters
The SINUMERIK control system can be configured such that the number of workpieces produced is automatically counted. Analyze MyPerformance /OEE Monitor and Analyze MyPerformance /OEE Tuning use these numbers.
This data is evaluated and further processed in the "Production quality" window. SINUMERIK produces and counts the workpieces, and this is then accepted as a data input in Analyze MyPerformance.
The system variable $AC_TOTAL_PARTS in the SINUMERIK control system is used to count the number of workpieces produced.
System variable |
Meaning |
$AC_TOTAL_PARTS |
Total number of workpieces produced (actual workpiece total) as from start time. The value is only automatically reset to "0" when the control system runs up with default values. |
The default procedure is that the value of the $AC_TOTAL_PARTS counter is incremented by 1 as soon as the end of the NC program is reached (M02 or M30 command). Other M commands can be configured as count pulses with the machine data.
Settings
Set the following bits of the machine data to activate and configure the workpiece counters for Analyze MyPerformance /OEE Monitor and Analyze MyPerformance /OEE Tuning.
MD27880 $MC_PART_COUNTER |
Activation of the workpiece counters |
|
Bit 4 = 1 |
The counter $AC_TOTAL_PARTS is active |
|
Bit 5 = 0 |
M02/M30 increments the $AC_TOTAL_PARTS counter by 1 |
|
Bit 5 = 1 |
The M command defined in MD27882[0] increments the $AC_TOTAL_PARTS counter by 1 |
|
Bit 6 = 0 |
$AC_TOTAL_PARTS is also active for program test / block search |
|
Bit 7 = 1 |
A return with GOTOS increments the $AC_TOTAL_PARTS counter by 1 |
User-defined M commands for the count pulse are stored in MD27882[0].
MD27882[0] $MC_PART_COUNTER_MCODE |
Workpiece counting with user-defined M command |
Procedure
-
Start the SINUMERIK Operate operating software on the controller.
-
Press the "Setup", "Mach.data" and "Channel MD" softkeys.
-
Set the machine data MD27880 to the desired value.
-
Value for activating the counter: MD27880 $MC_PART_COUNTER ="10H"
-
-
If necessary, set the machine data MD27882[0] to the desired value.
-
Restart SINUMERIK Operate to activate the changes.
NOTE
The counter is not reset either by a RESET or by an HMI restart of the SINUMERIK control system.