Instruction manual

SECTION 2. PROGRAM: EDLOG
2-8 PC208W, Version 3.0, Instruction Manual
2.7.2 REPS
Many input/output and output processing
instructions have a repetitions parameter.
Repetitions (REPS) allow one programming
instruction to measure several identical sensors
or to process data from several Input Locations.
When REPS are greater than 1, the Input
Locations are assigned consecutive numbers
(e.g., with REPS of 2 and LOC of 5, the Input
Locations are 5 and 6). Each rep label is the
initial label with a “_” and the next consecutive
number.
For example: With 3 REPS and a label of
“data” the labels for each REP are: data_1,
data_2, and data_3.
Only the first location of an output processing
instruction is linked to the label. Reps of
input/output instructions and output processing
instructions are not linked.
For example:
In the following section of an EDLOG program,
the TempC and BatteryV Input Locations are
sampled with one sample (P70) instruction, with
the REPS parameter of 2.
10: Temperature (107) (P11)
01: 1 REPS
02: 2 Channel
03: 1 Excitation Channel
04: 1 Loc [TempC]
05: 1 Mult
06: 0 Offset
11: Battery, Volt (P10)
01: 2 Loc [BatteryV]
12: If time is (P92)
01: 0 minutes into interval
02: 60 minute interval
03: 10 Set high Flag 0 (output)
13: Sample (P70)
01: 2 Reps
02: 1 Loc [TempC]
NOTE: If an Input Location is inserted
between the TempC and BatteryV location,
the inserted location will be sampled instead
of BatteryV.
2.7.3 INPUT LOCATION EDITOR
Input Location labels can be entered and edited
by using the Input Location Editor (Figure 2.7-1).
To access the Input Location Editor, select
EDIT | INPUT LABELS.
The following commands are available from the
Input Location Editor Edit menu:
INSERT (<F2>) — inserts blank Input
Locations. This is used to provide space for
new input labels between existing labels. This
automatically changes the Input Location
numbers for all of the labels that are after the
inserted location.
DELETE (<F3>) — deletes the Input Location
label, flags, number of reads and writes, and
block information for a designated location
number. Whenever the datalogger program
references a deleted location label, the Input
Location's number automatically becomes 0.
MOVE (<F4>) — moves the Input Location to a
different number. This might change several
Input Location numbers.
TOGGLE MANUAL (<F5>) — allows the
programmer to manually mark a location as in
use, and to remove this manual designation.
This is used for burst mode, indexed loops, or
other situations where it's not clear to EDLOG
that the locations are being written to. Input
Locations not marked as read, write, or manual
are deleted by the optimize command.
OPTIMIZE (<F6>) — deletes Input Locations
that aren't read, written to, or marked manually.
Optimize tries to reduce the total number of
locations used by moving Input Location labels
down (in location number) to fill in unused
locations. This might change several Input
Location numbers. Any changes in location
number made by the optimize command are
reflected in the EDLOG program.
INSERT BLOCK (<F7>) – inserts a block of
Input Locations with the manual flag set. The
label for the locations is entered in the Base
Name input area. The locations are labeled in
the same manner as reps.