Moxa M-1401 Manual Pagina 86

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 129
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 85
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-49
AI2K_SetRanges
This function code is used to set the ranges of contiguous A/I
channels.
C/C++
Arguments
Return Value
int AI2K_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/I channels; wRange[0] represents
the value of the starting channel. The values
are:
00: ±150mV
01: ±500mV
02: ±5V
03: ±10V
04: 0-20mA
05: 4-20mA
Others: return Illegal Data Value
Succeed MXIO_OK.
Fail Refer to Return Codes.
AI2K_GetRange
This function code is used to get the range for a specific A/I
channel.
C/C++
Arguments
Return Value
int AI2K_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/I
channel. The values are:
00: ±150mV
01: ±500mV
02: ±5V
03: ±10V
04: 0-20mA
05: 4-20mA
Others: return Illegal Data Value
Succeed MXIO_OK.
Fail Refer to Return Codes.
Vista de pagina 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 128 129

Comentarios a estos manuales

Sin comentarios