K1: Mode group, channel, program operation, reset response
9.9 Program operation mode
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
571
Workpiece count
After the part program end (M02 / M30) has been attained, the activated workpiece counters
($AC_TOTAL_PARTS / $AC_ACTUAL_PARTS / $AC_SPECIAL_PARTS) are incremented by "1" (see Chapter
"Workpiece counter [Page 668]").
Via the following machine data it can be set that the activated workpiece counter is incremented even in case of
a program restart through the function "jump back to start of program":
MD27880 $MC_PART_COUNTER (activation of workpiece counters)
Programming
The function is called in the main or the part program via the command GOTOS.
Example
Note
In order that the setting of bit 8 can become effective, the measurement of the current
program runtime must be active (MD27860 bit 1 = 1).
Bit
Valu
e
Description
In case of a program restart through the function "jump back to start of program", the
workpiece counter:
7 0 $AC_TOTAL_PARTS is not incremented.
1 $AC_TOTAL_PARTS is incremented.
11 0 $AC_ACTUAL_PARTS is not incremented.
1 $AC_ACTUAL_PARTS is incremented.
15 0 $AC_SPECIAL_PARTS is not incremented.
1 $AC_SPECIAL_PARTS is incremented.
Syntax:
GOTOS
Parameters: none
Application in synchronized actions: not possible
Note
GOTOS internally initiates a STOPRE (pre-processing stop).
Programming Comment
N10 ... ; Beginning of the program
...
N90 GOTOS ; Jump to beginning of the program
...