SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES

converts the readings to engineering units. Temperature (°C), pressure (psi), and signature are stored in Locations 17, 18, and 19, respectively. Instructions to output the readings to Final Storage are not included in this example.

*1 Table 1 Programs

01:

60

Sec. Execution Interval

If the program has just compiled, a 0 is in Loc

20.If Loc 20 = 0, call subroutine 1 and load the temperature coefficients into Loc 3..16.

01:

P89

If X<=>F

01:20 X Loc COMP CHK

02:

1

=

03:

0

F

04:

1

Call Subroutine 1

Measure temperature period in microseconds

02:P27 Period Average (SE)

01:

1

Rep

02:

4

Input gain=1

03:

12

IN Chan

04:

9000

No. of Cycles

05:6 Time Out (units=.01sec)

06:

1

Loc [:TEMP,us]

07:

1

Mult

08:

1

Offset

Measure pressure period in microseconds

03:P27 Period Average (SE)

01:

1

Rep

02:

4

Input gain=1

03:

1

IN Chan

04:

5000

No. of Cycles

05:15 Time Out (units=.01sec)

06:

2

Loc [:PRESS,us]

07:

1

Mult

08:

0

Offset

04:

P64

Paro Processing

01:

1

Start Loc: Temp(us),

 

 

Pressure(us), U0..T5

02:17 Start Loc: Temp(°C), Pressure(psi), SIG

05:P End Table 1

*3 Table 3 Subroutines

01:P85 Beginning of Subroutine

01:1 Subroutine Number

02:

P30

Z=F

01:5.8603 F

02:0 Exponent of 10

03:3 Z Loc [:U0 ]

03:

P30

Z=F

01: -3970.3

F

02:0 Exponent of 10

03:4 Z Loc [:Y1 ]

04:

P30

Z=F

01: -7114.3

F

02:0 Exponent of 10

03:5 Z Loc [:Y2 ]

05:

P30

Z=F

01:

102.78

F

02:0 Exponent of 10

03:6 Z Loc [:Y3 ]

06:

P30

Z=F

01:

70.294

F

02:0 Exponent of 10

03:7 Z Loc [:C1 ]

07:

P30

Z=F

01:6.6101 F

02:0 Exponent of 10

03:8 Z Loc [:C2 ]

08:

P30

Z=F

01:-119.29 F

02:0 Exponent of 10

03:9 Z Loc [:C3 ]

09:

P30

Z=F

01:

30.884

F

02:0 Exponent of 10

03:10 Z Loc [:D1 ]

10:

P30

Z=F

01:

0

F

02:0 Exponent of 10

03:11 Z Loc [:D2 ]

11:

P30

Z=F

01:

26.337

F

02:0 Exponent of 10

03:12 Z Loc [:T1 ]

12:

P30

Z=F

01:.85170 F

02:0 Exponent of 10

03:

13

Z Loc [:T2 ]

7-25