Siemens SINUMERIK 840D sl Function Manual page 268

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

Advertisement

Connecting sensors and actuators
8.5 Safe programmable logic
N600 ...
N700 M17 ; end of cycle
The part program SAFE.SPF is called if the system variable check $P_PROG_EVENT
indicated that the part program call PROG_EVENT.SPF was called when the control system
booted.
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 static synchronized 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 (asynchronous sub-routine) function
via parameter PIService="PI.ASUP".
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, MD11602 $MN_ASUP_START_MASK is taken into account, which can be used
to set that stop reasons for the sequence are ignored.
268
Function Manual, 12/2017, 6FC5397-4BP40-6BA1
Safety Integrated

Advertisement

Table of Contents
loading

Table of Contents