K1: Mode group, channel, program operation, reset response
9.11 User-specific ASUB for RET and REPOS
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
605
Defining a level of protection
If a user-specific ASUB is to be used for RET and/or REPOS, i.e. when:
MD11610 $MN_ASUP_EDITABLE ≠ 0
then a level of protection can be defined for the user-specific routine "_N_ASUP_SPF". The level of protection
can have values in the range 0 - 7.
The setting is done via the following machine data:
MD11612 $MN_ASUP_EDIT_PROTECTION_LEVEL (level of protection of the user-specific ASUB)
For further information about protection levels, refer to:
References:
Startup guide; level of protection concept
Behavior when the single block processing is set
Via the following machine data it can be set, that despite a set single block processing the internal ASUB or the
user-specific "_N_ASUP_SPF" is processed without interruption:
MD10702 $MN_IGNORE_SINGLEBLOCK_MASK (Prevent single block stop)
9.11.3 Programming
Determine cause of ASUB activation
The reason that led to the activation is specified in bit code through the $AC_ASUP system variable, and can be
read in part program and synchronized actions.
The significance of the bits of system variable $AC_ASUP is as follows:
Bit Value Description
0 0 A stop is done in each ASUB block.
1 The ASUB is processed without interruption.
Bit
19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RET 11*1
REPOS 111111 11 *1 11
*: If bit 9 is set, then the behavior depends on MD20114 (see table below)
Bit Description
0 User interrupt "ASUB with BLSYNC"
Continuation: Freely selectable REORG or RET
1 User interrupt "ASUP"; The position at which it was stopped is stored for continuation with
REPOS.
Continuation: Freely selectable REORG or RET