Moxa M-1401 Instrukcja Obsługi Strona 97

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 129
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 96
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-60
AO2K_SetRange
This function code is used to set the range for a specific A/O
channel.
C/C++
Arguments
Return Value
int AO2K_SetRange ( int hConnection,
BYTE bytChannel,
WORD wRange);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wRange: Stores the specific A/O channel’s range. 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_GetPowerOnValues
This function code is used to get the power on values of
contiguous A/O channels.
C/C++
Arguments
Return Value
int AO2K_GetPowerOnValues ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
double dValue[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dValue: An array that stores the power on values for the
contiguous A/O channels. dValue[0] represents
the value of the starting channel. The unit is
Vdc for the voltage channel and mA for the
current channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Przeglądanie stron 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 128 129

Komentarze do niniejszej Instrukcji

Brak uwag