DO_Read
This function code is used to read the output status of a specific D/O channel.
C/C++
int DO_Read( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
BYTE * bytValue);
Visual Basic
Declare Function DO_Read Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytChannel As Byte, bytValue As Byte) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytSlot |
Slot number of the I/O module. Slot numbers range from 1 to 32. But this parameter is inactive in ioLogik 2000. |
bytChannel |
The specific channel to be read. |
bytValue |
A pointer that stores the specific channel output value to be read. |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |