Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
2-158 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
OB40_DATE_TIME : DATE_AND_TIME;
//Assigned to basic program
GP_IRFromNCK : BOOL ; //Interrupt by NCK for user
GP_TM : BOOL ; //Tool management
GP_InPosition : ARRAY[1..3] OF BOOL; //Axis-oriented for positioning and
//indexing axes, spindles
GP_AuxFunction : ARRAY[1..10] OF BOOL; //Channel-oriented for //auxiliary
functions
GP_FMBlock : ARRAY[1..10] OF BOOL; //Channel-oriented for block
//transfer to FM (available soon)
//Further local user data may be defined from this point onwards
END_VAR
BEGIN
CALL FC 3;
//INSERT USER PROGRAM HERE
END_ORGANIZATION_BLOCK
2.12.13 FC 5: GP_DIAG Basic program, diagnostic alarm, and module failure
Description of functions
Description of functions
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. The PROFIBUS MCPs
assigned on FB1 are excluded from stopping the PLC.
Declaration
FUNCTION FC 5: VOID
VAR_INPUT
PlcStop: BOOL := True;
END_VAR