Data retrieval/communication, Program examples – Campbell Scientific CR23X Micrologger User Manual
Page 4

CR23X TABLE OF CONTENTS
ii
2.
INTERNAL DATA STORAGE
2.1
Final Storage Areas, Output Arrays, and Memory Pointers .................................................. 2-1
2.2
Data Output Format and Range Limits .................................................................................. 2-3
2.3
Displaying Stored Data -
7
Mode ................................................................................. 2-3
3.
INSTRUCTION SET BASICS
3.1 Parameter
Data Types........................................................................................................... 3-1
3.2 Repetitions (Reps) ................................................................................................................. 3-1
3.3 Entering
Negative Numbers................................................................................................... 3-1
3.4
Indexing Input Locations and Control Ports........................................................................... 3-1
3.5
Voltage Range and Overrange Detection.............................................................................. 3-2
3.6 Output
Processing ................................................................................................................. 3-2
3.7
Use of Flags: Output and Program Control .......................................................................... 3-3
3.8
Program Control Logical Constructions ................................................................................. 3-4
3.9 Instruction
Memory
and Execution Time ............................................................................... 3-5
3.10 Error Codes............................................................................................................................ 3-9
DATA RETRIEVAL/COMMUNICATION
4.
EXTERNAL STORAGE PERIPHERALS
4.1
On-Line Data Transfer - Instruction 96 .................................................................................. 4-1
4.2
Manually Initiated Data Output -
8
Mode ..................................................................... 4-3
4.3 Printer
Output Formats .......................................................................................................... 4-3
4.4 Storage
Module...................................................................................................................... 4-4
4.5
9
Mode -- SM192/716 Storage Module Commands .................................................... 4-6
5. TELECOMMUNICATIONS
5.1 Telecommunications Commands .......................................................................................... 5-1
5.2 Remote
Programming of the CR23X ..................................................................................... 5-6
6.
9-PIN SERIAL INPUT/OUTPUT
6.1
Computer RS-232 9-Pin Description ..................................................................................... 6-1
6.2
CS I/O 9-Pin Description........................................................................................................ 6-1
6.3
Use of Instruction 96 .............................................................................................................. 6-9
PROGRAM EXAMPLES
7.
MEASUREMENT PROGRAMMING EXAMPLES
7.1 Single-Ended
Voltage/Switched
12 V Terminal - CS500....................................................... 7-1
7.2 Differential
Voltage Measurement ......................................................................................... 7-3
7.3 Thermocouple
Temperatures
Using CR23X Reference........................................................ 7-3
7.4
Thermocouple Temperatures Using an External Reference Junction .................................. 7-3
7.5 107
Temperature Probe......................................................................................................... 7-4
7.6 Anemometer
with
Photochopper Output................................................................................ 7-4
7.7
Tipping Bucket Rain Gage with Long Leads ......................................................................... 7-5
7.8
100 ohm PRT in 4 Wire Half Bridge....................................................................................... 7-5
7.9
100 ohm PRT in 3 Wire Half Bridge....................................................................................... 7-6
7.10
100 ohm PRT in 4 Wire Full Bridge ....................................................................................... 7-7
7.11
Pressure Transducer - 4 Wire Full Bridge ............................................................................. 7-8