Siemens SINUMERIK Commissioning Manual page 455

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

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:
Description:
Parameters:
Syntax:
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)
LOAD
RET = InitConnection(VAR1+SIN(VAR3),13,"Servus",VAR2,
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Function name = ("File"/Type of return/Types of permanent call
FCT
parameters/Types of variable call parameters)
Declares additional, external functions
Function name
File
Type of return
R, I, S, C, B.
Variable or register
Function name (call parameter)
FCT
Call parameter
;
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.
Name of external function
Complete path to DLL file
Data type of return value for function
Data types of permanent call parameters and
return values. The data types are separated by
commas.
Data types of variable call parameters
List of all call parameters. Individual parameters
are separated by commas.
Programming
2.7 Functions
2-105

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents