13.13.13 Fc 5: Gp_Diag Basic Program, Diagnostic Alarm, And Module Failure - Siemens SINUMERIK 828D Function Manual

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

Advertisement

Call example
As far as the time is concerned, the basic program must be executed before other interrupt-driven user
programs. It is, therefore, called first in OB 40.
The following example contains the standard declarations for OB 40 and the call for the basic program.
ORGANIZATION_BLOCK OB 40
VAR_TEMP
OB40_EV_CLASS :
OB40_STRT_INF :
OB40_PRIORITY :
OB40_OB_NUMBR :
OB40_RESERVED_1 :
OB40_MDL_ID :
OB40_MDL_ADDR :
OB40_POINT_ADDR :
OB40_DATE_TIME :
//Assigned to basic program
GP_IRFromNCK : BOOL ;
GP_TM : BOOL ;
GP_InPosition : ARRAY [1..3] OF BOOL;
GP_AuxFunction : ARRAY [1..10] OF BOOL;
GP_FMBlock : ARRAY [1..10] OF BOOL;
//Further local user data may be defined from this point onwards
END_VAR
BEGIN
CALL FC 3;
//INSERT USER PROGRAM HERE
END_ORGANIZATION_BLOCK

13.13.13 FC 5: GP_DIAG Basic program, diagnostic alarm, and module failure

Function
Module defects and module failures are detected in this section of the basic program.
The FC5 block parameter can be used to define whether the PLC is to be placed in Stop mode. The PLC is
placed in STOP mode only for incoming events. Exceptions of the parameter "PLC-Stop" are the Profibus-MCPs
parameterized at FB 1 (must be connected to the DP1 Bus).
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
BYTE ;
BYTE ;
BYTE ;
BYTE ;
BYTE ;
BYTE ;
INT;
DWORD;
DATE_AND_TIME;
//Interrupt by NCK for user
//Tool management
//Axis-oriented for positioning,
//Indexing axes, spindles
//Channel-oriented for auxiliary functions
//Currently not used
P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
1001

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SINUMERIK 828D and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents

Save PDF