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,
Содержание SINUMERIK
Страница 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 24: ...Introduction 1 5 Limits of data management HMI Advanced IM4 18 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 96: ......
Страница 338: ...List of Abbreviations B 1 Abbreviations HMI Advanced IM4 332 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 464: ...Programming 2 8 Operators Expanding the user interface 2 114 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...
Страница 638: ...References for text generation Generating target language texts TX2 40 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 672: ...Commissioning a system 1 4 BIOS settings PCU Basesoftware IM8 32 Commissioning Manual 03 2009 6FC5397 1DP10 4BA0 ...