Instructions
UM-0085-B09 DT80 Range User Manual Page 105
RG
• schedule A data values
• schedule A alarm values
It is also possible to unload to separate files, by adding an option:
COPYD job=* archive=Y dest=a: merge=N
This will then create output files similar to the following:
A:\SN081234\JOBS\ECHIDNA\001_20100313T181008_J.CSV (J data from live store file)
A:\SN081234\JOBS\ECHIDNA\002_20100313T181008_K.CSV (K data from live store file)
A:\SN081234\JOBS\ECHIDNA\000_20091225T123409_J.CSV (J data from archive file)
A:\SN081234\JOBS\ECHIDNA\000_20091225T123409_K.CSV (K data from archive file)
A:\SN081234\JOBS\HEDGEHOG\003_20100313T181008_A.CSV (A data and alarms)
Notice: the archive file (which was originally created by merging data from J and K schedules) has now been "unmerged" into its
constituent schedules. Also notice that for data sourced from archive files, the original archive file name is preserved (apart from the file
extension, which was changed to
.CSV to suit the new file format, and the schedule suffix).
Merging works in a similar way for other output formats (DBD, fixed and free) – the various parts are combined in the
same order as for CSV.
Selecting the Unload Destination
The dest= option is used to specify where the unloaded data should go. The five broad choices are:
• display the data, i.e. return it to the active comms port on which the
COPYD command was sent. This is the
default for text-based unload formats. It is not applicable for DBD format unloads, as DBD is a binary format.
• write it to file(s) on the internal file system. This is the default for DBD format unloads.
• write it to file(s) on a USB memory device
• upload the data to an FTP server
• send the data as an attachment to an email address (DT8xM models only).
To display the data interactively, no option is required as this is the default. For example, just typing
COPYD
will unload all data for the current job to the active comms port, in CSV format.
During an unload to the active comms port, the DT80 disables real time data and alarm return, command echo and error
messages, to prevent these messages being mixed in with the unload stream. These functions will be re-enabled once
the unload completes.
Local Files
To output to a file or files in the default location on the internal file system, use dest=B:. The actual folder(s) used
depend on the
job= and merge= settings:
Job
Merge
Destination folder
job=*
merge=y
B:\JOBS
job=jobname (or omitted)
merge=y
B:\JOBS\jobname
job=*
merge=n
B:\JOBS\job1, B:\JOBS\job2, ...
job=jobname (or omitted)
merge=n
B:\JOBS\jobname
By default, each file created will have an auto-generated filename which identifies the time that the unload took place,
e.g. 001_20100910T120900.csv (The 001_ is a sequence number). For merge=n unloads, the schedule name will be
appended ot each output file, e.g. 001_20100910T120900_A.csv.
The same goes for unloading to a file on the USB memory device, except that this time you would use
dest=A:. Files
will then be written to
A:\Snserial-num\JOBS or a subfolder of this, depending on the options.
You can also specify an alternative destination folder, e.g.
COPYD dest=B:\mydir\x1\
(Note: the trailing backslash is required), in which case files will be written to B:\mydir\x1 or a subfolder of this,
depending on the options.
Finally, you can also specify an explicit destination file name, e.g.
COPYD dest=a:\mydir\data2009.dbd
For merge=N unloads the schedule name will be appended, e.g. data2009_B.dbd.