Programming
2.7 Functions
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-105
2.7.29
External functions (only HMI Advanced)
Description
Additional user-specific functions can be used by means of this call. External functions are
stored in a DLL file and identified by an entry in the definition lines of the configuration file.
Note
An external function must have at least one return parameter.
Programming
Syntax:
FCT
Function name = ("File"/Type of return/Types of permanent call
parameters/Types of variable call parameters)
Description:
Declares additional, external functions
Parameters:
Function name
Name of external function
File
Complete path to DLL file
Type of return
Data type of return value for function
R, I, S, C, B.
Data types of permanent call parameters and
return values. The data types are separated by
commas.
Variable or register
Data types of variable call parameters
Syntax:
FCT
Function name (call parameter)
Call parameter
List of all call parameters. Individual parameters
are separated by commas.
Example
//M(SCREEN FORM1)
DEF VAR1 = (R)
DEF VAR2 = (I)
DEF RET = (I)
FCT InitConnection = ("c:\user\mydll.dll"/I/R,I,S/I,S)
; The external function "InitConnection" is declared. The
data type of what has been declared. The data type of
the return value is Integer, the data types of the
permanent call parameters are Real, Integer and String;
the data types of the variable call parameters are
Integer and String.
LOAD
RET = InitConnection(VAR1+SIN(VAR3),13,"Servus",VAR2,
Summary of Contents for SINUMERIK
Page 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Page 96: ......
Page 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...