Compiling And Logging Data - ∗0 Mode; Memory Allocation - A - Campbell CR510 Operator's Manual

Datalogger
Hide thumbs Also See for CR510:
Table of Contents

Advertisement

Storage location 20, key in "*6 20 A". The ID
portion of the display shows the last 2 digits of
the location number. If the value stored in the
location being monitored is the result of a
program instruction, the value on the
keyboard/display will be the result of the most
recent scan and will be 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". This number will be
saved once the program is recompiled.
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 6C will
be set to zero. To preserve 6C entered values,
compile in the 6 Mode after changing the
program.
1.3.2 DISPLAYING AND TOGGLING USER
FLAGS
If D is keyed while the CR510 is displaying a
location value, the current status of the user flags
will be displayed in the following format:
"00:010010". The characters represent the flags,
the left-most digit is Flag 1 and right most is Flag
8. A "0" indicates the flag is clear or "low" and a
"1" indicates the flag is set or "high". In the above
example, Flags 4 and 7 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.
SECTION 1. FUNCTIONAL MODES
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
The status of the CR510 ports can be displayed
by hitting "0" while looking at an input location
(e.g., 6 A0). Ports are displayed left to right
as 0, 0, 0, 0, 0, 0, C2, C1 (exactly 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 C2
because it is configured as an input only, or on
C1 when it is configured as input only.
On power up all ports are configured as inputs.
Instruction 20 is used to configure C1 as an
output. Port C1 can also be configured as an
output 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 CR510, the program is
compiled and the display shows "LOG" 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 CR510 should be
left in the 0 Mode when logging data.

1.5 MEMORY ALLOCATION - A

1.5.1 INTERNAL MEMORY
When powered up with the keyboard display
attached, the CR10KD displays HELLO while
performing a self check. The total system
1-5

Advertisement

Table of Contents
loading

Table of Contents