Siemens SINUMERIK 840D Description Of Functions page 370

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

Advertisement

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