
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-84
RTD2K_SetMathPars
This function code is used to set contiguous RTD channel's math
parameter.
C/C++
Arguments
Return Value
int RTD2K_SetMathPars ( 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 sets.
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
oRe
u
n Codes.
Thermocouple Commands
TC_Reads
This function code is used to read the temperature values for
contiguous channels.
C/C++
Arguments
Return Value
int TC_Reads ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
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.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dValue: An array that stores the temperature values of
the contiguous channels. dValue[0] represents
start channel 0. When dValue is 0x8000, it
means the sensor is not correctly wired. 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.
Comentarios a estos manuales