Basic Functions
Function
Function
Various counters with a range of values from 0 to 999,999,999 are available with the "Workpiece counter"
function in the form of channel-specific system variables. Read and write access to the system variables
is possible.
The following channel-specific machine data can be used to control counter activation, counter reset
timing and the counting algorithm.
System variables for workpiece counting
System variable Meaning
$AC_REQUIRED_PARTS Number of workpieces to be produced (setpoint number of workpieces)
In this counter the number of workpieces at which the actual workpiece count
($AC_ACTUAL_PARTS) will be reset to "0" can be defined.
MD27880 can be used to activate the generation of the display alarm:
"Channel %1 workpiece target = %2 reached"
and of the channel-specific NC/PLC interface signal:
DB21, DBX317.1 (workpiece target reached)
.
$AC_TOTAL_PARTS Total number of completed workpieces (actual workpiece total)
This counter specifies the total number of workpieces produced since the start
time. The value is only automatically reset to "0" when the control runs up with
default values.
$AC_ACTUAL_PARTS Number of completed workpieces (actual workpiece total)
This counter registers the total number of workpieces produced since the start
time. On condition that $AC_REQUIRED_PARTS > 0, the counter is
automatically reset to "0" when the required number of workpieces
($AC_REQUIRED_PARTS) is reached.
$AC_SPECIAL_PARTS Number of workpieces selected by the user
This counter supports user-specific workpiece counts. An alarm can be defined
to be output when the setpoint number of workpieces is reached
($AC_REQUIRED_PARTS). Users must reset the counter themselves.
Note
All workpiece counters are set to "0" when the control runs up with default values and can be read and
written independent of their activation.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all liability for the
completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
8/22/2022