beautypg.com

2 displaying and toggling user flags, 3 displaying and toggling ports, 4 compiling and logging data - *0 mode – Campbell Scientific CR23X Micrologger User Manual

Page 39: 5 memory allocation, 1 internal memory, 4 compiling and logging data, Mode

background image

SECTION 1. FUNCTIONAL MODES

1-5

updated each time the instruction is executed.
When using the

6

Mode from a remote

terminal, a number (any number) must be sent
before the value shown will be updated.

Input locations can be used to store parameters
for use in computations. To store a value in a
location, or change the current value, key "C"
while monitoring the location, followed by the
desired number and "A".

If an algorithm requires parameters to be
manually modified during execution of the
Program without interruption of the Table
execution process, the

6

Mode can be

used. (If parameters will not need modification,
it is better to load them from the program using
Instruction 30.) If initial parameter values are
required to be in place before program execution
commences, use Instruction 91 at the beginning
of the program table to prevent the execution
until a flag is set (see the next section). Initial
parameter values can be entered into input
locations using the

6

Mode C command.

The flag can then be set to enable the table(s).

If the program is altered and compiled with

0

Mode, all values previously entered via

6

C

will be set to zero. To preserve

6

C

entered

values, compile with

6

after changing the

program.

1.3.2 DISPLAYING AND TOGGLING USER

FLAGS

If D is keyed (for Flags 1 to 8), or 1 is keyed (for
Flags 11 to 18) while the CR23X is displaying a
location value, the current status of the user flags
will be displayed in the following format:
"0001.0010". The characters represent the flags,
the left-most digit is Flag 1 (or 11) and right most
is Flag 8 (or 18). A "0" indicates the flag is low
and a "1" indicates the flag is high. In the above
example, Flags 4 (or 14) and 7 (or 17) are set.
To toggle a flag, simply press the corresponding
number. To return to displaying the input
location, press "A".

Entering appropriate flag tests into the program
allows manual control of program execution.
For example, to manually start the execution of
Table 2: enter Instruction 91 as the first
instruction in Table 2. The first parameter is 25
(do if Flag 5 is low), the second parameter is 0,
go to end of program table. If Flag 5 is low, all
subsequent instructions in Table 2 will be

skipped. Flag 5 can be toggled from the

6

Mode, effectively starting and stopping

the execution of Table 2.

1.3.3 DISPLAYING AND TOGGLING PORTS

NOTE: The switched 12 V port is displayed
as “control port 9.” Other port options are not
available on the switched 12 volt channel.

The status of the CR23X ports can be displayed
by hitting "0" while looking at an input location
(e.g.,

6

A

0

). Ports are displayed left

to right as SW12, C8, C7, ... , C1 (opposite to
the flags). A port configured as output can be
toggled by hitting its number while in the port
display mode. There is no effect on ports
configured as inputs.

On power up all ports are configured as inputs.
Instruction 20 is used to configure a port as an
output. Ports are also configured as outputs by
any program control commands which uses the
port as an output (pulse, set high, set low, toggle).

1.4 COMPILING AND LOGGING DATA -

0

MODE

When the

0

Mode is entered after

programming the CR23X, the program is
compiled and the display shows "Running
Table" followed by the active program table
numbers. The display is not updated after
entering

0

.

NOTE: All output ports are set low, the
timer is reset, and data values in Input and
Intermediate Storage are RESET TO ZERO
whenever the program tables are altered
and the Program is recompiled with the

0

Mode. The same is true when the

programs are compiled with

B

or

D

.

To minimize current drain, the CR23X should
be left in the

0

Mode when logging data,

and by turning off the display by pressing

#

.

1.5 MEMORY ALLOCATION -

1.5.1 INTERNAL MEMORY

When powered up, “Hello” is displayed while a
self check is performed. The total system
memory is then displayed in K bytes. The size