K1: Mode group, channel, program operation, reset response
9.9 Program operation mode
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
581
9.9.12.2
Parameter assignment
Triggering event
Which events the application program should activate, is set channel-specific in the machine data:
MD20108 $MC_PROG_EVENT_MASK (event-controlled program call)
Prerequisite for the activation:
The application program (default setting: _N_PROG_EVENT_SPF) must be loaded and cleared.
User program
In the default setting after an event set with MD20108 occurs, the program _N_PROG_EVENT_SPF is activated
from the directory _N_CMA_DIR.
If another program is to be activated, then the name of this user program must be entered in the following
machine data:
MD11620 $MN_PROG_EVENT_NAME
The specified program must be present in one of the cycle directories.
The following search path is run when an event set with MD20108 occurs.
1. /_N_CUS_DIR/ for user cycles
2. /_N_CMA_DIR/ for manufacturer cycles
3. /_N_CUS_DIR/ for standard cycles
The first found program with the given name is called.
Bit
Value
Description
0
1
Activation through part program start
1
1
Activation through part program end
2
1
Activation through Operator panel reset
3
1
Activation through Power up of the NC control
Note
MD20108 $MC_PROG_EVENT_MASK is ignored during the simulation.
Note
The specified name is checked syntactically as in case of a subroutine identifier i.e. the first
two characters must be alphabets or underscores (no digits). Prefix (_N_) and suffix (_SPF)
of the program names are added automatically, if not specified.
Note
The same protection mechanisms that can be activated for cycles (protection levels for
writing, reading etc.) are activated.