Siemens SINUMERIK 840D sl Function Manual page 232

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Connecting Sensors/Actuators
7.3 Safe programmable logic (SPL)
Note
When starting the NCK–SPL (SAFE.SPF), it is important that the PROG_EVENT
mechanism was started through channel 1. This must be taken into account
when parameterizing the channel–specific data MD 20108
$MC_PROG_EVENT_MASK.
Using the system variable $P_PROG_EVENT, in PROG_EVENT.SPF it can be
interrogated as to which event activated the call:
S Start of a part program
S End of a part program
S Operator panel reset
S Boot
For the PROG_EVENT.SPF cycle, MD 11602 $MN_ASUP_START_MASK (rec-
ommended setting = 7H) is taken into account; this can be used to ignore reasons
for initiating a stop to run the sequence. The setting in MD 11604
$MN_ASUP_START_PRIO_LEVEL is not relevant for PROG_EVENT.SPF.
Example for PROG_EVENT.SPF
; ––––––––––––––––––––––––––––––––––––––––––––––––––––––––
; Event–controlled program call
; PROG_EVENT.SPF under
; ––––––––––––––––––––––––––––––––––––––––––––––––––––––––
;
In machine data MD 20108: PROG_EVENT_MASK can be set channel–spe-
;
cifically which of the following events will enable the user program:
;
;
( ) Start of the part program ––> bit 0 == 1
;
( ) End of the part program
;
( ) Operator panel reset
;
(x) Run–up
; –––––––––––––––––––––––––––––––––––––––––––––––––––––––
;
Using the system variable $P_PROG_EVENT, it can be interrogated as to
;
which event activated the call:
;
( ) Start of the part program ––> $P_PROG_EVENT == 1
;
( ) End of the part program
;
( ) Operator panel reset
;
(x) Run–up
;
7-232
SINUMERIK 840D sl/SINAMICS S120 SINUMERIK Safety Integrated (FBSI sl) – 05.2008 Edition
$P_PROG_EVENT == 1
$P_PROG_EVENT == 2
$P_PROG_EVENT == 3
$P_PROG_EVENT == 4
\DH\CMA.DIR
––> bit 1 == 1
––> bit 2 == 1
––> bit 3 == 1
––> $P_PROG_EVENT == 2
––> $P_PROG_EVENT == 3
––> $P_PROG_EVENT == 4
© Siemens AG 2008 All Rights Reserved
05.08

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinamics s120

Table of Contents