Programming
2.7 Functions
Expanding the user interface
2-106 Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
//M(SCREEN FORM1)
REG[2])
; The value of the "InitConnection" external function is
assigned to RET along with the call parameters
VAR1+SIN(VAR3), 13, Servus, VAR2 and REG[2].
END_LOAD
Extract from DLL file
void __export WINAPI InitConnection(ExtFctStructPtr FctRet, ExtFctStructPtr
FctPar, char cNrFctPar)
FctRet->value.i Return value of function
FctPar[0]->value.r 1st parameter (VAR1+SIN(VAR3))
FctPar[1]->value.i 2nd parameter (13)
FctPar[2]->value.s 3rd parameter ("Servus")
FctPar[4]->value.i 4th parameter (reference to VAR2)
FctPar[5]->value.s 5th parameter (reference to REG[2])
cNrFctPar Number of parameters (5)