11.03
7 Configuring example
7.6 SI I/Os using fail-safe modules connected to PROFIBUS DP
© Siemens AG 2003 All Rights Reserved
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
7-435
7.6.6
Programming the NCK-SPL
The complete SPL logic is not shown, only the parts needed to understand the
application. The parts not shown include terminal 663 and the forced checking
procedure.
; +---------------------------------------------------------+
; | Safe programmable logic (NCK-SPL) |
; +---------------------------------------------------------+
; File: SAFE.SPF
; Excerpt for explanation of PROFIsafe
; -----------------------------------------------------------
; D e s c r i p t i o n :
; - NCK-SPL
; - Logical combination of SPL input variables
; External (from PROFIsafe) : $A_INSE (MD 10386 10388)
; Internal (from SI kernel) : $A_INSI (MD 36980..36990)
; to output variables of the SPL
; Internal (to SI kernel) : $A_OUTSI (MD 36970..36978)
; External (to PROFIsafe) : $A_INSE (MD 10387 10389)
; E n d D e s c r i p t i o n
; -----------------------------------------------------------
;
;-------------------- Cycle definition ----------------------
; Suppress single block, display
; -----------------------------------------------------------
N100 PROC SAFE SBLOF DISPLOF
; --------------------- Declarations ------------------------
; Definition of symbolic names for SPL variables
; -----------------------------------------------------------
; Addressing of PROFIsafe input modules
; MD 10386 $MN_PROFISAFE_IN_ADDRESS[n]
; Assignment of PROFIsafe signals to SPL
; MD 10388 $MN_PROFISAFE_IN_ASSIGN[n]
;------------------------------------------------------------
;MD 10386[0]/MD 10388[0] : F-DI NCK ; PLC-DB18.
;------------------------------------------------------------
N105 DEFINE IE_EMERGENCY_STOP AS $A_INSE[01] ; DBX38.0
N110 DEFINE IE_PROT.DOOR_CLOSED AS $A_INSE[02] ; DBX38.1
N115 DEFINE IE_AGREEMENT AS $A_INSE[03] ; DBX38.2
N120 DEFINE IE_DRIVES_ON AS $A_INSE[04] ; DBX38.3
;============================================================
;Internal inputs (mapping of SGA 36980..36990) ; PLC-DB18.
;------------------------------------------------------------
;not used for example
N105 DEFINE II_RES_01 AS $A_INSI[01] ; DBX55.0
;============================================================
;Internal outputs (assignment to SGE 36970..36978); PLC-DB18.
;------------------------------------------------------------
N425 DEFINE OI_SBH_DESEL AS $A_OUTSI[01] ; DBX62.0
N430 DEFINE OI_SG_SEL_B1 AS $A_OUTSI[02] ; DBX62.1
N435 DEFINE OI_STOPA_DESEL AS $A_OUTSI[03] ; DBX62.2
N440 DEFINE OI_STOPC_DESEL AS $A_OUTSI[04] ; DBX62.3
N445 DEFINE OI_STOPD_DESEL AS $A_OUTSI[05] ; DBX62.4
;============================================================