Lenze P94DLL01A User Manual
Page 10

10
P94DLL01A
long SS940_CloseInterface ( SHANDLE handle )
Purpose: To close the communication interface to device with the specific handle.
Inputs:
handle
to the previously opened interface by the function
SS940_OpenInterfaceB.
Return:
error code
long SS940_FindByName ( char* name, BYTE* ip_address, BYTE* ser_num, int timeout )
Purpose: To find PositionServo drives on the network by their names and retrieve their IP addresses and
serial address numbers.
Inputs:
name
ASCII string containing the drive’s name
Timeout
request time out in ms. Set it in 000 ms for general use
Return: ip_address
4 bytes drive’s IP address.
ser_num
4 bytes serial number information
8. Data Manipulation Functions
There are twelve DLL Data Manipulation Functions that apply to the PositionServo drive.
long SS940_ReadParamAsDouble ( SHANDLE h, int pid, double& param )
Purpose: To read the EPM copy of the variable as a DOUBLE type with the index specified by pid and
return it in argument parameter.
Inputs:
h
handle to interface opened by
SS940_OpenInterfaceB
pid
variable (parameter) index
Returns:
param
variable value in double format
long SS940_ReadParamAsInteger ( SHANDLE h, int pid, int& param )
Purpose: To read EPM copy of the variable as a -bit INTEGER type with index specified by pid and
return it in argument parameter.
Inputs:
h
handle to interface opened by
SS940_OpenInterfaceB
pid
variable (parameter) index
Returns:
param
variable value in integer format