beautypg.com

Changing values in *4 table, 5 compiling a program – Campbell Scientific CR10X Measurement and Control System User Manual

Page 39

background image

SECTION 1. FUNCTIONAL MODES

1-3

not support the

∗4 mode. Please contact

Campbell Scientific for upgrade details.

Any program parameter or execution interval
can be marked for inclusion in the table, as
illustrated below.

PROGRAM

*

Table 1 Program

01:

0.0

Execution Interval
(seconds) @@0

01:

Volts (SE) (P1)
1:

1

Reps

2:

1

±2.5 mV Slow Range

3:

1

SE Channel

4:

1

Loc [ _________ ]

5:

1

Mult @@1

6:

0

Offset @@2

In the above example,

∗4 location 0 is assigned

to the program table execution interval, and
locations 1 and 2 to the multiplier and offset of
the measurement instruction. Note that a
default execution interval of zero means the
program will not execute until an alternative
interval is entered in location 00 of the

∗4 mode.

A default multiplier and offset of 1 and 0 means
that the measurement value is in units of
millivolts. A different multiplier and offset can
be entered in

∗4 locations 1 and 2, respectively.

A

∗4 location can be used in only one program

parameter. For example,

∗4 locations 0, 1, and

2 used in the example cannot be reused in
another instruction in the same program.

If the

∗4 feature is enabled in EDLOG when

printing a program to a printer or disk file, the

∗4

list is printed at the end of the file.

Once the EDLOG created program has been
sent to the CR10X, it can be saved in the Flash
memory program storage area using the

∗D

Mode (Section 1.8).

CHANGING VALUES IN

∗∗∗∗4 TABLE

Enter the

∗4 Mode by keying "∗4"; "04:00" is

then displayed. At this point it is possible to
jump to any valid

∗4 location by keying the

desired location number and pressing the A
key. For example, when the display shows
04:00 and the desired location is 80, key in the
number 80, press the A key and the display will
show "80:XXXXX." where XXXXX. is the value
stored in location 80. Pressing the "A" key
advances to the next

∗4 location, and the "B"

key backs up to the previous location. If a

∗4

location is not assigned in the datalogger
program, it can not be displayed in the

∗4 mode.

To enter a value in a

∗4 location, advance to the

desired location, key in the number and enter it
by pressing the "A" key. The value is not
entered if the "A" key is not pressed.

Entering a new value causes the datalogger to
stop logging. Logging resumes when the
program is compiled. Upon compiling, all
current

∗4 values are incorporated into the

program. For this reason, whenever changes
are made in the

∗4 mode, make sure that all ∗4

values are correct before exiting the

∗4 mode.

Removing or adding an instruction to a program
residing in the datalogger disables the

∗4 mode.

An instruction parameter may be edited without
any adverse affect. If the

∗4 mode is disabled,

it may be reactivated by downloading the
program to the datalogger or, if the program
was saved to Flash storage, retrieving the
program from the stored program area.

The

∗C mode (Section 1.7) may be used to

secure the datalogger program and the

∗4

mode entries. The lowest level of security
prevents access to the

∗1, ∗2, and ∗3 modes.

Higher levels of security block

∗4.

The CR10X will not respond to the

∗4 command

if any of the following conditions exist.

• the program that was downloaded does not

contain any

∗4 assignments.

• a program that was downloaded has since

been hand edited.

• Security is blocking access to ∗4.

1.1.5 COMPILING A PROGRAM

When a program is first loaded, 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 use during program
execution. If 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