Moxa M-1401 Instrukcja Obsługi Strona 43

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 129
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 42
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
t
oRe
t
u
r
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
t
oRe
t
u
r
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
t
oRe
t
u
r
nCodes.
Przeglądanie stron 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 128 129

Komentarze do niniejszej Instrukcji

Brak uwag