 
 
DS1 Nominal Braille Flyby Sequence EK file
===========================================================================
 
     Created by Boris Semenov, October 1, 2003
 
 
Abstract
--------------------------------------------------------
 
     This EK file is a merge of the final nominal Braille flyby
     sequence EK file, ``fullmerge.nominal.model.990727.bes'', and the
     DS1 command dictionary EK file, ``ds1_cmdict_m3c8a.bdb''.
 
     The sequence EK file was made using SPICE utility program PEF2EK
     by converting complete integrated DS1 Predicted Events File (PEF
     file) for Braille flyby, ``fullmerge.nominal.model.990727.pef'',
     created by DS1 SEQ team at JPL, in to SPICE EK sequence format.
     The header of the PEF file is provided in the Appendix 1 of these
     comments.
 
     The dictionary EK file was created from original DS1 Command
     Dictionary Language (CDL) file ``ds1m3c8a.cdl''. The header of the
     CDL file containing version and history of updates is provided in
     the Appendix 2 of these comments.
 
 
Contents
--------------------------------------------------------
 
     The spacecraft sequence portion of this file contains complete set
     of predicted command and spacecraft subsystem status information
     along with notes found in the original PEF file, from which it was
     generated.
 
     The command dictionary portion of this file contains most of the
     descriptive information found in the original document. The
     descriptions of the commands and parameters, parameter ranges,
     types and default values are the types of the information that
     were copied from there. Some of the commands in the dictionary had
     arguments containing lists with multiple parameters. Because such
     commands did not ``fit'' into the PEF-based EK design, their
     arguments were compressed into a single argument called ``list''.
     The complete set of these altered commands is provided in the
     Appendix 3.
 
 
Usage
--------------------------------------------------------
 
     The data in the file may accessed via SPICE Toolkit EK subroutines
     or examined using SPICE utility program INSPEKT. An INSPEKT macros
     configuration example, showing how to set up a set of short-cut
     command implementing various EK queries, is provided in the
     Appendix 4 of these comments.
 
 
Sequence Tables Structure
--------------------------------------------------------
 
     The sequence portion of this file consists of three tables having
     the following structure:
 
        Command data table -- DS1_CMD:
        ------------------------------
 
           TIME              TIME
 
           COMMAND           CHARACTER*(*)
 
           PARAMETER_NAME    CHARACTER*(*)
 
           CHR_VALUE         CHARACTER*(*)
 
           DP_VALUE          DOUBLE PRECISION
 
           INT_VALUE         INTEGER
 
           VALUE_FLAG        CHARACTER*(*)
 
           ENTRY_ID          CHARACTER*(*)
 
           PARAMETER_INDEX   INTEGER
 
           LONG_VALUE        CHARACTER*(*)(VSA)
 
        Status information data table -- DS1_STATUS:
        --------------------------------------------
 
           TIME              TIME
 
           SUBSYSTEM         CHARACTER*(*)
 
           PARAMETER_NAME    CHARACTER*(*)
 
           CHR_VALUE         CHARACTER*(*)
 
           DP_VALUE          DOUBLE PRECISION
 
           INT_VALUE         INTEGER
 
           VALUE_FLAG        CHARACTER*(*)
 
           ENTRY_ID          CHARACTER*(*)
 
           PARAMETER_INDEX   INTEGER
 
        Notes data table -- DS1_NOTE:
        -----------------------------
 
           TIME              TIME
 
           ATTRIBUTE_NAME    CHARACTER*(*)
 
           CHR_VALUE         CHARACTER*(*)
 
           ENTRY_ID          CHARACTER*(*)
 
           ATTRIBUTE_INDEX   INTEGER
 
 
     The columns of these tables are defined are as follows:
 
           TIME              time of the entry from PEF file.
 
           COMMAND           command name. Command names are taken from a
                             command dictionary.
 
           SUBSYSTEM         subsystem name. Subsystem names are taken from
                             corresponding record of PEF file.
 
           PARAMETER_NAME    parameter name. Parameter names are taken from
                             the command dictionary for commands and from
                             corresponding PEF record for statuses.
 
           ATTRIBUTE_NAME    attribute name. Attribute names are set to
                             some fixed values defined by PEF specification
                             for notes.
 
           CHR_VALUE         value of the parameter or attribute in a
                             character string.
 
           DP_VALUE          value of the parameter or attribute in a DP
                             number (if character string could be parsed as
                             a DP number)
 
           INT_VALUE         value of the parameter or attribute in a INT
                             number (if character string could be parsed as
                             an INT number).
 
           VALUE_FLAG        single character flag showing which values are
                             present for current parameter or attribute. It
                             can be set to 'C', 'D' or 'I' for statuses
                             and to 'C', 'D', 'I' or 'A' for commands.
                             These values stand for: 'C' -- only character
                             value is available. 'D' -- character and DP
                             values are available. 'I' -- character, DP and
                             INT values are available. 'A' -- only "long
                             value" is available.
 
           ENTRY_ID          character string which has the same value for
                             all EK table records representing a single
                             command, subsystem status or note record from
                             PEF file. Constructed as <PEF SEQ ID>:<CMD line
                             number in PEF file>. If <PEF SEQ ID> string
                             wasn't available from PEF file header, it's
                             replaced with some random string that will be
                             the same for all records from a single PEF file.
 
           PARAMETER_INDEX   index of the parameter in a command or status
                             record from PEF file. For commands this index
                             is the same as the index stored in the command
                             dictionary.
 
           ATTRIBUTE_INDEX   index of the attribute in an note record from
                             PEF file.
 
           LONG_VALUE        character string array containing a
                             "80-characters" wrapped long character value
                             that couldn't fit into CHR_VALUE. To get real
                             parameter value from this array all array
                             elements must be concatenated together.
 
 
     An original PEF record of a particular type is represented by a
     few records in the corresponding data table in this EK file. Value
     of the ENTRY_ID column the same for all records which were
     generated from a single PEF record and, therefore, it can be used
     to group them together.
 
     The values in COMMAND, PARAMETER_NAME, and PARAMETER_INDEX columns
     in this file are consistent with the values in the same columns in
     the corresponding dictionary table and therefore sequence and
     dictionary tables can be joined in EK queries using these columns
     as a keys.
 
 
Command Dictionary Table Structure.
--------------------------------------------------------
 
     The command dictionary portion of this file consists of a single
     table with the following structure:
 
        Command dictionary data table -- DS1_COMMANDS:
        ----------------------------------------------
 
           SUBSYSTEM         CH*(32)      name of the subsystem
 
           COMMAND           CH*(32)      name of the command
 
           PARAMETER_NAME    CH*(32)      name of the parameter
 
           PARAMETER_INDEX   INT          index of the parameter in the
                                          command sequence
 
           PARAMETER_TYPE    CH*(32)      parameter type
 
           PARAMETER_RANGE   CH*(80)VSY   parameter range
 
           DESCRIPTION       CH*(80)VSY   parameter/command/subsystem
                                          description
 
     Each command in this dictionary EK file is represented by a few
     records: one per parameter plus an additional record for the
     command itself (``general description record''.)
 
     The values in COMMAND, PARAMETER_NAME and PARAMETER_INDEX columns
     in this file are consistent with the values in the same columns in
     the command data tables (DS1_CMD) of the sequence table and
     therefore these tables can be joined in EK queries using these
     columns as a keys.
 
 
Contact Information
--------------------------------------------------------
 
     If you have any questions regarding information or use of this file
     contact
 
        Boris V. Semenov, NAIF/JPL
        JPL MS 301-125L
        (818)-354-8136
        Boris.Semenov@jpl.nasa.gov
 
 
Appendix 1: SDFU and Config Record of the Original PEF File.
===========================================================================
 
CCSD3ZF0000100000001NJPL3KS0L015$$MARK$$;
MISSION_NAME = DEEP_SPACE_1;
SPACECRAFT_NAME = DEEP_SPACE_1;
DATA_SET_ID = SEQ_PREDICTED_EVENTS;
FILE_NAME = fullmerge.nominal.model.990727.pef;
APPLICABLE_START_TIME = 1999-207T11:00:00.000;
APPLICABLE_STOP_TIME = 1999-214T05:10:39.000;
PRODUCT_CREATION_TIME = 1999-208T20:03:39;
PRODUCER_ID = SEQ;
SEQ_ID = fullmerge.nominal.model.990727;
SOURCE_FILE_NAME = fullmerge.nominal.model.990727.sasf;
HOST_ID = ds1cgen;
CCSD3RE00000$$MARK$$NJPL3IF0M01200000001;
$$DS1       PREDICTED EVENTS FILE
************************************************************
*PROJECT    DS1
*SPACECRAFT 30
*OPERATOR   Curt Eggemeyer,230-214B,4-6592
*DATE       Tue Jul 27 20:03:39 1999
*SEQ_GEN    V23.2 Mon Jan 25 14:35:58 PST 1999
*BEGIN      1999-207T11:00:00.000
*CUTOFF     1999-214T05:10:39.000
*TITLE      JPL
*Input files used:
*File Type  Last modified             File name
*SC_MODEL   Mon Jun  7 22:25:50 1999  /afs/jpl.nasa.gov/group/ds1g_upl/
                                      V_03.01.99/seq/smf/ds1m6c1c.smf
*CATALOG    Tue May 11 22:08:34 1999  /afs/jpl.nasa.gov/group/ds1g_upl/
                                      V_03.01.99/seq/satf/ds1m6c1a.satf
*RULES      Tue May 11 22:08:34 1999  /afs/jpl.nasa.gov/group/ds1g_upl/
                                      V_03.01.99/seq/fmrf/ds1m6c1a.fmrf
*LEGENDS    Mon Oct 12 22:47:27 1998  /afs/jpl.nasa.gov/group/ds1g_upl/
                                      V_03.01.99/seq/legend/ds1b.legend
*CONTEXT    Tue Mar 30 17:39:33 1999  /afs/jpl.nasa.gov/group/ds1g_upl/
                                      V_03.01.99/seq/cvf/ds1m4c2a.cvf
*CONTEXT    Mon Oct 12 22:47:25 1998  /afs/jpl.nasa.gov/group/ds1g_upl/
                                      V_03.01.99/seq/cvf/msop.soe.cvf
*CONTEXT    Mon Oct 12 22:49:02 1998  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                                      pss_data_path/dsn_config/msop.dsn.cvf
*CONTEXT    Thu Oct 22 14:35:22 1998  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                               pss_data_path/dsn_config/soe_defaults_30.cvf
*CONTEXT    Mon Oct 12 22:49:01 1998  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                               pss_data_path/dsn_config/dsn_config.cvf
*CLOCK      Thu Feb 25 21:09:49 1999  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                               pss_data_path/sclk/ds1m0d.sclk
*LIGHTTIME  Mon Mar 29 21:59:10 1999  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                               pss_data_path/ltf/ltime.990304.ltf
*VIEW_FD    Mon Oct 12 22:49:15 1998  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                               pss_data_path/vue/view10.fd
*VIEWPERIOD Mon Mar 29 21:59:25 1999  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                               pss_data_path/vue/DS1_99064_99365.VP
*SEQUENCE   Tue Jul 27 20:03:40 1999  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                    ast/encounter/mergeprod/fullmerge.nominal.model.990727.s
*CONDITIONS Fri Jul 23 17:19:28 1999  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                    ast/encounter/mergeprod/E1A.Merged.990627.model.fincon
*BG_SEQUENCETue Jul 27 20:03:17 1999  /afs/jpl.nasa.gov/group/ds1fet/cm/seq/
                    ast/encounter/mergeprod/fullmerge.nominal.model.990727_c
*ALLOCATION
*DEFINITION
*DEP_CONTEXT
*EVENTS
*MASK
*OPTG_FD
*GEOMETRY
*REDUNDANT
*REQUESTS
*RESOLUTION
*SCRIPT
*TELEMETRY
*TYPEDEF
************************************************************
$$EOH
 
 
Appendix 2: Original CDL File Header
===========================================================================
 
!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%!
!%                                                                           %!
!%                         DEEP_SPACE_1 COMMAND DATABASE                     %!
!%===========================================================================%!
!%                                                                           %!
!%  DS1M1C1:     M1 Version, Rev A - 07/22/97                                %!
!%                                                                           %!
!%  DS1M1C3:     M1C3 Version - 08/19/97                                     %!
!%               Note: Length parameter overridden by word_count except for  %!
!%                     OUTPUT_DEVICE and OUTPUT_IMMEDIATE                    %!
!%                                                                           %!
!%  DS1M1C3A:    Update stem LOAD_DPT                                        %!
!%                                                                           %!
!%  DS1M1C3B:    Update TC cmds                                              %!
!%                                                                           %!
!%  DS1M1C3C:    Update all APID range to go up to 55                        %!
!%                                                                           %!
!%  DS1M1C4:     Version 09/09/97                                            %!
!%                                                                           %!
!%  DS1M1C5:     Version 09/23/97                                            %!
!%                                                                           %!
!%  DS1M1C5A:    Add OUTPUT_DEV_APD, OUTPUT_DEVHX_APD,                       %!
!%                   OUTPUT_IMM_APD, OUTPUT_IMMHX_APD                        %!
!%               Update MICAS_COMPRESS and SDST_TEST_MODE                    %!
!%                                                                           %!
!%  DS1M2C1:     Version 10/22/97                                            %!
!%                                                                           %!
!%  DS1M2C2:     Version 11/11/97                                            %!
!%                                                                           %!
!%  DS1M2C2A:    Fix PEP_MODE                                                %!
!%                                                                           %!
!%  DS1M2C3:     Version 12/09/97                                            %!
!%                                                                           %!
!%  DS1M2C3A:    Last minute changes                                         %!
!%                                                                           %!
!%  DS1M2C4:     Version 01/13/98                                            %!
!%                                                                           %!
!%  DS1M3C1:     Version 02/18/98                                            %!
!%                                                                           %!
!%  DS1M3C2:     Version 03/03/98                                            %!
!%                                                                           %!
!%  DS1M3C3:     Version 03/30/98                                            %!
!%                                                                           %!
!%  DS1M3C3A:    Fix typo opcode for stem FP_PSET_CTRERR_R (0254)            %!
!%                                                                           %!
!%  DS1M3C5:     Version 05/05/98                                            %!
!%                                                                           %!
!%  DS1M3C6:     Skipped                                                     %!
!%                                                                           %!
!%  DS1M3C7:     Version 06/25/98                                            %!
!%                                                                           %!
!%  DS1M3C7A:    Last minute change to stem FSW_LOAD_ORDER                   %!
!%                                                                           %!
!%  DS1M3C7B:    07/02/98 (ACS updates: ACS_ACM_BVEC_TBL, ACS_ACM_BVEC_TWK,  %!
!%               ACS_ACM_EXECTURN, ACS_CMT_DEFN_CON, ACS_CMT_DEFN_FAM,       %!
!%               and NAV_ACM_INFOTURN)                                       %!
!%                                                                           %!
!%  DS1M3C7C:    07/10/98 changed 'L' to 'N' for SET_CHNL_PARM32I,           %!
!%               SET_CHNL_PARM32F,SETCHNL_PARMS08,SET_CHNL_PARMS16, and      %!
!%               SET_CHNL_PARMS64 of LOOKUP ARGUMENT: ltr. (Per C. Eggemeyer %!
!%               e-mail on 7/9/98 "Error in 25th Hour DS1 Database M3C7B")   %!
!%                                                                           %!
!%  DS1M3C7D:    07/17/98 changed 'L' to 'N' of ARGUMENT msrltr for          %!
!%               DMP_EHA_INFO_SEL and SAVSEL_HL_PRMS. (per C. Eggemeyer      %!
!%               email on 7/17/98 "DS1M3C7D command dictionary changes")     %!
!%                                                                           %!
!%  DS1M3C7E     07/24/98 changed IPS_UPD_DATABASE, NAV_SET_EM_EPHEM,        %!
!%               FP_FAULT_OP, FP_FLT_RES_MAP, FP_SYM_FLT_MAP.  Added         %!
!%               FP_PSET_BTFMON_M. (Per C. Eggemeyer e-mail on 7/23/98       %!
!%               "Need fast command dictionary changes to DS1M3C7D")         %!
!%                                                                           %!
!%  DS1M3C8:     Version 08/13/98                                            %!
!%                                                                           %!
!%  DS1M3C8A:    11/30/98. Fix PEP_AQ_DATA_FORM and PEP_AQ_SET               %!
!%               per memo from J. Hanley to E. Zamani                        %!
!%                                                                           %!
!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%!
 
 
Appendix 3: Commands with Lists Containing Multiple Parameters
===========================================================================
 
     In these commands multiple parameters were merged into a single
     parameter ``list'' because source CDL file contained bracketed
     REPEAT clause(s):
 
        ACKNOWLEDGE_PKTS
        ACS_CMT_DEFN_FAM
        ACS_PSET_DOUBLE
        ACS_PSET_FLOAT
        ACS_PSET_INTEGER
        APE_PSET_DOUBLE
        APE_PSET_FLOAT
        APE_PSET_INTEGER
        AUX_ACK_PACKETS
        BTF_MEM_WRITE
        DMP_EHA_INFO_SEL
        DSEU_CONFIG
        DSEU_FMP_CONFIG
        DSEU_GENERIC_CMD
        GENERIC_CMD
        IPS_DCIU_CMD
        IPS_LOAD_CODE
        IPS_PRESS_MCL_LD
        IPS_PRESS_RCL_LD
        LOAD_DPT
        LPE_GENERIC_CMD
        MICAS_EXPOSE_ALT
        MICAS_EXPTRN_ALT
        NAV_CHANGE_MODE
        OUTPUT_DEVHX_APD
        OUTPUT_DEVICE
        OUTPUT_DEV_APD
        OUTPUT_DEV_HEX
        OUTPUT_IMMEDIATE
        OUTPUT_IMMED_HEX
        OUTPUT_IMMHX_APD
        OUTPUT_IMM_APD
        PEP_ALG_COMPRESS
        PEP_ALG_DTC
        PEP_ALG_PK_AVOID
        PEP_ALG_PK_FIND
        PEP_MEM_BLOCK
        PEP_MODE
        PEP_SEQ_BLOCK
        PEP_SEQ_CTL
        PEP_STIM
        PEP_WRAP
        RANGE_RETRANSMIT
        SDST_GENERIC_CMD
        SET_CHNL_PARM32F
        SET_CHNL_PARM32I
        SET_CHNL_PARMS08
        SET_CHNL_PARMS16
        SET_CHNL_PARMS64
        SRU_CALOPS_UPDAT
 
 
Appendix 4: INSPEKT Macros Setup Example
===========================================================================
 
;
; DS1 startup file for SPICE's Inspekt utility program.
; by Boris Semenov, July 23, 1999.
;
; This file can be loaded into INSPEKT using two ways:
;
;    1) by starting INSPEKT and typing ``start ds1.insp;'' on the INSPEKT's
;       command line, like this:
;
;          % inspekt
;          ...
;          Inspekt> start ds1.insp;
;          ...
;
;    2) by providing the file name after ``-start'' switch when starting
;       INSPEKT:
;
;          % inspekt -start ds1.insp
;
; In either case INSPEKT will prompt for LSK and EK file names and, after
; loading the files and ingesting macros, will display its prompt, on
; the macro names can be entered.
;
; The following DS1 science instrument specific  macros are defined
; in this startup file:
;
;   LIST_MICAS_IMAGES
;   SHOW_MICAS_COMMANDS
;
; The following generic macros are defined in this startup file:
;
;   SHOW_COMMANDS_OVER_TIME
;   SHOW_COMMANDS_FOR_SUBSYSTEM
;   SHOW_COMMANDS
;   SHOW_COMMANDS_WITH_DESC
;   SHOW_PARAMETER_VALUES
;   SHOW_PARAMETER_LONG_VALUES
;   SHOW_PARAMETERS_WITH_DESC
;   COMMAND_DESCRIPTION
;   PARAMETERS_DESCRIPTION
;   SHOW_STATUS
;   SHOW_STATUS_AT_TIME
;   SHOW_NOTES
;   SHOW_NOTES_OVER_TIME
;
;##################################################################
;
;  Load data and ancillary files.
;
load leapseconds LSK_FILE?;
load ek EK_FILE?;
;
set format tabular;
set page width 132;
;
;  Setups for command, status and dictionary tables.
;
set default time format YYYY MON DD HR:MN:SC.###;
;
;##################################################################
;
;  SET_WIDTH            sets given column width.
;
define set_width set column column_name? width width_?;
;
;##################################################################
;
;  cmd_table            contains name of the PEF data table.
;  DICTIONARY_TABLE     contains name of the command dictionary table.
;
define cmd_table ds1_cmd;
define status_table ds1_status;
define note_table ds1_note;
define dictionary_table ds1_commands;
;
;##################################################################
;
;  LIST_MICAS_IMAGES
;
define list_micas_images select time, command, parameter_name, chr_value
from cmd_table where command like 'MICAS_EXP*' and parameter_name eq
'DETECTOR' order by entry_id, parameter_index;
define lmi list_micas_images;
;
;##################################################################
;
;  SHOW_MICAS_COMMANDS
;
define show_micas_commands select time, command, parameter_name, chr_value
from cmd_table where command like 'MICAS*' order by entry_id, parameter_index;
define smc show_micas_commands;
;
;##################################################################
;
;  SHOW_COMMANDS_OVER_TIME   finds all commands in PEF table
;                       within provided time borders and displays
;                       them ordered by time.
;
define show_commands_over_time select entry_id, time, command from cmd_table
where parameter_index eq 0 and time between START_TIME? and END_TIME?
order by time;
define scot show_commands_over_time;
;
;##################################################################
;
;  SHOW_COMMANDS_FOR_SUBSYSTEM   find all command in PEF table for
;                       some subsystem defined in dictionary table
;                       and displays these commands in timely ordered.
;
define show_commands_for_subsystem select a.entry_id, a.time, a.command
from cmd_table a, dictionary_table b where a.parameter_index eq 0 and
b.parameter_index eq 0 and a.command eq b.command and
b.subsystem like SUBSYSTEM? order by a.time;
define scfs show_commands_for_subsystem;
;
;##################################################################
;
;  SHOW_ACS_MODES
;
define show_acs_modes select entry_id, time, command, parameter_name,
chr_value from cmd_table where parameter_index ge 1
and command eq 'ACS_MODE_SELECT' order by time;
define sam show_acs_modes;
;
;##################################################################
;
;  SHOW_COMMANDS         finds all appearances of the particular
;                       command in PEF table and displays them time
;                       ordered
;
define show_commands select entry_id, time, command from cmd_table
where parameter_index eq 0 and command like COMMAND_NAME? order by time;
define sc show_commands;
;
;##################################################################
;
;  SHOW_COMMANDS_WITH_DESC  finds all appearances of the particular
;                       command in PEF table and displays them time
;                       ordered. Also provides command descriptions
;                       for each of them.
;
define show_commands_with_desc select a.entry_id, a.time, a.command,
b.description from cmd_table a, dictionary_table b where a.parameter_index
eq 0 and b.parameter_index eq 0 and a.command eq b.command and a.command
like COMMAND_NAME? order by time;
define scwd show_commands_with_desc;
;
;##################################################################
;
;  SHOW_PARAMETER_VALUES displays index ordered values of all
;                       parameters for particular command record from
;                       PEF table.
;
define show_parameter_values select time, command, parameter_name,
chr_value from cmd_table where entry_id like ENTRY_ID? order by
parameter_index;
define spv show_parameter_values;
;
;##################################################################
;
;  SHOW_PARAMETER_LONG_VALUES  displays index ordered short and long
;                       values of all parameters for particular
;                       command record from PEF table.
;
define show_parameter_long_values select time, command, parameter_name,
chr_value, long_value from cmd_table where entry_id like ENTRY_ID? order
by parameter_index;
define splv show_all_parameter_values;
;
;##################################################################
;
;  SHOW_PARAMETERS_WITH_DESC  displays index ordered values
;                       of all parameters for particular command
;                       record from PEF table. The parameter
;                       descriptions from dictionary table displayed
;                       along with PEF data.
;
define show_parameters_with_desc select a.command, a.parameter_name,
a.chr_value, b.description from cmd_table a, dictionary_table b where
a.entry_id like ENTRY_ID? and a.command eq b.command and a.parameter_name
eq b.parameter_name order by a.parameter_index;
define spwd show_parameters_with_desc;
;
;##################################################################
;
;  COMMAND_DESCRIPTION  displays command description from dictionary
;                       table.
;
define command_description select command, description
from dictionary_table where command like COMMAND? and parameter_index eq 0;
define cd command_description;
;
;##################################################################
;
;  PARAMETERS_DESCRIPTION  displays parameter descriptions for
;                       particular command from dictionary table.
;
define parameters_description select command, parameter_name, description
from dictionary_table where command like COMMAND? order by parameter_index;
define pd parameters_description;
;
;##################################################################
;
;  SHOW_STATUS          displays status of the particular subsystem
;                       through all time interval covered by PEF
;                       based data tables.
;
define show_status select time, subsystem, parameter_name, chr_value
from status_table where subsystem like SUBSYSTEM? order by subsystem,
parameter_name, time;
define ss show_status;
;
;##################################################################
;
;  SHOW_STATUS_AT_TIME  displays status of the particular subsystem
;                       through before given time.
;
define show_status_at_time select time, subsystem, parameter_name,
chr_value from status_table where subsystem like SUBSYSTEM? and
time le TIME? order by subsystem, parameter_name, time;
define ssat show_status_at_time;
;
;##################################################################
;
;  SHOW_NOTES           displays notes from the PEF file.
;
define show_notes select time, chr_value from note_table where
attribute_name eq 'NOTE_TEXT' order by time;
define sn show_notes;
;
;##################################################################
;
;  SHOW_NOTES_OVER_TIME displays notes from the PEF file
;                       within provided time borders and displays
;                       them ordered by time.
;
define show_notes_over_time select time, chr_value from note_table
where attribute_name eq 'NOTE_TEXT' and time between START_TIME?
and END_TIME? order by time;
define snot show_notes_over_time;
 
