K1: Mode group, channel, program operation, reset response
9.9 Program operation mode
Basic Functions
586 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
9.9.12.4 Boundary conditions
Emergency stop / error message
If an error is present when the operator panel is reset or after powerup EMERGENCY STOP or Mode group/
NCKContinue, then the event-driven user program will only be processed after EMERGENCY STOP or the error
has been acknowledged in all channels.
9.9.12.5 Examples
Example 1: Call of all events set with MD20108
Parameter assignment:
Programming:
Note
The power up event occurs in all channels at the same time.
MD20108 $MC_PROG_EVENT_MASK = 'H0F' Call of _N_PROG_EVENT_SPF for:
• Part program start
• Part program end
• Operator panel reset
• Ramp-Up
Program code Comment
PROC PROG_EVENT DISPLOF
IF ($P_PROG_EVENT==1) ; Processing for part program start.
MY_GUD_VAR=0 ; Initialize GUD variable
RET
ENDIF
IF ($P_PROG_EVENT==2) OR ($P_PROG_EVENT==3) ; Processing for part program end and
operator panel reset.
DRFOF ; Deactivate DRF offsets
IF $MC_CHAN_NAME=="CHAN1"
CANCEL(2) ; Delete modal synchronized action 2
ENDIF
RET
ENDIF
IF ($P_PROG_EVENT==4) ; Sequence for power-up
IF $MC_CHAN_NAME=="CHAN1"
IDS=1 EVERY $A_INA[1]>5.0 DO $A_OUT[1]=1