Additional functions
13.10 Program runtime/Workpiece counter
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
13-49
Note
The "workpiece counter" function is independent of the tool management functions. All
counters can be read and written from the HMI.
All counters are reset with default values when the control is powered up, and can be
read/written independent of their activation.
Example
Activate workpiece counter $AC_REQUIRED_PARTS:
$MC_PART_COUNTER=’H3’ $AC_REQUIRED_PARTS is active,
display alarm on $AC_REQUIRED_PARTS
== $AC_SPECIAL_PARTS
Activate workpiece counter $AC_TOTAL_PARTS:
$MC_PART_COUNTER='H10'
$MC_PART_COUNTER_MCODE[0]=80
$AC_TOTAL_PARTS is active, the
counter is incremented by 1 on each
M02, $MC_PART_COUNTER_MCODE[0] is
irrelevant
Activate workpiece counter $AC_ACTUAL_PARTS:
$MC_PART_COUNTER='H300'
$MC_PART_COUNTER_MCODE[1]=17
$AC_TOTAL_PARTS is active, the
counter is incremented by 1 on each
M17
Activate workpiece counter $AC_SPECIAL_PARTS:
$MC_PART_COUNTER='H3000'
$MC_PART_COUNTER_MCODE[2]=77
$AC_SPECIAL_PARTS is active, the
counter is incremented by 1 on each
M77
Deactivate workpiece counter $AC_ACTUAL_PARTS:
$MC_PART_COUNTER='H200'
$MC_PART_COUNTER_MCODE[1]=50
$AC_TOTAL_PARTS is not active, rest
irrelevant
Activating all counters in examples 1-4:
$MC_PART_COUNTER = 'H3313'
$MC_PART_COUNTER_MCODE[0] = 80
$MC_PART_COUNTER_MCODE[1] = 17
$MC_PART_COUNTER_MCODE[2] = 77
$AC_REQUIRED_PARTS is active
Display alarm on $AC_REQUIRED_PARTS
== $AC_SPECIAL_PARTS
$AC_TOTAL_PARTS is active, the
counter is incremented by 1 on each
M02
$MC_PART_COUNTER_MCODE[0] is
irrelevant
$AC_ACTUAL_PARTS is active, the
counter is incremented by 1 on each
M17
$AC_SPECIAL_PARTS is active, the
counter is incremented by 1 on each
M77