beautypg.com

2 setting and displaying the clock - *5 mode, 1 displaying and altering input storage – Campbell Scientific CR10X Measurement and Control System User Manual

Page 40

background image

SECTION 1. FUNCTIONAL MODES

1-4

entered and prior to saving a program listing in
the

∗D Mode. The compile function is only

executed after a program change has been
made and any subsequent use of any of these
modes will return to the mode without
recompiling.

When the

∗0 or ∗B Mode is used to compile, all

output ports and flags are set low, the timer 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 (Instruction
26) are unaltered. Compiling always zeros
Intermediate Storage.

1.2 SETTING AND DISPLAYING THE

CLOCK -

∗∗∗∗5 MODE

The

∗5 Mode is used to display or set time.

When "

∗5" is entered, time is displayed. It is

updated approximately once a second or longer
depending on the rate and degree of data
collection and processing taking place. The
sequence of time parameters displayed in the
∗5 Mode is given in Table 1.2-1.

To set the year, day, or hours and minutes,
enter the

∗5 Mode and advance to display the

appropriate value. Key in the desired number
and enter the value by keying "A". When a new
value for hours and minutes is entered, the
seconds are set to zero and current time is
again displayed. To exit the

∗5 Mode, key "∗"

and the mode you wish to enter.

When the time is changed, a partial recompile
is done automatically to synchronize the
program with real time.

Changing time affects the output and execution
intervals in which time is changed. Because
time can only be set with a 1 second resolution,
execution intervals of 1 second or less remain
constant. Averaged values will still be accurate,
though the interval may have a different number
of samples than normal. Totalized values will
reflect the different number of samples. The
pulse count instruction will use the previous
interval's value if an option has been selected to
discard odd intervals, otherwise it will use the
count accumulated in the interval.

TABLE 1.2-1. Sequence of Time

Parameters in

∗∗∗∗5 Mode

Display

Key

ID:DATA

Description

5

:HH:MM:SS

Display current time

A

05:XXXX

Display/enter year

A

05:XXXX

Display/enter day of year
1-365(366)

A

05:HH:MM:

Display/enter
hours:minutes

1.3 DISPLAYING/ALTERING INPUT

MEMORY, FLAGS, AND PORTS -

∗∗∗∗6

MODE

The

∗6 Mode is used to display and/or change

Input Storage values and to toggle and display
user flags and ports. If the

∗6 Mode is entered

immediately following any changes in program
tables, the program will be compiled and run.

NOTE: Input Storage data and the state of
flags, control ports, and the timer
(Instruction 26) are UNALTERED
whenever program tables are altered and
recompiled with the

∗6 Mode. Compiling

always zeros Intermediate Storage.

TABLE 1.3-1.

∗∗∗∗6 Mode Commands

Key

Action

A

Advance to next input location or
enter new value

B

Back-up to previous location

C

Change value in input location
(followed by keyed in value, then "A")

D

Display/alter user flags

0

Display/alter ports

#

Display current location and allow a

location number to be keyed in,
followed by "A" to jump to that
location

1.3.1 DISPLAYING AND ALTERING INPUT

STORAGE

When "

∗6" is entered, the keyboard/display will

read "06:0000". One can advance to view the
value stored in input location 1 by keying "A".
To go directly to a specific location, key in the
location number before keying "A". For
example, to view the value contained in Input