Workpiece Counter - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.22 Program runtime/part counter
The value from $AC_OLD_PROG_NET_TIME:
● is kept beyond M30.
● is updated each time the loop is run through.
Example 2: Measuring the duration of "mySubProgrammA" and "mySubProgrammC"
Program code
...
N10 DO $AC_PROG_NET_TIME_TRIGGER=2
N20 mySubProgrammA
N30 DO $AC_PROG_NET_TIME_TRIGGER=3
N40 mySubProgrammB
N50 DO $AC_PROG_NET_TIME_TRIGGER=4
N60 mySubProgrammC
N70 DO $AC_PROG_NET_TIME_TRIGGER=1
N80 mySubProgrammD
N90 M30
3.22.2

Workpiece counter

The "Workpiece counter" function makes available various counters which can be used in
particular internally in the control to count workpieces.
The counters exist as channel-specific system variables with read and write access in a range
of values from 0 to 999 999 999.
System variable
$AC_REQUIRED_PARTS
$AC_TOTAL_PARTS
$AC_ACTUAL_PARTS
$AC_SPECIAL_PARTS
986
Meaning
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.
Total number of completed workpieces (actual workpiece total)
This counter specifies the total number of all workpieces produced since
the start time. The value is only automatically reset to "0" when the
control powers up with default values.
Number of completed workpieces (actual workpiece total)
This counter registers the total number of all 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 work‐
pieces ($AC_REQUIRED_PARTS) is reached.
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.
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents