Campbell Scientific WXT520 WXT520 Weather Transmitter - Page 12

Commands, Programming

Page 12 highlights

WXT520 Weather Transmitter 6.5 Commands Campbell Scientific uses the SDI-12 protocol to communicate with the WXT520. Both "aM!" and "aR!" commands are supported (where "a" is the sensor address). The preferred command is "aR!", since the communication is done in fewer steps. The WXT520 is configured to run continuously so the output is identical. TABLE 6-2 contains the outputs as configured by Campbell Scientific. All outputs are in SI units. TABLE 6-2. SDI-12 Commands SDI-12 Command aR! or aM! aR1! or aM1! aR2! or aM2! aR3! or aM3! aR5! or aM5! Command Function Values Returned Composite Message Wind Direction Average, Wind Speed Average, Air Temperature, Relative Humidity, Barometric Pressure, Rainfall Amount, Hail Amount Wind Message Wind Direction Minimum, Wind Direction Average, Wind Direction Maximum, Wind Speed Minimum, Wind Speed Average, Wind Speed Maximum PTU Message Air Temperature, Relative Humidity, Barometric Pressure Precipitation Message Rainfall Amount, rainfall Duration, Rainfall Intensity, Hail Amount, Hail Duration, Hail Intensity Self Diagnostic Supply Voltage, Internal Reference Voltage Message 6.6 Programming 6.6.1 CRBasic Dataloggers that use CRBasic include our CR200(X)-series, CR800, CR850, CR1000, CR3000, and CR5000. These dataloggers use the SDI12Recorder() instruction to read the WXT520. The SDI12Recorder() instruction has the following form: SDI12Recorder(Destination, Output String, Multiplier, Offset) 6

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22

WXT520 Weather Transmitter
6.5
Commands
Campbell Scientific uses the SDI-12 protocol to communicate with the
WXT520. Both "aM!" and "aR!" commands are supported (where "a" is the
sensor address). The preferred command is "aR!", since the communication is
done in fewer steps. The WXT520 is configured to run continuously so the
output is identical. TABLE 6-2 contains the outputs as configured by Campbell
Scientific. All outputs are in SI units.
TABLE 6-2.
SDI-12 Commands
SDI-12
Command
Command
Function
Values Returned
aR! or aM!
Composite
Message
Wind Direction Average, Wind Speed
Average, Air Temperature, Relative
Humidity, Barometric Pressure, Rainfall
Amount, Hail Amount
aR1! or
aM1!
Wind Message
Wind Direction Minimum, Wind Direction
Average, Wind Direction Maximum, Wind
Speed Minimum, Wind Speed Average,
Wind Speed Maximum
aR2! or
aM2!
PTU Message
Air Temperature, Relative Humidity,
Barometric Pressure
aR3! or
aM3!
Precipitation
Message
Rainfall Amount, rainfall Duration, Rainfall
Intensity, Hail Amount, Hail Duration, Hail
Intensity
aR5! or
aM5!
Self Diagnostic
Message
Supply Voltage, Internal Reference Voltage
6.6
Programming
6.6.1 CRBasic
Dataloggers that use CRBasic include our CR200(X)-series, CR800, CR850,
CR1000, CR3000, and CR5000. These dataloggers use the
SDI12Recorder()
instruction to read the WXT520.
The
SDI12Recorder()
instruction has the following form:
SDI12Recorder
(
Destination, Output String, Multiplier, Offset
)
6