DO_GetSafeValue
This function code is used to get the safe value for a specific D/O channel.
C/C++
int DO_GetSafeValue( int Connection ,
BYTE bytSlot,
BYTE bytChannel,
BYTE bytValue);
Visual Basic
Declare Function DO_GetSafeValue 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 get. |
bytValue |
Stores the safe value of specific D/O channel. 0: represents OFF 1: represents ON |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |