Siemens SINUMERIK 840D sl Function Manual page 1165

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

Advertisement

Call example
As far as the time is concerned, the basic program must be executed before the user
program. It is, therefore, called first in OB 1.
The following example contains the standard declarations for OB 1 and the calls for the basic
program (FC2), the transfer of the MCP signals (FC19), and the acquisition of error and
operating messages (FC10).
ORGANIZATION_BLOCK OB 1
VAR_TEMP
END_VAR
BEGIN
CALL FC 2;
//INSERT USER PROGRAM HERE
CALL FC 19 (
BAGNo :=
ChanNo :=
SpindleIFNo :=
FeedHold :=
SpindleHold :=
CALL FC 10 (
END_ORGANIZATION_BLOCK
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
OB1_EV_CLASS :
OB1_SCAN_1 :
OB1_PRIORITY :
OB1_OB_NUMBR :
OB1_RESERVED_1 :
OB1_RESERVED_2 :
OB1_PREV_CYCLE :
OB1_MIN_CYCLE :
OB1_MAX_CYCLE :
OB1_DATE_TIME :
db2.dbx151.0);
ToUserIF :=
Ack :=
BYTE ;
BYTE ;
BYTE ;
BYTE ;
BYTE ;
BYTE ;
INT ;
INT ;
INT ;
DATE_AND_TIME;
//Call basic program as first FC
//MCP signals to interface
B#16#1,
B#16#1,
B#16#4,
m22.0,
TRUE,
I6.1);
Detailed description
2.12 Block descriptions
//Mode group no. 1
//Channel no. 1
//Spindle interface number = 4
//Feed stop signal
//modal
//Spindle stop modal
//in message DB
//Error and operational messages
//Signals transferred from DB2
//to interface
//Acknowledgment of error messages
//via I 6.1
181

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents