Section 7. Installation
320
acquisition network. The network administrator prefers to synchronize the
CR510 clocks from a central computer using the legacy Campbell Scientific C
command. The CR510 datalogger is hard-coded to output printable ASCII and
recognize the C command. CR3000 dataloggers, however, require custom
programming to output and accept these same ASCII strings. A similar program
can be used to emulate CR10X and CR23X dataloggers.
Solution — CRBasic example Measure Sensors / Send RS-232 Data
(p. 320)
imports
and exports serial data with the CR3000 RS-232 port. Imported data are expected
to have the form of the legacy Campbell Scientific time set C command. Exported
data has the form of the legacy Campbell Scientific Printable ASCII format.
Note The nine-pin RS-232 port can be used to download the CR3000
program if the SerialOpen() baud rate matches that of the datalogger
support software
(p. 614).
However, two-way PakBus
®
communications will
cause the CR3000 to occasionally send unsolicited PakBus
®
packets out
the RS-232 port for at least 40 seconds after the last PakBus
®
communication. This will produce some "noise" on the intended data-
output signal.
Monitor the CR3000 RS-232 port with HyperTerminal as described in the section
Configure HyperTerminal
(p. 316).
Send C-command file to set the clock
according to the text in the file.
Note The HyperTerminal file will not update automatically with actual
time. The file only simulates a clock source for the purposes of this
example.
Measure Sensors / Send RS-232 Data
'This program example demonstrates the import and export serial data via the CR3000 RS-232
'port. Imported data are expected to have the form of the legacy Campbell Scientific
'time set C command:
' [YR:DAY:HR:MM:SS]C
'Exported data has the form of the legacy Campbell Scientific Printable ASCII format:
' 01+0115. 02+135 03+00270 04+7999 05+00138 06+07999 07+04771
'Declarations
'Visible Variables
Public
StationID
Public
KWH_In
Public
KVarH_I
Public
KWHHold
Public
KVarHold
Public
KWHH
Public
KvarH
Public
InString
As String
* 25
Public
OutString
As String
* 100
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......