SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES

FIGURE 7.17-1. CR10/Paroscientific "T" Series Transducer Wiring Diagram

Subroutine 1, which loads the coefficients into

*

1

Table 1 Programs

input locations, is called only on the first

01:

60

Sec. Execution Interval

execution following program compilation.

01:

P89

If X<=>F

 

 

 

The temperature frequency is read on single-

01:

42

X Loc CMPILE CK

ended Channel 12 and pressure is measured

02:

1

=

 

on single-ended Channel 1.

03:

0

F

 

Temperature, T0, D and C are computed in

04:

1

Call Subroutine 1

02:

P27

Period Average (SE)

Subroutine 2 using a generalized fourth order

polynomial equation. The form of the equation

01:

1

Rep

 

is

02:

4

Input gain=1

 

 

03:

12

IN Chan

 

F(x) = U0 + U(M1 + U(M2 + U(M3 + UM4))).

04:

9000

No. of Cycles

 

 

05:

6

Time Out (units=.01sec)

This form provides faster execution and greater

06:

10

Loc [:UT us

]

accuracy of the floating point math. "M0..4"

07:

1

Mult

 

represents coefficients 0 through 4, and U is

08:

0

Offset

 

defined above. With five coefficients, T0 is the

03:

P27

Period Average (SE)

only parameter requiring a fourth order

polynomial. To maintain the fourth order

01:

1

Rep

 

format, zero value "dummy" coefficients are

02:

3

Input gain=10

 

plugged in where required for the temperature,

03:

1

IN Chan

 

D, and C coefficients.

04:

5000

No. of Cycles

 

 

05:

16

Time Out (units=.01sec)

Instructions to output the readings to Final

06:

11

Loc [:TAU us

]

Storage are not included in this example.

07:

1

Mult

 

 

08:

0

Offset

 

7-21