Campbell Scientific 4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Terminal Input Modules User Manual
Page 21
4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Terminal Input Modules (TIM)
;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
Z 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.
9: 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: Average (P71)
1: 1
Reps
2: 4
Loc [ uStrain ]
*Table 2 Program
01: 0.0000
Execution
Interval
(seconds)
*Table 3 Subroutines
1: Beginning of Subroutine (P85)
;Subroutine to measure "zero"
1: 1
Subroutine
1
2: Do (P86)
;This prevents calling subroutine
1: 11
Set Flag 1 High
;until user sets flag 1 low again.
3: Z=F (P30)
;Set counter use for average to 0
1: 0
F
2: 5
Z Loc [ count ]
4: Z=F (P30)
;load 4000 into
1: 4000
F
;input location
2: 7
Z Loc [ 4e6 ]
5: Z=X*F (P37)
;Multiply by 1000 to get (4*uS/S)
1: 7
X Loc [ 4e6 ]
2: 1000
F
3: 7
Z Loc [ 4e6 ]
15