W5K_ListOpcDevices

 

This function get amount of ioLogik W5000 that link in A-OPC server.

 

C/C++

int W5K_ListOpcDevices( char * szIP,

DWORD dwTimeOut,

WORD* wDeviceCount);

 

Visual Basic

Declare Function W5K_GetOpcHostName Lib "MXIO.dll" (ByVal szIP As String, ByVal nTimeOut As Long, wDeviceCount As Integer) 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.

wDeviceCount

Total amount for the I/O device connected to A-OPC Server.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.