
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-25
DO2K_GetPowerOnValue
This function code is used to get the power on value for a specific
D/O channel.
C/C++
Arguments
Return Value
int DO2K_GetPowerOnValue ( int hConnection,
BYTE bytChannel,
BYTE * bytValue);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
bytValue: A pointer to the power on value of the desired
D/O channel.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
DO2K_SetPowerOnValue
This function code is used to set the power on value for a specific
D/O channel.
C/C++
Arguments
Return Value
int DO2K_SetPowerOnValue ( int hConnection,
BYTE bytChannel,
BYTE bytValue);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
bytValue: Stores the power on value of a specific D/O
channel.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Digital Input/Output Commands for ioLogik E2000
DIO2K_GetIOMode
This function code is used to get specific channel's DI/DO mode.
C/C++
Arguments
Return Value
int DIO2K_GetIOMode ( int hConnection,
BYTE bytChannel,
BYTE * bytMode);
hConnection: The handle for an I/O connection.
bytChannel: The specific channel to be get.
bytMode: A pointer that stores the specific channel's
DI/DO mode. The values are :
0 : INPUT DI mode
1 : OUTPUT DO mode
Succeed MXIO_OK
Fail Refer to Return Codes.
Comentarios a estos manuales