Moxa M-1401 Manuel Page 53

  • 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 52
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-16
Cnt2K_GetSafeValues
This function code is used to get the safe values of contiguous D/I
channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_GetSafeValues ( 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 safe values; each bit holds the
safe value of one channel. A bit value of 0
represents the safe value of the start channel.
A bit value of 1 represents the second
channel’s safe value. The values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
Cnt2K_SetSafeValues
This function code is used to set the safe values of contiguous D/I
channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_SetSafeValues ( 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 safe values of the contiguous
channels; each bit holds the safe value of one
channel. A bit value of 0 represents the safe
value of the start channel. A bit value of 1
represents the second channel’s safe value.
The values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer to Return Codes.
Vue de la page 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 128 129

Commentaires sur ces manuels

Pas de commentaire