Functional Modes; Setting And Displaying The Clock - *5 - Campbell 21X Operator's Manual

Micrologger
Table of Contents

Advertisement

SECTION
1.
FUNCTIONAL MODES
1.1.3 TABLE
PRIORITY/INTERRUPTS
Table
1
execution has priority over Table
2.
lf
Table
2 is being executed when it
is
time to
execute
Table
1,
Table 2 will
be interrupted.
After
Table
1 is
completed, Table
2
resumes at
the point of
interruption.
lf
the
execution interval
of
Table 2 coincides with
Table
1,
Table
1
will
be executed first,
followed
by
Table
2.
Interrupts
by
Table
1
are not allowed
in
the
middle of a measurement or while output
to
Final Storage is in process (the
Output Flag, flag
0, is set
high). The
interrupt occurs as soon as
the measurement
is
completed or flag
0
is
set
low.
1.1.4
COMPILING
A
PROGRAM
When
a program
is
first entered,
or
if
any
changes are made
in
the
*1
,*2,*3,
*4, *A, or *C
Modes, the
program must
be
compiled before
it
starts running. The compile function checks for
programming errors and
optimizes program
information for
execution.
lf errors are detected,
the appropriate error
codes are indicated on the
Display (Section
3.10).
The compile
function
is
executed when
the *0
,
*6, or *B Modes are
entered and prior to saving a program listing
in
the *D
Mode.
The compile
function
is
only
executed a{ter
a program change has been
made; any subsequent use of any
of
these
Modes
does not cause compiling.
When the *0, *B,
or *D Mode is used to compile,
all output ports and flags are set low, the
timer
(lnstruction
26) is reset, and data values
contained in Input
and Intermediate Storage are
RESET TO ZERO.
When
the *6 Mode is used to compile data
values contained
in Input Storage, the state of
flags,
control ports, and the timer are
UNALTERED. Compiling always zeros
Intermediate Storage.
1.2
SETTING AND DISPLAYING THE
CLOCK.
*5 MODE
The
"5 Mode is used to display time
or
change
the year, day of year,
or
time.
When
*5
is
pressed, the current
time
is
displayed. The time
parameters displayed
in
the *5 Mode are given
in
Table
1.2-1.
1-2
The 21X powers-up
with hours and minutes set
to
0
and
the day and year set for the date that
the PROMs were first released by Campbell
Scientific. To set the year, day,
or
time, enter
the
*5 Mode and advance to
display
the
appropriate
value.
Key
in
the desired number
and enter the value by pressing
A.
When
a
value
for hours and minutes
is
entered,
the
seconds are set to zero and current
time
is
again displayed.,
To exit the "5 Mode, press
*.
When the
time
is
changed,
a partial recompile
i
done automatically
to resynchronize program
execution
with real
time. The
resynchronization
process can change
the interval of a pulse
rate
measurements
for one execution interval as
explained
in
the PULSE COUNT Instruction
3
Section
9.
TABLE 1.2-1. Sequence of Time
in *5 Mode
Key
*5
A
A
A
Display
ID:DATA
:HH:MM:SS
05:XX
05:XXXX
05:HH:MM:
Description
Display current time
Display/enter
year
Display/enter day of
hours:
1.3
DISPLAYING AND ALTERING
IN
MEMORY OR FLAGS
. *6
MODE
The
*6 Mode is used to display
or
change lnput
Storage values and to toggle and display user
flags.
lf
the *6 Mode
is
entered immediately
following any changes in program
tables
or
the
*4 Mode,
the programs will be compiled and
execution
will begin.
When the *6 Mode
is used to compile data
values contained
in Input Storage, the state
of
flags, control ports, and the timer are
UNALTERED. Compiling always zeros
Intermediate Storage.

Advertisement

Table of Contents
loading

Table of Contents