Workpiece Counter - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Additional functions
16.8 Program runtime/part counter
After the program has processed line
in $AC_OLD_PROG_NET_TIME.
The value from $AC_OLD_PROG_NET_TIME:
● is kept beyond
● 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
16.8.3

Workpiece counter

Function
The "Workpiece counter" function makes available various counters which can be used in
particular internally in the controller 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
604
N80
.
M30
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 controller powers up with default values.
, the net runtime of "mySubProgrammA" is located
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents