DO_Write
This function code is used to write the output status for a specific D/O channel.
C/C++
int DO_Write( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
BYTE bytValue);
Visual Basic
Declare Function DO_Write Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytChannel As Byte, ByVal 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 write. |
bytValue |
Stores the specific channel's output status that is to be written. 1 represents ON, 0 represents OFF. |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |