7 Configuring example
11.03
7.3 Safety Integrated with SPL
© Siemens AG 2003 All Rights Reserved
7-386
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
N104 IDS=12 EVERY NOT_HALTE == 1 DO QUIT_TIMER = -1
N105 IDS=13 EVERY QUIT_REQUEST == 1 DO QUIT_MARKER =
(QUIT_TIMER<0.4)
; -------------------------------------------------------
N110 IDS=14 DO NOT_HALT = NOT_HALTE AND (NOT_HALT OR NOT_QUIT
OR QUIT_MARKER)
;
N120 IDS=15 EVERY NOT_HALT == 0 DO TIMER1 = 0
N130 IDS=16 EVERY NOT_HALT == 1 DO STOP_A_A = 1 TIMER1=-1
N140 IDS=17 EVERY (TIMER1 > 1.0) AND NOT NOT_HALT DO
TIMER1 =
-1 STOP_A_A = 0
;
N150 IDS=18 EVERY NOT_HALT == 0 DO TIMER2 = 0
N160 IDS=20 EVERY NOT_HALT == 1 DO STOP_A_S = 1 TIMER2=-1
N170 IDS=22 EVERY (TIMER2 > 5.0) AND NOT NOT_HALT DO
TIMER2 = -1 STOP_A_S = 0
;
N180 IDS=24 DO STOP_A_ABWA = STOP_A_A AND NOT TEST_STOPA
;
N200 IDS=28 DO STOP_A_ABWS = STOP_A_S AND NOT TEST_STOPA
;
N210 IDS=30 DO STOP_C_ABW = NOT_HALT AND NOT TEST_STOPC
;
N220 IDS=32 DO STOP_D_ABW = NOT TEST_STOPD
;
N230 IDS=34 DO NOT_HALT2K = NOT_HALT
;
Lines N100–N105 are described in more detail in Chapter 7.3.6 "Test stop".
The programming of the function chart starts in line N110 - where the
acknowledgement button and the EMERGENCY STOP button are logically
combined. They form the internal "EMERGENCY_STOP" signal.
STOP C is selected with "EMERGENCY_STOP=0" (N210) and the timers for
the axes (N120-N140) and the spindles (N150-N170) are started. When each of
the timers has elapsed STOP A is triggered for the axes (N180) and the
spindles (N200). STOP D is not used on the NC side but is combined in the test
stop (refer to Chapter 7.3.6 "Test stop").
The power contactor K2 for the NC side is controlled using instruction line
N 230.
FC96 program excerpt:
//
// ---------- EMERGENCY STOP ----------
//
U "SPL".NOT_HALTE
// EMERGENCY STOP button INSE 1
U(
O "SPL".NOT_HALT
// EMERGENCY STOP signal internal
O "SPL".NOT_QUIT
//
Acknowledgement:
Button
O "SPL".QUIT_MARKER // Acknowledgement FC 97
)
= "SPL".NOT_HALT // EMERGENCY STOP signal internal
//
U "SPL".NOT_HALT
// After pressing EMERGENCY STOP
L S5T#1S // Load for 1 second
SA T 20 // After pressing
U T 20 // the EMERGENCY STOP
= "SPL".STOP_A_A // STOP A: Axes X, Z
//
U "SPL".NOT_HALT
// After pressing EMERGENCY STOP
L S5T#5S // Load for 5 seconds
SA T 21 // After pressing
U T 21
// the EMERGENCY STOP
= "SPL".STOP_A_S
// STOP A: Spindle C
//
U "SPL".STOP_A_A // STOP A: Axes X, Z
UN M 216.3 // Test external STOP A (FC 97)
= "SPL".STOP_A_ABWA
// De-select STOP A (X/Z)
Program