Campbell Manufacturing CR10 Manual De Usuario

Descargar
Página de 253
CR10 OVERVIEW
OV-16
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)
Explanation
*
00:00
Enter mode.
1
01:00
Enter Program Table 1.
A
01:0.0000
Advance to execution
interval (In seconds)
5
01:5
Key in an execution
interval of 5 seconds.
A
01:P00
Enter the 5 second
execution interval and
advance to the first program
instruction location.
17
01:P17
Key in Instruction 17
which directs the CR10
to measure the internal
temperature in degrees
C.  This is an
Input/Output Instruction.
A
01:0000
Enter Instruction 17 and
advance to the first
parameter.
1
01:1
The input location to
store the measurement,
location 1.
A
02:P00
Enter the location # and
advance to the second
program instruction.
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)
Explanation
*0
LOG 1
Exit Table 1, enter *0
Mode, compile table and
begin logging.
*6
06:0000
Enter *6 Mode (to view
Input Storage).
A
01:21.234
Advance to first storage
location.  Panel temp. is
21.234
o
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 
o
C.
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.