Siemens SINUMERIK 840Di Function Manual page 627

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

2.7.11
Eventdriven program calls
Application
In the case of certain events, an implied user program is to start. This allows the user to
activate the initial settings of functions or carry out initialization routines by part program
command.
Event selection
MD 20108
Machine data MD20108 $MC_PROG_EVENT_MASK can be used to specify on a channel-
specific basis which of the following events is to enable the user program:
• Bit0 = 1: Part program start
• Bit1 = 1: Part program end
• Bit2 = 1: Operator panel reset
• Bit3 = 1: Powerup (of the NC control)
The user program can be stored under the fixed path name
/_N_CMA_DIR/_N_PROG_EVENT_SPF or
Other program name
A name is specified in MD11620 $MN_PROG_EVENT_NAME.
The system then searches for the user program in the directories:
/_N_CUS_DIR/
/_N_CMA_DIR/
/_N_CST_DIR/
in the specified order. The first program found with the stored name is called when a
configured event occurs.
The same protection mechanisms can be enabled as can generally be activated for cylinders
(protection levels for writing, reading etc.).
Machine data MD20108 $MC_PROG_EVENT_MASK is ignored during the simulation.
Request which start event
In the user program, the system variable $P_PROG_EVENT can be used to request the
event, which enabled the part program.
Mode Group, Channel, Program Operation, Reset Response (K1)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Detailed Description
2.7 Program operation mode
2-91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents