Moxa M-1401 Instrukcja Obsługi Strona 61

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 129
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 60
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-24
DO2K_GetPowerOnValues
This function code is used to get the power on values of
contiguous D/O channels.
C/C++
Arguments
Return Value
int DO2K_GetPowerOnValues ( 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: A pointer to the power on values of the
contiguous D/O channels; each bit holds the
value of one channel. A bit value of 0
represents the power on status of the start
channel. A bit value of 1 represents the status
of the second digital output channel. The values
of the unused bits are random.
Succeed MXIO_OK.
Fail Refer to Return Codes.
DO2K_SetPowerOnValues
This function code is used to set the power on values of
contiguous D/O channels.
C/C++
Arguments
Return Value
int DO2K_SetPowerOnValues ( 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 set.
dwValue: Stores the power on values of contiguous D/O
channels; each bit holds the value of one
channel. A bit value of 0 represents the power
on status of the start channel. A bit value of 1
represents the status of the second digital
output channel. The values of the unused bits
are random.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Przeglądanie stron 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 128 129

Komentarze do niniejszej Instrukcji

Brak uwag