CS105/CS105MD Barometric Pressure Sensor
Example 1. CR1000 Program for Measuring the CS105 Once Every Hour
'Main Program
BeginProg
Scan(5,Sec,1,0)
'CS105
Barometric
Pressure Sensor measurement BP_mmHg:
If IfTime(59,60,Min) Then PortSet(1,1)
If
IfTime(0,60,Min)
Then
VoltSE(BP_mmHg,1,mV2500,1,1,0,_50Hz,0.184,600.0)
BP_mmHg=BP_mmHg*0.75006
PortSet(1,0)
EndIf
'Call Data Tables and Store Data
NextScan
EndProg
Example 2. CR10(X) Program for Measuring the CS105 Once Every Hour
;{CR10X}
;
*Table 1 Program
01: 30
Execution
Interval
(seconds)
01: If time is (P92)
1: 59
Minutes (Seconds --) into a
2: 60
Interval (same units as above)
3: 41*
Set Port 1* High
02: If time is (P92)
1: 0
Minutes (Seconds --) into a
2: 60
Interval (same units as above)
3: 30
Then
Do
03: Volts (SE) (P1)
1: 1
Reps
2: 25**
± 2500 mV 60 Hz Rejection Range
3: 7*
SE
Channel
4: 1*
Loc [ P_mb ]
5: .184
Mult
6: 600
Offset
04: Do (P86)
1: 51*
Set Port 1* Low
05: End (P95)
06: If time is (P92)
1: 0
Minutes (Seconds --) into a
2: 60
Interval (same units as above)
3: 10
Set Output Flag High (Flag 0)
7