
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-7
Cnt2K_Clear
This function code is used to clear the counter value of a specific
D/I channel in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_Clear ( int hConnection,
BYTE bytChannel);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Cnt2K_GetOverflows
This function code is used to get the overflow statuses of
contiguous D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_GetOverflows ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD * dwStatus);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dwStatus: A pointer to the overflow status of the
contiguous channels; each bit holds the status.
A bit value of 0 represents the status of the start
channel. A bit value of 1 represents the second
channel’s status. The values are :
0: Normal
1: Overflow
Succeed MXIO_OK.
Fail Refer to Return Codes.
Cnt2K_ClearOverflows
This function code is used to clear the overflow statuses of
contiguous D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_ClearOverflows ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to clear.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Comentarios a estos manuales