Sub 1 Minute Output Interval Synched To Real Time; Switch Closures On Control Port (Rain Gage) - Campbell CR510 Operator's Manual

Datalogger
Hide thumbs Also See for CR510:
Table of Contents

Advertisement

02:
If time is (P92)
1:
0
2:
15
3:
10
03:
Set Active Storage Area (P80)
1:
3
2:
2
04:
Totalize (P72)
1:
1
2:
1
05:
IF (X<=>F) (P89)
1:
2
2:
2
3:
0
4:
30
06:
Set Active Storage Area (P80)
1:
1
2:
25
07:
Real Time (P77)
1: 0110
08:
Sample (P70)
1:
1
2:
2
09:
End (P95)
INPUT LOCATIONS
1 Precip_mm
2 15min_tot
8.3 SUB 1 MINUTE OUTPUT INTERVAL
SYNCHED TO REAL TIME
Output can be synchronized to seconds by
pressing "-" or "C" while entering the first
parameter in Instruction 92. If a counter,
incremented within the program, was used to
determine when to set the Output Flag, output
would depend on the number of times the table
was executed. The actual time of output would
depend on when the program was actually
compiled and started running. If the table
overran its execution interval (Section 1.1.1),
the output interval would not be the count
multiplied by the execution interval, but some
longer interval.
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
Minutes (Seconds --) into a
Interval (same units as above)
Set Output Flag High
Input Storage Area
Array ID or Loc [ 15min_tot ]
Reps
Loc [ Precip_mm ]
X Loc [ 15min_tot ]
<>
F
Then Do
Final Storage Area 1
Array ID or Loc
[ _________ ]
Day,Hour/Minute
Reps
Loc [ 15min_tot ]
In this example a temperature (107
Temperature Probe) is measured every 0.5
seconds and the average output every 30
seconds.
PROGRAM
*
Table 1 Program
01:
0.5
01:
Temp (107) (P11)
1:
1
2:
1
3:
1
4:
1
5:
1.0
6:
0.0
02:
If time is (P92)
1:
0--
2: 30
3: 10
03:
Average (P71)
1:
1
2:
2
INPUT LOCATIONS
1 Ref_Temp
2 TC_Temp
8.4 SWITCH CLOSURES ON CONTROL
PORTS (RAIN GAGE)
Control port 2 can be used to measure switch
closures up to 40 Hz. Instruction 3, pulse, is
used to measure two rain gages on pulse input
1, and a rain gage with control port 2. This is
done as a comparison. In a real application the
pulse channel would be used for wind speed
and a control port for a rain gage. The rain
gage is connected as diagrammed below.
CR510
+5
C2/P3
FIGURE 8.4-1. Connections for Rain Gage
Execution Interval (seconds)
Reps
SE Channel
Excite all reps w/E1
Loc [ Temp ]
Mult
Offset
Minutes (Seconds --) into a
Interval (same units as above)
Set Output Flag High
Reps
Loc [ TC_Temp ]
8-3

Advertisement

Table of Contents
loading

Table of Contents