E42_ReadStatus
This function code is used to read the status of the ioLogik 4200 Network adapter.
C/C++
int E42_ReadStatus( int hConnection,
WORD *wState,
WORD *wLastErrorCode);
Visual Basic
Declare Function E42_ReadStatus Lib "MXIO.dll" (ByVal hConnection As Long, wState As Integer, wLastErrorCode As Integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
wState |
Stores the Bus status in numerical format. The values are 0: Initial now 1: IO Ready 2: Initial Fault 3: IO Failed |
wLastErrorCode |
Stores the Field Power status in numerical format. The values are: 0: No error -3: No module attached(retry). -4: Set module parameter (need reboot) -5: module worm-up error (need reboot) -30: module configuration error(need reboot) |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |