Moxa M-1401 Handbuch Seite 120

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 129
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 119
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-83
RTD2K_SetMathPar
This function code is used to set the math parameter for a specific
RTD channel.
C/C++
Arguments
Return Value
int RTD2K_SetMathPar ( int hConnection,
BYTE bytChannel,
WORD wMathPar);
hConnection: The handle for an I/O device connection.
bytChannel : The specific channel to be set.
wMathPar: A pointer that stores the specific RTD
channel's math parameter. For AVG, Bit 0 o
f
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.
RTD2K_GetMathPars
This function code is used to get contiguous RTD channel's math
parameter.
C/C++
Arguments
Return Value
int RTD2K_GetMathPars ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wMathPar[ ]);
hConnection: The handle for an I/O device connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to be gets.
wMathPart: An array that stores the contiguous RTD
channel's math parameter, wMathPar[0]
represents the value of the starting channel.
The values are :
For AVG,Bit 0 of high byte represents the
first channel and Bit 1 of high byte
represents the second channel.
For DEV,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.
Seitenansicht 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 128 129

Kommentare zu diesen Handbüchern

Keine Kommentare