Section 11. Programming Resource Library
112
11.3 Multiple Switch Closure Measurements
Pulse channel P_SW detects switch closures but P_LL does not. In order to
detect more than one switch closure device, a 100kOhm pull-up resistor must be
connected between and P_LL, C1, or C2. With the pull-up resistor in
place P_LL or the control port can detect a switch closure. In the following
example
p. 112, note that the PulseCount instruction for P_SW uses
configuration option 2 (Switch Closure), while P_LL must use option 0 (Pulse
Input).
CRBASIC EXAMPLE 18.
CRBASIC EXAMPLE. Two Rain Gages on a CR200(X)
'Rain(1) is wired to P_SW and Ground
'Rain(2) is wired to P_LL and Ground with a
'100,000 ohm resistor connecting P_LL to
Public Rain(2)
Units Rain()=mm
DataTable(Hourly,True,-1)
DataInterval(0,60,Min)
Totalize(2,Rain(),False)
EndTable
BeginProg
Scan(10,Sec)
PulseCount(Rain(1),P_SW,2,0,0.254,0)
PulseCount(Rain(2),P_LL,0,0,0.254,0)
CallTable(Hourly)
NextScan
EndProg
11.4 SDI-12 Sensor Support
11.4.1 SDI-12 Command Basics
Commands have three components:
Sensor address (a)
– a single character, and is the first character of the
command. Sensors are usually assigned a default address of zero by the
manufacturer. Wildcard address (?) is used in Address Query command.
Some manufacturers may allow it to be used in other commands.
Command body (e.g., M1)
– an upper case letter (the “command”) followed
by alphanumeric qualifiers.
Command termination (!)
– an exclamation mark.
An active sensor responds to each command. Responses have several standard
forms and terminate with <CR><LF> (carriage return – line feed).
Содержание CR200
Страница 32: ...Section 2 Quickstart Tutorial 22 ...
Страница 45: ...Section 3 Overview 35 3 3 Specifications ...
Страница 46: ...Section 3 Overview 36 ...
Страница 58: ...Section 4 Sensor Support 48 ...
Страница 62: ...Section 5 Measurement and Control Peripherals 52 ...
Страница 78: ...Section 8 CR200 X Configuration 68 ...
Страница 102: ...Section 9 Programming 92 ...
Страница 138: ...Section 11 Programming Resource Library 128 ...
Страница 156: ...Section 16 Support Software 146 ...
Страница 160: ...Section 17 Care and Maintenance 150 ...
Страница 166: ...Section 18 Troubleshooting 156 18 3 3 Diagnosis and Fix Procedures 18 3 3 1 Battery Voltage Test ...
Страница 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Страница 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Страница 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Страница 170: ...Section 18 Troubleshooting 160 ...
Страница 184: ...Appendix A Glossary 14 ...
Страница 190: ...Appendix B Status Table and Settings 20 ...
Страница 192: ...Appendix C Serial Port Pin Outs 22 ...
Страница 211: ......