K1: Mode group, channel, program operation, reset response
9.16 Program runtime / Part counter
Basic Functions
662
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
System variable
Meaning
$AC_ACT_PROG_NET_TIME
Actual net runtime of the current program in seconds
Net runtime means that the time, in which the program was stopped, has been
deducted.
If, in the AUTOMATIC operating mode, a part program is restarted from the
RESET channel state, then $AC_ACT_PROG_NET_TIME is automatically
reset to "0".
Additional properties:
• The reset button does not reset $AC_ACT_PROG_NET_TIME back to "0"
but only stops the timer.
• When starting an ASUB, $AC_ACT_PROG_NET_TIME is set to "0" and
also counts the runtime of the ASUB. At the end of an ASUB, it behaves
just the same as for the RESET button: The timer is only held, but is not set
to "0".
• $AC_ACT_PROG_NET_TIME is not reset when starting an event-
controlled program (PROG_EVENT).
The program runtime is only counted further if it involves a start, M30 or a
search PROG_EVENT.
• The behavior of $AC_ACT_PROG_NET_TIME for GOTOS and override =
0% can be parameterized using MD27850 (refer to Section "Parameter
assignment")
Tip:
With $AC_PROG_NET_TIME_TRIGGER, $AC_ACT_PROG_NET_TIME can
be manipulated further.
$AC_OLD_PROG_NET_TIME
Net runtime in seconds of the program that has just been correctly ended
"Correctly ended" means that the program was not interrupted with RESET,
but instead ended properly with
M30
.)
If a new program is started, $AC_OLD_PROG_NET_TIME remains
unscanned, till
M30
is reached again.
Additional properties:
• $AC_OLD_PROG_NET_TIME is set to "0" if the currently selected program
is edited.
• $AC_OLD_PROG_NET_TIME is not changed at the end of an ASUB or an
event-controlled program (PROG_EVENT).
Tip:
The implied copying process of $AC_ACT_PROG_NET_TIME after
$AC_OLD_PROG_NET_TIME takes place only when
$AC_PROG_NET_TIME_TRIGGER is not written.