Detailed description   
2.7 Program  operation mode 
  Basic logic functions: Mode group, channel, program operation, reset response (K1) 
122  Function Manual, 11/2006, 6FC5397-0BP10-2BA0 
Bit 2 = 1 is set after operator panel Reset event 
Bit 3 = 1 is set after Power-up event  
Bit 4 = 1 is set after first start after search run event 
For Bit0 = 1 (program event after part program start) the following limitation applies:  
If the program event ends with the part program command "RET", then RET always leads 
to an executable block (analogous to M17).  
There is no new behavior for Bit0 == 0, i.e., RET is interpreted in the interpreter and does 
not lead to an "executable block". 
No sequences for start/end of part program are passed: 
•  If a user ASUB is started from the reset status, the described sequences for the event for 
start/end of part program are not passed. 
•  Settable Prog-Event properties 
Machine data MD20109 $MC_PROG_EVENT_MASK_PROPERTIES can be used to 
define further properties of "event-driven program calls" for specific channels in SW 6.3 
and higher:  
–  Bit0 = 0: An ASUB started from the RESET channel state is followed 
by an "event-driven program call" as in earlier versions 
–  Bit0 = 1: An ASUB started from the RESET channel state is not followed  
 by an "event-driven program call" 
When part program start: 
•  /_N_CMA_DIR/_N_PROG_EVENT_SPF is executed as a subroutine. 
_N_PROG_EVENT_SPF must be ended with M17 or RET.  
A return by means of REPOS command is not permitted and triggers alarm 16020 
"Repositioning not possible". 
Errorin the case of operator panel reset or after power-up: 
•  If an error is present when the operator panel is reset or after powerup EMERGENCY 
STOP or Mode group/NCKContinue, then _N_PROG_EVENT_SPF will only be processed 
after EMERGENCY STOP has been acknowledged or the error has been acknowledged 
in all channels. 
The following always applies to power up: 
•  The power up event occurs in all channels at the same time.