2 record numbers, 3 tables and fields – Campbell Scientific TD Operating System Addendum for CR510, CR10X, and CR23X User Manual

Page 26

Advertising
background image

TD ADDENDUM—SECTION 2. INTERNAL DATA STORAGE

AD-2-2

• The output interval is not an even multiple

of the scan rate (table execution interval).

• Table execution is such that Instruction 84

is not executed each scan.

• Table overruns occur.
• Watchdog errors (E08) occur.

2.1.2 RECORD NUMBERS

In addition to a timestamp, each record has
record number. The record numbers are
unique within a data table. Record numbers are
4 byte unsigned numbers ranging from 0 to
4,294,967,296. When the datalogger program
is compiled the next record number for each
table is set to zero.

2.1.3 TABLES AND FIELDS.

There are four "built in" tables. These tables
are present when the datalogger is powered on.
These tables are named INLOCS, TIMESET,
ERRORLOG, and STATUS. The fields within
these tables are also already defined with the
exception of the INLOCS. The field names for
each of the fields is given below. TmStamp is
the label for the timestamp and RecNbr is the
label for the record number.

TimeSet
TmStamp, RecNbr, OldTime

ErrorLog
TmStamp, RecNbr, Code

Status
TmStamp, RecNbr, Battery, WatchDog,
OverRuns, InLocs, PrgmFree, Storage, Tables,
DaysFull, Holes, PrgmSig, PromSig, PromID,
ObjSrlNo

Where the labels are defined as follows:

Battery

− Indicates the datalogger battery

voltage.

WatchDog

− The number of Watchdog Errors

(E08). (Maximum 99). Section 3.10

OverRuns

− Program table overruns that have

occurred (Maximum 99). Section 1.1.1.

InLocs

− Number of Input Location that have

been allocated. Section 1.5.2

PrgmFree

− Amount (bytes) of program memory

remaining. Section 1.5.2

Storage

− Number of Final Storage Locations

available for Data Storage Tables. Section
1.5.2

Tables

− Number of user created Data Tables.

DaysFull

− Size (in days) of the Data Storage

Tables using automatic record allocation. See
Instruction 84.

Holes

− Number of missed records or holes in

all Data Storage Tables. Section 2.1.1

PrgmSig

− Signature of program memory

program. Same as *B mode first window.
Section 1.6.

PromSig

− Signature of datalogger PROM. Same

as *B mode second window. Section 1.6.

Prom ID

− Item number of PROM. Same as *B

mode seventh window. Section 1.6.

ObjSrlNo

− Object code serial number of

PROM. Same as *B mode eighth window.
Section 1.6.

Like the InLocs table, a new Status record is
always available when the datalogger is checked
for data. For this reason the Status table is usually
collected for display rather than archive.

InLocs
TmStamp, RecNbr, Flags, Ports, Loc1, Loc2,
Loc3, Loc4, Loc5, Loc6, Loc7, Loc8, Loc9

Like the Status table, a new InLocs record is
always available when the datalogger is checked
for data. For this reason these tables are usually
collected for display rather than archive.

By default only nine Input Location are labeled.
The default InLocs field labels can be replaced
with user created labels. These labels are
created with EDLOG technique for Input
Location labels. Press CTRL-L when editing a
LOC field.

When additional data tables are created with
Instruction 84, these tables and the fields they
contain can also be named by the user. The
datalogger will supply a default name for tables
and fields if they are not named. The default
names are T01, T02, for the tables and F01,
F02, etc. for the fields, numbered in the order
they appear. Edlog allows the programmer to
name the tables and fields.

Advertising