7 Configuring example
11.03
7.3 Safety Integrated with SPL
© Siemens AG 2003 All Rights Reserved
7-366
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
DB120 program excerpt:
DATA_BLOCK DB 120
TITLE =
VERSION : 0.1
STRUCT
pname : STRING [32 ] := '_N_SAFE_SPF';
//Program
name
ppath : STRING [32 ] := '/_N_CST_DIR/';
//Directory
FB4_Error : BOOL ;
//Error bit
FB4_Done : BOOL ; //Task completed
FB4_State : WORD ;
//Cause of error
FC9_Active : BOOL ;
//ASUB active
FC9_Done : BOOL ; //ASUB completed
FC9_Error : BOOL ;
//Error during task processing
FC9_SError : BOOL ;
//Interrupt number not
//assigned
FC9_Ref : WORD ; //Internal use
END_STRUCT ;
BEGIN
pname := '_N_SAFE_SPF';
ppath := '/_N_CST_DIR/';
FB4_Error := FALSE;
FB4_Done := FALSE;
FB4_State := W#16#0;
FC9_Activ := FALSE;
FC9_Done := FALSE;
FC9_Error := FALSE;
FC9_SError := FALSE;
FC9_Ref := W#16#0;
END_DATA_BLOCK
When the NCK-SPL has been successfully started by the PLC (FC95)
processing of the PLC-SPL (FC96) is enabled in OB1.
Two more predefined blocks are integrated in FC97 – FC60 (Example blocks
can be requested from the hotline, telephone No. 0180-525 8000) and FC21
(basic program block – FB1/P3). Modifications must also be made to OB100 to
ensure perfect operation of the safe programmable logic.
The markers, outputs and inputs used in this example have been freely
selected according to the test set-up being used.
Chapter 7.3.3 contains an overview of the I/O (peripherals) and variables used.
The ASUB for the NCK-SPL must be saved in the standard cycle directory
(CST.DIR) under the name SAFE.SPF.
The Safety Integrated functions SBH/SG and the SI function "External STOPs"
are activated for the individual drives. External stops are a prerequisite for
using the SPL logic.
X axis
36901 SAFE_FUNCTION_ENABLE
41H
Z axis
36901 SAFE_FUNCTION_ENABLE
41H
Spindle 36901
SAFE_FUNCTION_ENABLE 41H
Program