13.13.19 Fc 12: Auxfu Call Interface For User With Auxiliary Functions - Siemens SINUMERIK 828D Function Manual

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

Advertisement

Call example
CALL FC 10 (
ToUserIF :=
TRUE,
Ack :=
I6.1);

13.13.19 FC 12: AUXFU call interface for user with auxiliary functions

Function
FC AUXFU is generally called on an event­driven 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 job­driven 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 FC 12: VOID
VAR_INPUT
Chan:
BYTE ;
END_VAR
BEGIN
BE;
END_FUNCTION
Explanation of formal parameters
The table below lists all formal parameters of the AUXFU function:
Signal
Type
Type
Chan
I
BYTE
Example
FUNCTION FC 12: VOID
VAR_INPUT
Chan:
BYTE ;
END_VAR
VAR_TEMP
ChanDB:
INT;
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
//Error and operational messages
//Signals from DB 2 are transferred to
//interface
//Acknowledgement of the error message done via
//Input E6.1.
//Event control of auxiliary functions
Value range
0 ... 9
//Event control of auxiliary functions
//Parameter is supplied by basic program
P3: Basic PLC Program for SINUMERIK 840D sl
Remark
No. of NC channel -1
13.13 Block descriptions
1019

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents