Fc12: Auxfu - Call Interface For User With Auxiliary Functions - 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
Call example
CALL FC10(
ToUserIF :=
Ackn :=
13.17.19

FC12: AUXFU - call interface for user with auxiliary functions

Function
The block FC12 "AUXFU" is called on an eventdriven basis in the basic program if the channel
transferred in the input parameter contains new auxiliary functions. The PLC user can extend
FC AUXFU with program instructions for processing his auxiliary function to avoid cyclic polling
of the channel DBs. This mechanism permits auxiliary functions to be processed on a jobdriven
basis. FC AUXFU is supplied as a compiled empty block in the basic program. In this case,
the basic program supplies parameter "Chan" with the channel number. The PLC user knows
which channel has new auxiliary functions available. The new auxiliary functions can be
determined by the auxiliary-function change signals in the channel concerned.
Declaration of the function
FUNCTION FC12: VOID
VAR_INPUT
END_VAR
BEGIN
END_FUNCTION
Explanation of formal parameters
Signal
Chan:
Example
FUNCTION FC12: VOID
VAR_INPUT
END_VAR
VAR_TEMP
END_VAR
1012
TRUE,
I6.1);
Chan:
BYTE ;
BE;
Type
Type
I
BYTE
Chan:
BYTE ;
ChanDB:
INT;
// Error and operating messages
// Signals from DB2 are transferred to interface.
// Acknowledgment of error message via input I6.1
// Event control of auxiliary functions
Value range
Description
0, 1, 2 ... 9
Index of the channel = channel number -1
// Event control of auxiliary functions
// Parameter is supplied by basic program
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