Siemens Sinumerik 840D sl Function Manual page 299

Sinumerik safety integrated
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

10/15
Example for SAFE.SPF
A simple example for SAFE.SPF will now be shown that is started using
PROG_EVENT when the system boots and includes steady--state synchronous
actions.
; File: SAFE.SPF
=============
; Definitions
DEFINE STOP_A_DISABLE AS $A_OUTSI[1]
DEFINE STOP_C_DISABLE AS $A_OUTSI[2]
DEFINE STOP_D_DISABLE AS $A_OUTSI[3]
;
DEFINE STOP_A_EXT AS $A_INSE[6]
DEFINE STOP_C_EXT AS $A_INSE[7]
DEFINE STOP_D_EXT AS $A_INSE[8]
DEFINE STOP_A_XT AS $A_INSE[9]
;
; Program section
N10 IDS=01 DO STOP_A_DISABLE=STOP_A_EXT
N20 IDS=02 DO $A_OUTSE[1]=NOT $A_OUTSE[1]
N30 M17
Starting the NCK- -SPL from the PLC user program
Program start
The NCK--SPL can also be started from the PLC user program. As soon as the
NCK--SPL has been started, the crosswise data comparison is activated in the
system program (NCK and PLC basic program).
The NCK--SPL program must be started as an ASUB. To do this, the interrupt
number and channel must first be assigned via FB4 using the ASUB (asynchro-
nous sub--routine) function via parameter PIService="PI.ASUB".
As soon as FB4 has been successfully run (output parameter "Done"=TRUE) the
program is executed via FC9 "ASUB" [asynchronous sub--routine].
In this case, MD 11602 $MN_ASUP_START_MASK is taken into account, which
can be used to set that stop reasons for the sequence are ignored.
Deviating from the recommended setting 7H, the following settings are also
possible:
-- Bit 1 can be deleted, if MD20700 $MN_REFP_NC_START_LOCK (in the
channel in which the SPL is started) is deleted, or, if at the instant that the
ASUB starts, the axes (in the channel, in which the SPL is started) must not
be safely referenced, e.g. in the park state.
-- Bit 2 can be deleted if no read--in disable is present when booting.
Further, MD11604 $MN_ASUP_START_PRIO_LEVEL (interrupt priority from
which the MD $MN_ASUP_START_MASK is active) must be observed.
© Siemens AG 2015 All Rights Reserved
SINUMERIK 840D sl/SINAMICS S120 SINUMERIK Safety Integrated (FBSI sl) - - 10.2015 Edition
Connecting Sensors/Actuators
7.5 Safe programmable logic (SPL)
7-299

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinamics s120

Table of Contents