DI_Read
This function code is used to read the status of a specific D/I channel.
C/C++
int DI_Read( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
BYTE * bytValue);
Visual Basic
Declare Function DI_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's connection. |
bytSlot |
Slot number of the I/O module. The Slot number ranges from 1 to 32. But this parameter is inactive in ioLogik 2000. |
bytChannel |
The specific channel to be read. |
bytValue |
A pointer that stores a specific D/I channel status. |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |