11.03
7 Configuring example
7.3 Safety Integrated with SPL
© Siemens AG 2003 All Rights Reserved
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
7-409
R T 23;
// Reset timer 23
//
U "SPL".QUIT_MARKER; // Acknowledge EMERGENCY STOP PLC
L S5T#200MS;
// Delay time: Acknowledgement NCK/PLC
SE T 24;
// Set timer 24
//
U T 24;
// Acknowledge EMERGENCY STOP
S M 218.3;
// Withdraw acknowledgement NCK
R M 218.2;
// Acknowledge EMERGENCY STOP NCK
R T 24;
// Reset timer 24
//
UN M 218.2;
// Acknowledge EMERGENCY STOP NCK
SPB QUI1;
// Do not acknowledge NCK
//
L 1; // Load 1
T MB 194;
// Transfer marker byte 194
//
QUI1: UN M 218.3;
// Withdraw NCK acknowledgement
SPB QUI2;
//
L 0; // Load 0
T MB 194;
// Transfer marker byte 194
//
QUI2: NOP 0;
//
//
CALL FC 21 (
Enable := "SPL".QUIT_MARKER,
Funct := B#16#4,
S7Var := P#M 194.0 BYTE 1,
IVAR1 := 4,
IVAR2 := -1,
Error := M 218.4,
ErrCode := MW 188);
//
U M 218.3;
// Withdraw acknowledgement NCK
U "SPL".NOT_HALT;
// Acknowledgment EMERGENCY STOP-PLC o.k.
UN DB18.DBX 110.1;
// No difference between NCK/PLC
UN M 218.4;
// No error on transfer
R "SPL".QUIT_MARKER; // Acknowledge EMERGENCY STOP PLC
R M 218.3;
// Reset: Withdraw acknowledgement NCK
R M 211.0;
// Start monitoring time of 8 hours
END_FUNCTION