Moxa M-1401 Instrukcja Obsługi Strona 122

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 129
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 121
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-85
TC_Read
This function code is used to read the temperature value of a
specific channel.
C/C++
Arguments
Return Value
int TC_Read ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
double * dValue);
hConnection: The handle for an I/O connection.
bytSlot: Slot number of the I/O module, from 1 to 32.
This parameter is inactive for the ioLogik
E2000 and R2000.
bytChannel: The desired channel.
dValue: Stores the temperature value of the desired
channel. When dValue is 0x8000, it means the
sensor is not wired correctly. When the
operating mode of the TC module is voltage
input, the unit is v. Use ioAdmin to check the
I/O module settings.
Succeed MXIO_OK.
Fail Refer to Return Codes.
TC_ReadRaws
This function code is used to read the temperature value of
contiguous channels in raw data format.
C/C++
Arguments
Return Value
int TC_ReadRaws ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
WORD wValue[ ]);
hConnection: The handle for an I/O connection.
bytSlot: Slot number of the I/O module, from 1 to 32.
This parameter is inactive for the ioLogik
E2000 and R2000.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
wValue: An array that stores the temperature values of
the contiguous channels in raw data format.
wValue[0] represents start channel 0. When
wValue is 0x8000, it means the sensor is not
correctly wired. When the operating mode is
temperature sensor, 0.1°C (°F). When the
operating mode of the TC module is -78.0 ~
78.0 mV, 10 uV/count. When the operating
mode of the TC module is -32.7 ~ 32.7 mV,
1uV/count. When the operating mode of the TC
module is -65.5 ~ 65.5 mV, 2uV/count. Use
ioAdmin to check the I/O module settings.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Przeglądanie stron 121

Komentarze do niniejszej Instrukcji

Brak uwag