Moxa M-1401 Manuál Strana 85

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 129
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 84
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-48
AI2K_ReadMaxRaw
This function code is used to read the maximize raw data value for
a specific A/I channel.
C/C++
Arguments
Return Value
int AI2K_ReadMaxRaw ( int hConnection,
BYTE bytChannel,
WORD * wValue);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wValue: A pointer to the raw data value of the desired
A/I channel.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
AI2K_ResetMax
This function code is used to reset the maximize value for a
specific A/I channel.
C/C++
Arguments
Return Value
int AI2K_ResetMin ( int hConnection,
BYTE bytChannel,
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
AI2K_GetRanges
This function code is used to get the ranges of contiguous A/I
channels.
C/C++
Arguments
Return Value
int AI2K_GetRanges ( 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 read.
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
t
oRe
t
u
r
nCodes.
Zobrazit stránku 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 128 129

Komentáře k této Příručce

Žádné komentáře