Campbell CR10 Operator's Manual page 15

Measurement and control module
Hide thumbs Also See for CR10:
Table of Contents

Advertisement

OV5.1 SAMPLE PROGRAM 1
In this example the CR10 is programmed to
read its own internal temperature (using a built
in thermistor) every 5 seconds and to send the
results to Final Storage.
Display Will Show:
Key (ID:Data)
*
00:00
1
01:00
A
01:0.0000
5
01:5
A
01:P00
17
01:P17
A
01:0000
1
01:1
A
02:P00
The CR10 is now programmed to read the internal
temperature every 5 seconds and place the
reading in Input Storage Location 1. The program
can be compiled and the temperature displayed.
Display Will Show:
Key (ID:Data)
*0
LOG 1
*6
06:0000
A
01:21.234
Explanation
Enter mode.
Enter Program Table 1.
Advance to execution
interval (In seconds)
Key in an execution
interval of 5 seconds.
Enter the 5 second
execution interval and
advance to the first program
instruction location.
Key in Instruction 17
which directs the CR10 to
measure the internal
temperature in degrees
C. This is an
Input/Output Instruction.
Enter Instruction 17 and
advance to the first
parameter.
The input location to
store the measurement,
location 1.
Enter the location # and
advance to the second
program instruction.
Explanation
Exit Table 1, enter *0
Mode, compile table and
begin logging.
Enter *6 Mode (to view
Input Storage).
Advance to first storage
location. Panel temp. is
o
21.234
C (display shows
actual temp.).
Display Will Show:
Key (ID:Data)
Explanation
Wait a few seconds:
01:21.423
The CR10 has read the
sensor and stored the
result again. The internal
temp is now 21.423
The value is updated
every 5 seconds when
the table is executed. At
this point the CR10 is
measuring the
temperature every 5
seconds and sending the
value to Input Storage.
No data are being saved.
The next step is to have
the CR10 send each
reading to Final Storage.
(Remember, the Output
Flag must be set first.)
*1
01:00
Exit *6 Mode. Enter
program table 1.
2A
02:P00
Advance to 2nd
instruction location (this
is where we left off).
86
02:P86
This is the DO instruction
(a Program Control
Instruction).
A
01:00
Enter 86 and advance to
the first parameter (which
will specify the command
to execute).
10
01:10
This command sets the
Output Flag. (Flag 0)
A
03:P00
Enter 10 and advance to
third program instruction.
70
03:P70
The SAMPLE instruction.
It directs the CR10 to
take a reading from an
Input Storage location
and send it to Final
Storage (an Output
Processing Instruction).
A
01:0000
Enter 70 and advance to
the first parameter
(repetitions).
1
01:1
There is only one input
location to sample;
repetitions = 1.
CR10 OVERVIEW
o
C.
OV-13

Advertisement

Table of Contents
loading

Table of Contents