Moxa M-1401 Manuel Page 51

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 129
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 128 129

Commentaires sur ces manuels

Pas de commentaire