Fc5: Gp_Diag - Basic Program, Diagnostic Alarm And Module Failure - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
//Assigned to basic program
GP_IRFromNCK : BOOL;
GP_TM : BOOL;
GP_InPosition : ARRAY [1..3] OF BOOL;
GP_AuxFunction : ARRAY [1..10] OF BOOL; //Channel-oriented for auxiliary
GP_FMBlock : ARRAY [1..10] OF BOOL;
//Further local user data may be defined from this point onwards
END_VAR
BEGIN
END_ORGANIZATION_BLOCK
13.17.13

FC5: GP_DIAG - basic program, diagnostic alarm and module failure

Function
The block FC5 "GP_DIAG" is used to record assembly disruptions and failures.
A PLC stop can be triggered via the parameter "PlcStop". The PLC stop is only triggered for
incoming events. The MCPs connected to the parameterized PROFIBUS (DP1) at FB1 are
excluded from this.
Declaration
FUNCTION FC5: VOID
VAR_INPUT
END_VAR
Call example
The basic program should be run through after processing of the user programs. This is
recommended because a PLC stop can be triggered by the FC5.
The example contains the standard declaration for OB82 and OB86 and the call of the FC5.
ORGANIZATION_BLOCK OB82
VAR_TEMP
994
OB40_DATE_TIME :
CALL FC3;
//INSERT USER PROGRAM HERE
PlcStop: BOOL:= TRUE;
OB82_EV_CLASS : BYTE ;
OB82_FLT_ID : BYTE ;
OB82_PRIORITY : BYTE ;
DATE_AND_TIME;
//Interrupt by NCK for user
//Tool management
//Axis-oriented for positioning,
//Indexing axes, spindles
functions
//Currently not used
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents