Ov4.1 Programming Sequence; Ov4.2 Instruction Format - Campbell CR510 Operator's Manual

Hide thumbs Also See for CR510:
Table of Contents

Advertisement

CR510 OVERVIEW

OV4.1 PROGRAMMING SEQUENCE

In routine applications, the CR510 measures
sensor output signals, processes the
measurements over some time interval and
stores the processed results. A generalized
programming sequence is:
1. Enter the execution interval. In most cases,
the execution interval is determined by the
desired sensor scan rate.
2. Enter the Input/Output instructions required
to measure the sensors.
3. If processing in addition to that provided by
the Output Processing Instructions (step 5)
is required, enter the appropriate
Processing Instructions.
4. Enter the Program Control Instruction to
test the output condition and set the Output
Flag when the condition is met. For
example, use
Instruction 92 to output based on time.
Instruction 86 to output every execution
interval.
Instruction 88 or 89 to output based on a
comparison of values in input locations.
This instruction must precede the Output
Processing Instructions which store data in
Final Storage. Instructions are described in
Sections 9 through 12.
5. Enter the Output Processing Instructions to
store processed data in Final Storage. The
order in which data are stored is determined
by the order of the Output Processing
Instructions in the table.
6. Repeat steps 4 and 5 for additional outputs
on different intervals or conditions.
NOTE: The program must be executed for
output to occur. Therefore, the interval at
which the Output Flag is set must be evenly
divisible by the execution interval. For
example, with a 2 minute execution interval
and a 5 minute output interval, the program
will only be executed on the even multiples
of the 5 minute intervals, not on the odd.
Data will be output every 10 minutes
instead of every 5 minutes.
OV-10
Execution intervals and output intervals set with
Instruction 92 are synchronized with datalogger
time starting at midnight.

OV4.2 INSTRUCTION FORMAT

Instructions are identified by an instruction
number. Each instruction has a number of
parameters that give the CR510 the information
it needs to execute the instruction.
The CR510 Prompt Sheet has the instruction
numbers in red, with the parameters briefly
listed in columns following the description.
Some parameters are footnoted with further
description under the "Instruction Option Codes"
heading.
For example, Instruction 73 stores the
maximum value that occurred in an Input
Storage location over the output interval.
P73 Maximum
1:
Reps
2:
TimeOption
3:
Loc
The instruction has three parameters (1)
REPetitionS, the number of sequential Input
Storage locations on which to find maxima, (2)
TIME, an option of storing the time of
occurrence with the maximum value, and (3)
LOC the first Input Storage location operated on
by the Maximum Instruction. The codes for the
TIME parameter are listed in the "Instruction
Option Codes".
The repetitions parameter specifies how many
times an instruction's function is to be repeated.
For example, four 107 thermistor probes may be
measured with a single Instruction 11, Temp-
107, with four repetitions. Parameter 2 specifies
the input channel of the first thermistor (the
probes must be connected to sequential
channels). Parameter 4 specifies the Input
Storage location in which to store measurements
from the first thermistor. If location 5 were used
and the first probe was on channel 1, the
temperature of the thermistor on channel 1
would be stored in input location 5, the
temperature from channel 2 in input location 6,
etc.
Detailed descriptions of the instructions are
given in Sections 9-12. Entering an instruction
into a program table is described in OV5.

Advertisement

Table of Contents
loading

Table of Contents