Siemens SINUMERIK 840D sl Commissioning Manual page 100

Commissioning cnc part 2 (hmi)
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Expanding the Operator Interface (BE1)
3 Syntax
Type of fixed call
parameter
Type of variable call
parameter
The data types of return values and call parameters are R, I, S, C, B.
Use of external functions in the further configuration:
Function name (Call parameter)
where:
Function name
Call parameter
Individual parameters are separated by commas.
Note
An external function must have at least one return parameter.
//M(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,
REG[2])
;RET is assigned the value of the external
function "InitConnection" with 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
FctPar[0]->value.r
FctPar[1]->value.i
FctPar[2]->value.s
FctPar[4]->value.i
FctPar[5]->value.s
cNrFctPar
BE1/3-94
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
List of data types of fixed call parameters.
The data types are separated by commas.
List of data types of variable
call parameters (variable or register). The
data types are separated by commas.
Name of external function
List of all call parameters.
;The external function "InitConnection"
;is declared. The data type of
;the return value is Integer, the data types
;of the fixed call parameters are Real,
;Integer and String, the data types of the
;variable call parameters are Integer
;and String.
Return value of function
1. parameter (VAR1+SIN(VAR3))
2. parameter (13)
3. parameter ("Servus")
4. parameter (reference to VAR2)
5. parameter (reference to REG[2])
Number of parameters (5)
© Siemens AG, 2005. All rights reserved
08/2005

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents