beautypg.com

Section 11. output processing instructions – Campbell Scientific TD Operating System Addendum for CR510, CR10X, and CR23X User Manual

Page 43

background image

AD-11-1

SECTION 11. OUTPUT PROCESSING INSTRUCTIONS

Instructions 73 – Maximum and 74 – Minimum have only one time option. (Time is output as a quoted
string.) Instruction 80 – Set Active Storage Area, is not in the TD operating system. Its functions are
included in Instruction 84 – Data Table. Instruction 84 is only in the TD operating system.

*** 73 MAXIMUM ***

FUNCTION
This instruction stores the MAXIMUM value
taken (for each input location specified) over
a given output interval. An internal FLAG is
set whenever a new maximum value is seen.
This FLAG may be tested by Instruction 79.
Time of occurrence maximum value(s) is
OPTIONAL output information, which is
formatted and activated by entering one of
the following CODES for Parameter no. 2.

CODE

OPTIONS

00

Output value ONLY

01

Output value with TIME

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

2

Repetitions

02:

2

Time of maximum
(optional)

03:

4

Starting input location no.

Outputs Generated: 1 for each input location
(plus 1 with time of max. option)

*** 74 MINIMUM ***

FUNCTION
Operating in the same manner as Program 73,
this instruction is used for storing the MINIMUM
value (for each input location specified) over a
given output interval.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

2

Repetitions

02:

2

Time of minimum
(optional)

03:

4

Starting input location no.

Outputs Generated: 1 for each input location
(plus 1 with time of min. option)

*** 84 DATA TABLE ***

FUNCTION
Instruction 84 is used to define a table of final
storage data. New records of data are stored in
the table based on time (interval data) or when
a user flag (CR10X flags 1-8) is set (event
data). Time based output intervals are
specified in seconds. Fractional values may be
used following the same rules that apply for the
table scan rate.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

FP

Time into interval (Seconds)

02:

FP

Time interval (Seconds)
0 = Store new record
each time.
-a = Store if user flag
"a" is set (a=1..8)

03:

FP

Number of records in table
0 = automatically allocates
number of records.
If 0 and parameter 2 = -a
(event driven) or if 0 and
parameter 2 = 0 then
allocates size as if a 1
second output table
-x = redirect to input loc x

Parameter 1 specifies how many seconds into
the interval, specified in parameter 2, data will
be output to final storage. If the output is event
driven, enter a 0 for parameter 1.

Parameter 2 specifies the output interval
(seconds) for the table. If output is determined
by a flag, -a should be used, ('a' is the flag to
be tested). If Parameter 2 = 0, data will be
output unconditionally each time Instruction 84
is executed.

Parameter 3 specifies how many records will be
stored in the table. When the table is full,
subsequent new records will overwrite the oldest