B.2.1 steps for program conversion, B.2.2 program instruction changes – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 228

Advertising
background image

Appendix B. Table-Based Dataloggers

B.2.1 Steps for Program Conversion

If you are converting a program from mixed-array to table-data format for the
same datalogger (e.g., converting a CR10X program to a CR10X-TD program)
you can edit the existing program in Edlog. If you are converting a program
from one datalogger series to another (e.g., CR10X to CR23X-TD), you may
be better off need to start the program from scratch because different
dataloggers may have very different measurements, numbers of input
terminals, and parameters for similar instructions.

As an example, to convert a mixed-array program for a CR10X to the table-

data version for the CR10X-TD (use the same “CR10X-TD” name for
converting to CR10X-PB):

1. Open the CSI file in Edlog.

2. The first line of the file will read

;{CR10X}

Change this line to

;{CR10X-TD}

3. Review all of the instructions provided in the section below. If any of

these are included in your program, format them as a comment or delete
them from the program.

4. Save the file to a new file name, but do not compile the file when

prompted.

5. Open the newly created file in Edlog. It will be opened using the CR10X-

TD datalogger template instead of the CR10X. Make any changes
necessary to replace the commented or deleted instructions.

6. Save and compile the program, correcting any errors that may be found by

the compiler.

B.2.2 Program Instruction Changes

Several programming instructions have changed or are not used in table-based
datalogger programs. Make sure you “comment out” any of these instructions
before you try to convert the mixed-array program. These are listed below:

• Check any instructions that may set the Output Flag (Flag 0) high or low

by using the Command Code Options. The output flag is not used in table-
based programming. Instructions that may include reference to the output
flag are: P83, If Case; P86, Do; P88, If (X< = > Y); P89, If (X< = > F);
P91, If Port/Flag; and P92, If Time.

If any of these instructions set the output flag high, the instruction can be
replaced with Instruction 84, Data Table. Instruction 84 is used to define a
table of final storage data. New records of data are stored in the table

B-4

Advertising