Moxa M-1401 Manual Página 96

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 129
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 95
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-59
AO2K_SetRanges
This function code is used to set the ranges of contiguous A/O
channels.
C/C++
Arguments
Return Value
int AO2K_SetRanges ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wRange[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to set.
wRange: An array that stores the ranges of the
contiguous A/O channels. wRange[0]
represents the value of the starting channel. The
values are:
0: 0-10 VDC
1: 4-20 mA
Others : return Illegal Data Value
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
AO2K_GetRange
This function code is used to get the range of a specific A/O
channel.
C/C++
Arguments
Return Value
int AO2K_GetRange ( int hConnection,
BYTE bytChannel,
WORD * wRange);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wRange: A pointer to the range of the desired A/O
channel. The values are:
0: 0-10 VDC
1: 4-20 mA
0xff: disable
Others : return Illegal Data Value
Succeed MXIO_OK.
Fail Refer to Return Codes.
Vista de página 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 128 129

Comentários a estes Manuais

Sem comentários