W5K_ReadStatus
This function code is used to read the status of the ioLogik W5000 Module.
C/C++
int W5K_ReadStatus( int hConnection,
WORD *wState,
WORD *wLastErrorCode);
Visual Basic
Declare Function W5K_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 1: Initial NET 2: Initial Fault 3: IO 4: IO Failed 5: Idle |
wLastErrorCode |
Stores the Field Power status in numerical format. The values are: 0: No error 1: Communication error. 2: Modbus error(need reboot) 3: Pending error(need reboot) 4: Out of memory error(need reboot) |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |