Campbell Scientific 4WFBS1K 4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Ter - Page 21

Output

Page 21 highlights

4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Terminal Input Modules (TIM) ;The following instructions calculate microstrain 5: Z=X*F (P37) 1: 3 2: -2 3: 9 X Loc [ Vr ] F Z Loc [ 1_2Vr ] 6: Z=Z+1 (P32) 1: 9 Z Loc [ 1_2Vr ] 7: Z=X/Y (P38) 1: 3 2: 9 3: 10 X Loc [ Vr ] Y Loc [ 1_2Vr ] Z Loc [ Vr_1_2Vr ] 8: Z=X*Y (P36) 1: 10 2: 8 3: 4 X Loc [ Vr_1_2Vr ] Y Loc [ Mult ] 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 2: 1 3: 10 Minutes (Seconds --) into a Interval (same units as above) 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) 1: 1 Subroutine 1 ;Subroutine to measure "zero" 2: Do (P86) 1: 11 Set Flag 1 High ;This prevents calling subroutine ;until user sets flag 1 low again. 3: Z=F (P30) 1: 0 2: 5 F Z Loc [ count ] ;Set counter use for average to 0 4: Z=F (P30) 1: 4000 2: 7 F Z Loc [ 4e6 ] ;load 4000 into ;input location 5: Z=X*F (P37) 1: 7 2: 1000 3: 7 X Loc [ 4e6 ] F Z Loc [ 4e6 ] ;Multiply by 1000 to get (4*uS/S) 15

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46

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