Siemens SINUMERIK 840D sl Function Manual page 991

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

Advertisement

Declaration
FUNCTION FC2: VOID
// no parameters
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 OB1.
The following example contains the standard declarations for OB1 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 OB1
VAR_TEMP
END_VAR
BEGIN
CALL FC2;
//INSERT USER PROGRAM HERE
CALL FC19(
BAGNo :=
ChanNo :=
SpindleIFNo :=
FeedHold :=
SpindleHold := db2.dbx151.0);
CALL FC10(
END_ORGANIZATION_BLOCK
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
OB1_EV_CLASS :
BYTE ;
OB1_SCAN_1 :
BYTE ;
OB1_PRIORITY :
BYTE ;
OB1_OB_NUMBR :
BYTE ;
OB1_RESERVED_1 : BYTE ;
OB1_RESERVED_2 : BYTE ;
OB1_PREV_CYCLE : INT;
OB1_MIN_CYCLE :
INT;
OB1_MAX_CYCLE :
INT;
OB1_DATE_TIME :
DATE_AND_TIME;
ToUserIF := TRUE,
Ackn :=
P3: Basic PLC program for SINUMERIK 840D sl
//Call basic program as first FC
//MCP signals to interface
B#16#1,
// Mode group no. 1
B#16#1,
// Channel no. 1
B#16#4,
//Spindle interface number = 4
// (Number of the associated machine
axis)
m22.0,
//Feed stop signal
//modal
//Spindle stop modal
//in message DB
// Error and operating messages
//Signals transferred from DB2
//to interface
I6.1);
//Acknowledgment of error messages
//via I6.1
13.17 Block descriptions
991

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents