Moxa M-1401 Manuel Page 101

  • 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 100
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-64
AO4K_SetSafeActions
This function code is used to set the safe actions of contiguous
A/O channels.
C/C++
Arguments
Return Value
int AO4K_SetSafeActions ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
WORD wAction[ ]);
hConnection: The handle for an I/O connection. bytSlot:
Slot number of the I/O module, from 1 to 32.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to set.
wAction: An array that stores thesafe actions for the
contiguous A/O channels. wAction[0]
represents the value of the starting channel. The
values are:
0: Safe value
1: Hold last state
2: Low Limit
3: High Limit
Succeed MXIO_OK.
Fail Refer to Return Codes.
AO4K_GetSafeAction
This function code is used to get the safe action for a specific
analog output channel.
C/C++
Arguments
Return Value
int AO4K_GetSafeAction ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
WORD * wAction);
hConnection: The handle for an I/O connection. bytSlot:
Slot number of the I/O module, from 1 to 32.
bytChannel: The desired channel.
wAction: A pointer to the safe action of the desired A/O
channel. The values are:
0: Safe value
1: Hold last state
2: Low Limit
3: High Limit
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
Vue de la page 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 128 129

Commentaires sur ces manuels

Pas de commentaire