7 Configuring example
11.03
7.3 Safety Integrated with SPL
© Siemens AG 2003 All Rights Reserved
7-370
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
FC95 program excerpt:
TITLE =
VERSION : 0.1
BEGIN
NETWORK
TITLE =
U M 210.0;
// ASUB start marker from OB100
U DB10.DBX 108.5;
// Drive group and terminal block
//
run-up
FP M 210.1;
// Start edge marker, PI service
= M 210.2;
// Start cycle marker, PI service
//
U M 210.2;
// Start cycle marker, PI service
S M 210.3;
// Start PI service
//
CALL FB 4 , DB 121 ( // PI service interrupt number and priority
Req := M 210.3,// Start PI service
PI service := P#DB16.DBX 18.0 BYTE 26,// PI service ASUB
Unit := 1,
Addr1 := P#DB120.DBX 34.0 BYTE 34,// Program path
Addr2 := P#DB120.DBX 0.0 BYTE 34,// Program name
WVar1 := W#16#1,// Interrupt number = 1
WVar2 := W#16#1,// Priority = 1
WVar3 := W#16#0,// LIFTFAST = 0
WVar4 := W#16#0,// BLKSYNC
Error := DB120.DBX 68.0,// Error occurred
Done := DB120.DBX 68.1,// Task, error-free
State := DB120.DBW 70); // Error code
//
U DB120.DBX 68.1;
// Task successfully completed
S M 210.4;
// Start ASUB
R M 210.3;
// Reset PI service start ASUB
//
//
CALL FC 9 (
Start := M 210.4,// Start ASUB
ChanNo := 1,// Channel number 1
IntNo := 1,// Interrupt number 1
Active := DB120.DBX 72.0,// ASUB active
Done := DB120.DBX 72.1,// Task completed
Error := DB120.DBX 72.3,// Error occurred
StartErr := DB120.DBX 72.4,// Interrupt number
missing
Ref := DB120.DBW 74);// Memory range internal
//
U DB120.DBX 72.1;
// Request completed ==> ASUB running
S M 210.7;
R M 210.0;
// Reset ASUB start marker from OB100
R M 210.4;
// Reset start ASUB
//
END_FUNCTION
Interrupt number 1 and priority 1 are assigned to the ASUB with FB4. The
variables LIFTFAST (fast retraction from the contour) and BLSYNC (the
program block is still being processed and the interrupt routine is only started
after this) must be assigned the value 0.
Description