Moxa M-1401 Manuál Strana 47

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 129
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 46
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-10
Cnt2K_GetStartStatuses
This function code is used to get the start statuses of contiguous
D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_GetStartStatuses ( 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 start statuses of the contiguous
D/I channels; each bit holds the start status of
one channel. 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: stop
1: start
Succeed MXIO_OK.
Fail Refer to Return Codes.
Cnt2K_SetStartStatuses
This function code is used to set the start statuses of contiguous
D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_SetStartStatuses ( 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 set.
dwStatus: A pointer to the start statuses of the contiguous
D/I channels; each bit holds the start status of
one channel. 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: stop
1: start
Succeed MXIO_OK.
Fail Refer to Return Codes.
Zobrazit stránku 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 128 129

Komentáře k této Příručce

Žádné komentáře