Siemens SINUMERIK 840D Description Of Functions page 366

Hide thumbs Also See for SINUMERIK 840D:
Table of Contents

Advertisement

7 Configuring example
7.3 Safety Integrated with SPL
Program
DB120 program excerpt:
DATA_BLOCK DB 120
TITLE =
VERSION : 0.1
STRUCT
END_STRUCT ;
BEGIN
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.
7-366
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
pname : STRING
[32 ] := '_N_SAFE_SPF';
//Program name
ppath : STRING
[32 ] := '/_N_CST_DIR/';
//Directory
FB4_Error : BOOL ;
FB4_Done : BOOL ; //Task completed
FB4_State : WORD ;
FC9_Active : BOOL ;
FC9_Done : BOOL ; //ASUB completed
FC9_Error : BOOL ;
FC9_SError : BOOL ;
//assigned
FC9_Ref : WORD ;
//Internal use
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;
X axis
36901 SAFE_FUNCTION_ENABLE
Z axis
36901 SAFE_FUNCTION_ENABLE
Spindle
36901 SAFE_FUNCTION_ENABLE
//Error bit
//Cause of error
//ASUB active
//Error during task processing
//Interrupt number not
41H
41H
41H
© Siemens AG 2003 All Rights Reserved
11.03

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simodrive 611 digital

Table of Contents