Moxa M-1401 Manuel Page 119

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 129
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 118
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-82
RTD2K_SetEngUnits
This function code is used to get contiguous RTD channel's
engineering unit.
C/C++
Arguments
Return Value
int RTD2K_SetEngUnits ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wEngUnit[ ]);
hConnection: The handle for an I/O device connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to be set.
wEngUnit: An array that stores the contiguous RTD
channel's engineering unit, wEngUnit[0]
represents the value of the starting channel.
The values for normal channel are:
0=Celsius
1=Fahrenheit
2=Ohm
Others_: return Illegal Data Value
The values for virtual channels are:
0=Celsius
1=Fahrenheit
Others_: return Illegal Data Value
Succeed MXIO_OK.
Fail Refer to Return Codes.
RTD2K_GetMathPar
This function code is used to get the math parameter for a specific
RTD channel.
C/C++
Arguments
Return Value
int RTD2K_GetMathPar ( int hConnection,
BYTE bytChannel,
WORD * wMathPar );
hConnection: The handle for an I/O device connection.
bytChannel : The specific channel to be get.
wMathPar: A pointer that stores the specific RTD
channel's math parameter. For AVG,Bit 0 of
high byte represents the first channel and Bit
1 of high byte represents the second
channel.For DEV,the High-Byte as
subtrahend and Low-Byte as minuend.
Exp : AVG( b’0000-0000 b’0010-0011) = ch5+ch1+ch0
Exp : DEV( b’0000-0100 b’0010-0000) = ch2-ch6
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
n Codes.
Vue de la page 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 128 129

Commentaires sur ces manuels

Pas de commentaire