Campbell Scientific 4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Terminal Input Modules User Manual

Page 18

Advertising
background image

4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Terminal Input Modules (TIM)

Example Program 4.4. CR10X ¼ Bridge Strain with 1 rep and zero offset

;{CR10X}
*Table 1 Program
01: 1

Execution

Interval

(seconds)


1: If Flag/Port (P91)

;On the first execution (Flag 1 is low)

1: 21

Do if Flag 1 is Low

;or when user sets Flag 1 low

2: 1

Call

Subroutine

1

;call the zeroing subroutine


2: Full Bridge (P6)

;Measure the strain gage

1: 1

Reps

2: 22

± 7.5 mV 60 Hz Rejection Range

3: 1

DIFF

Channel

4: 1

Excite all reps withExchan 1

5: 2500

mV

Excitation

6: 1

Loc [ mVperV ]

7: 1

Mult

8: 0

Offset


3: X-Y (P35)

;Subtract zero reading from the

1: 1

X Loc [ mVperV ]

;measurement

2: 2

Y Loc [ mVperV_0 ]

3: 3

Z Loc [ Vr ]


4: X*F (P37)

;Change Vr from mV/V to V/V

1: 3

Loc [ Vr ]

2: 0.001

3: 3

Loc [ Vr ]

;The following instructions calculate microstrain

5: Z=X*F (P37)
1: 3

X Loc [ Vr ]

2: -2

F

3: 9

Z Loc [ 1_2Vr ]


6: Z=Z+1 (P32)
1: 9

Z Loc [ 1_2Vr ]


7: Z=X/Y (P38)
1: 3

X Loc [ Vr ]

2: 9

Y Loc [ 1_2Vr ]

3: 10

Loc [ Vr_1_2Vr ]


8: Z=X*Y (P36)
1: 10

X Loc [ Vr_1_2Vr ]

2: 8

Y Loc [ Mult ]

3: 4

Z Loc [ uStrain ]

; Output Section : This example outputs an average of the 1 second readings ;once per minute.

09: If time is (P92)
1: 0

Minutes (Seconds --) into a

2: 1

Interval (same units as above)

3: 10

Set

Output

Flag

High


10: Set Active Storage Area (P80)
1: 1

Final Storage Area 1

2: 1

Array

ID

;Set Array ID = 1 for measurement data


11: Real Time (P77)
1: 1110

Year,Day,Hour/Minute

12

Advertising