;
;  Setups for command dictionary table.
;
set column ds1_commands.command width 20;
set column ds1_commands.parameter_name width 14;
set column ds1_commands.parameter_index width 8;
set column ds1_commands.parameter_type width 16;
set column ds1_commands.parameter_range width 20;
set column ds1_commands.description width 40;
 
;
;  Setups for sequence tables.
;
set column ds1_cmd.entry_id width 14;
set column ds1_cmd.command width 20;
set column ds1_cmd.parameter_name width 14;
set column ds1_cmd.parameter_index width 8;
set column ds1_cmd.value_flag width 8;
set column ds1_cmd.chr_value width 16;
set column ds1_cmd.dp_value width 8;
set column ds1_cmd.int_value width 8;
set column ds1_cmd.long_value width 22;
;
set column ds1_note.entry_id width 14;
set column ds1_note.attribute_name width 14;
set column ds1_note.attribute_index width 8;
set column ds1_note.chr_value width 42;
set column ds1_note.long_value width 42;
;
set column ds1_status.entry_id width 14;
set column ds1_status.subsystem width 20;
set column ds1_status.parameter_name width 14;
set column ds1_status.parameter_index width 8;
set column ds1_status.value_flag width 8;
set column ds1_status.chr_value width 16;
set column ds1_status.dp_value width 8;
set column ds1_status.int_value width 8;
set column ds1_status.long_value width 22;
 
