Siemens SINUMERIK 840DE sl Commissioning Manual page 1144

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Programming commands
6.3 Functions
Parameters:
The external function can, for example, be called from the LOAD method or executed in the
PRESS method.
Example:
press(vs4)
RET = InitConnection(VAR1,13,"Servus",VAR2,VAR17)
end_press
Structure of the external function
The external function must take into account a certain, specific signature:
Syntax:
Description:
Parameters:
Definition of the transfer structure
union CFI_VARIANT
typedef struct ExtFctStructTag
158
Function name
File
Type of return
Type of fixed parame‐
ter
Type of variable pa‐
rameter
The data types are separated by commas.
extern "C" dllexport void InitConnection (ExtFctStructPtr FctRet, ExtFctStructPtr
FctPar, char cNrFctPar)
DLL export, only when implemented in Windows
Specifiers and transfer parameters are strictly defined. The actual call parameters
are transferred using the transferred structures.
cNrFctPar
FctPar
FctRet
(
char
short int
double
char*
)
(
Name of external function
Complete path to DLL file
Data type of the return value
Value parameter
Reference parameter
Number of call parameters = number of structure ele‐
ments in FctPar
Pointer to a field of structure elements, which contain
the particular call parameter with data type.
Pointer to a structure for the function value return with
data type.
b;
i;
r;
s;
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents