W5K_GetOpcDevicesInfo

 

This function get ioLogik W5000 Device information that link in A-OPC server .

 

C/C++

int W5K_GetOpcDevicesInfo( char * szIP,

DWORD dwTimeOut,

WORD wDeviceCount,

char szDeviceInfo[]);

 

Visual Basic

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

wDeviceCount

Total amount for the I/O device connected to A-OPC Server.(get from W5K_ListOpcDevices API)

szDeviceInfo

Each ioLogik W5000 device status request 12 Bytes

Device status:

IP Address

4 bytes, start from array [0]

MAC Address

6 Bytes, start from array [4]

Online Status

1 Bytes, start from array [10]

UnitID

1 Bytes, start from array [11]

 

Return Values:

Succeed

MXIO_OK

Fail

Refer to Return Codes.