Siemens SINUMERIK 828D Commissioning Manual page 1058

Hide thumbs Also See for SINUMERIK 828D:
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
128
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
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents