Moxa M-1401 Manuál Strana 51

  • 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 50
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-14
Cnt2K_GetPowerOnValues
This function code is used to get the power on values of
contiguous D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_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; each bit
holds the power on value of one channel. A bit
value of 0 represents the power on value of
the start channel. A bit value of 1 represents
the second channel’s power on value. The
values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer to Return Codes.
Cnt2K_SetPowerOnValues
This function code is used to set the power on values of
contiguous D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_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: Stored the power on values for the contiguous
channels; each bit holds the power on value of
one channel. A bit value of 0 represents the
power on value of the start channel. A bit
value of 1 represents the second channel’s
power on value. The values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer to Return Codes.
Zobrazit stránku 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 128 129

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

Žádné komentáře