W5K_GetOpcHostName
This function get A-OPC server alias name of the specific ip address device that running A-OPC server.
C/C++
int W5K_GetOpcHostName( char * szIP,
DWORD dwTimeOut,
char szAliasName[]);
Visual Basic
Declare Function W5K_GetOpcHostName Lib "MXIO.dll" (ByVal szIP As String, ByVal nTimeOut As Long, ByVal szAliasName As String) As Long
Arguments:
szIP |
IP address of the A-OPC Server to be connected. |
dwTimeOut |
Timeout value for establishing a network connection with the ioLogik Ethernet Adapter. The unit is in milliseconds. |
szAliasName |
A-OPC Server alias name (MAX: 32 Bytes) |
Return Values:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |