Campbell CS526 Instrukcja Obsługi Strona 15

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 14
CS526 ISFET pH Probe
This probe must be connected to the datalogger’s 5 V
terminal (not 12 V). Connecting to a higher voltage will
damage the probe beyond repair.
7.2 Datalogger Programming
7.2.1 Get Data Command
The datalogger needs to send a “get data” serial command to the CS526 to get
the pH data. This command is sent to the CS526 via the SerialOut() CRBasic
instruction (see Section 7.2.3.2, SerialOut() Instruction
(p. 8)). TABLE 7-2
shows the “get data” command and its response.
TABLE 7-2. Get DataCommand and Response
Command Response
aMn!<CR>
Where:
a = probe address (factory
default is 1)
n = a single dummy character
(typically use 1)
a<value><CR><LF>
Where:
a = probe address (factory default is 1)
<value> = the probe’s reading for pH
(in digital counts).
7.2.2 CRBasic Instruction Sequence
A sequence of CRBasic instructions is used to measure the sensor. TABLE 7-3
shows the instruction sequence. Information about the instructions is provided
in Section 7.2.3, Instruction Descriptions
(p. 8), and an example program is
provided in Appendix B, Example Program
(p. B-1).
TABLE 7-3. Instruction Sequence
Instruction
Function
SerialOpen()
Set up a datalogger port for serial communication (see Section
7.2.3.1, SerialOpen() Instruction (p. 8))
Scan()
Establish a scan rate
SerialOut()
Send “get data” command to the CS526.
See Section 7.2.1, Get Data Command
(p. 7), and 7.2.3.2,
SerialOut() Instruction
(p. 8), for more information.
SerialIn()
Set up the COM port to receive the incoming serial data (see
Section 7.2.3.3, SerialIn() Instruction
(p. 8)).
Please note that in the beginning of the CRBasic program, the
variable used in the SerialIn() instruction needs to be
declared as an ASCII string format.
SplitStr()
Split out digital count value for pH from the input string.
CAUTION
7
Przeglądanie stron 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 27 28

Komentarze do niniejszej Instrukcji

Brak uwag