
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-6
Counter Commands for ioLogik E2000, R2000
Cnt2K_Reads
This function code is used to read the counter values of contiguous
D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_Reads ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwValue[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dwValue: An array that stores the counter values of the
contiguous channels, dwValue[0] represents the
value of the starting channel.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Cnt2K_Clears
This function code is used to clear the counter values of
contiguous D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_Clears ( 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.
Cnt2K_Read
This function code is used to read the counter value of a specific
D/I channel in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_Read ( int hConnection,
BYTE bytChannel,
DWORD * dwValue);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
dwValue: A pointer to the counter value of the desired
channel.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Komentarze do niniejszej Instrukcji