7 Configuring example
11.03
7.6 SI I/Os using fail-safe modules connected to PROFIBUS DP
© Siemens AG 2003 All Rights Reserved
7-436
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
; Addressing of PROFIsafe input modules
; MD 10387 $MN_PROFISAFE_OUT_ADDRESS[n]
; Assignment of PROFIsafe signals to SPL
; MD 10389 $MN_PROFISAFE_OUT_ASSIGN[n]
;------------------------------------------------------------
;MD 10387[0]/MD 10389[0] : F-DO NCK ; PLC-DB18.
;------------------------------------------------------------
N585 DEFINE OE_VALVE1 AS $A_OUTSE[01] ; DBX46.0
N590 DEFINE OE_RES_02 AS $A_OUTSE[02] ; DBX46.1
N595 DEFINE OE_VALVE2 AS $A_OUTSE[03] ; DBX46.2
N600 DEFINE OE_RES_04 AS $A_OUTSE[04] ; DBX46.3
;------------------------------------------------------------
;MD 10387[1]/MD 10389[1] : PM-EF NCK ; PLC-DB18.
;------------------------------------------------------------
N605 DEFINE OE_VALVE3 AS $A_OUTSE[05] ; DBX46.4
N610 DEFINE OE_RES_06 AS $A_OUTSE[06] ; DBX46.5
N615 DEFINE OE_P1P2 AS $A_OUTSE[07] ; DBX46.6
;============================================================
;MARKERSI : Internal status marker ; PLC-DB18.
;------------------------------------------------------------
N665 DEFINE MI_NO_E_STOP AS $A_MARKERSI[01] ; DBX70.0
N670 DEFINE MI_AGREEMENT AS $A_MARKERSI[02] ; DBX70.1
;============================================================
;TIMERSI : Internal timer ; PLC timer
;------------------------------------------------------------
N742 DEFINE TI_RES_01 AS $A_TIMERSI[01] ; T xxx
;not used for example
;============================================================
;PLCSIOUT : Single-channel data from PLC -> NCK ; PLC-DB18.
;------------------------------------------------------------
N800 DEFINE IPLC_RES_01 AS $A_PLCSIOUT[01] ; DBX128.0
;not used for example
;============================================================
;PLCSIIN : Single-channel data from NCK -> PLC ; PLC-DB18.
;------------------------------------------------------------
N900 DEFINE OPLC_RES_01 AS $A_PLCSIIN[01] ; DBX132.0
;not used for example
;============================================================
; --------------------- Program section --------------------
; INSE/INSI ---> OUTSI/OUTSE (MARKERSI memory)
; -----------------------------------------------------------
; First static synchronized action : IDS = aa (MD 11500[0])
; Last static synchronized action : IDS = bb (MD 11500[1])
; Static de-select STOP A
IDS=01 DO STOPA_DESEL = 1
; Emergency stop (STOP C if protective door open / STOP D if
closed)
IDS=02 EVERY IE_DRIVES_ON == 1 DO MI_NO_E_STOP = 1 ; Set
status marker
IDS=03 WHENEVER IE_E_STOP == 0 DO MI_DO_NOT_STOP = 0 ; Reset
status marker