Section 8. Processing and Math Instructions
8-17
DataTable(PVBoth,Change(3),500)
Sample(2,PeakV(1),IEEE4)
EndTable
BeginProg
Scan(500,mSec,0,0)
Deg=Deg+5
XY(1)=Cos(Deg*Pi/180)
‘Compute the cosine as input XY(1)
XY(2)=Sin(Deg*Pi/180)
‘Compute the sine as input XY(2)
PeakValley(PeakV(1),Change(1),2,XY(1),0.1)
‘Find the peaks and valleys for both
‘inputs. Hysteresis = 0.1
CallTable
PV1
CallTable
PV2
CallTable
PVBoth
Next
Scan
EndProg
PRT (Dest, Reps, Source, Mult, Offset)
Used to calculate temperature from the resistance of an RTD.
Syntax
PRT(
Dest, Reps, Source
)
Remarks
This instruction uses the result of a previous RTD bridge measurement to calculate
the temperature. The input (Source) must be the ratio Rs/R0, where Rs is the RTD
resistance and R0 the resistance of the RTD at 0
°
C.
The temperature is calculated according to the DIN 43760 specification adjusted
(1980) to the International Electrotechnical Commission standard. The range of
linearization is -200
°
C to 850
°
C. The error in the linearization is less than 0.001
°
C between -200 and +300
°
C, and is less than 0.003
°
C between -180 and +830
°
C.
The error (T calculated - T standard) is +0.006
°
at -200
°
C and -0.006
°
at +850
°
C.
Parameter
& Data Type
Enter
PRT Parameters
Dest
Variable or
Array
The variable in which to store the temperature in degrees C.
Reps
Constant
The number of repetitions for the measurement or instruction.
Source
Variable or
Array
The name of the variable or array that contains the Rs/RO value(s).
Mult, Offset
Constant,
Variable,
Array, or
Expression
A multiplier and offset by which to scale the raw results of the measurement. See the measurement
description for the units of the raw result; a multiplier of one and an offset of 0 are necessary to output in
the raw units. For example, the
TCDiff
instruction measures a thermocouple and outputs temperature in
degrees C. A multiplier of 1.8 and an offset of 32 will convert the temperature to degrees F.
Содержание CR9000
Страница 6: ...CR9000 Table of Contents iv This is a blank page ...
Страница 22: ...CR9000 Overview OV 16 This is a blank page ...
Страница 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Страница 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Страница 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 217: ...This is a blank page ...