Configuration of an AC type

In this example you will assign three compression levels to the data point type motor1. You will specify the calculation of 5-minute means, hourly means and daily means, plus the minimum and maximum in each case, and set up various archives to save these values. You will then create the data points.

The example contains the following steps:

  1. Creation of a new data point type
  2. Creation and configuration of compression levels
  3. Creation of data points
  4. Selection of exception data points (if necessary)
  5. Applying the structure to all required data points
  6. Deleting data points

Step 1 - Creating an AC type

The creation of an AC type can be equated to the creation of a new data point type. Having opened the AC configuration panel (see: AC configuration panel)

  1. Click on the New DPT... button.
  2. The following dialog box opens:
  3. Enter motor1.
  4. Select Analog, for instance, as data type for the data point element .value. This means that analog input values are allowed. With "Digital" selected the element would be of type bool, and in the first compression level you would only be able to select functions for binary values.
  5. The data point type is created automatically.
Note: The table in the AC panel contains the new data point type, and the configuration panel opens automatically.

Step 2 - Creating compression level 1

  1. Click on the Configuration button in the DPT configuration panel.
  2. This opens the AC type configuration panel.
    Figure 1. Panel for AC type configuration
  3. Either select a predefined interval from the combo box or define different intervals using New. Delete removes the intervals from the combo box again.
  4. Assign the default 01) 5-minutes archive to the data point type for the measured values.
  5. Select the functions minimum, maximum and average for the compression.
  6. Click on OK.
Note: The "Database" button beside the combo box opens the Configuration panels of the HistoryDB. You should already have created your archive with correct parameter settings.
CAUTION: For each archive you must run the associated Manager WCCOAvalarch from the console, otherwise archiving cannot take place. For example, for 3 compression levels, in the default configuration, WCCOAvalarch -num 1 must be the started for the 5-minute archive, WCCOAvalarch -num 3 for the hourly archive and WCCOAvalarch -num 4 for the daily archive.
Note: Note that the minimum and maximum time functions can be used for all functions except for MAN. The minimum and maximum time can specified for compression level C2 or higher (not for compression level C1). The minimum and maximum time cannot be used as sources for compression levels.
Note: Note that the auto delay can be activated or deactivated for all compression levels except for C1.MAN (manual input). The auto delay can be activated or deactivated by clicking on the Enhanced ... button and by choosing the check box Auto delay on the Synchronization tab.
Note: Note that you can calculate, for example, the average value of the latest four 15 minute (quarter of an hour)values within an hour via the floating calculation. The average can be calculated by choosing the average option, by clicking on the "Enhanced ..." button and by choosing the "Floating calculation" check box. The part interval for the floating calculation has to be an integer. How many values are calculated results from the time and the part interval. If the time is, for example, one hour and the part interval 10 minutes, 6 values are calculated. The floating calculation can be used for all statistical functions.

SOLUTION

The DPT configuration panel now contains compression level 1 with a 5-minute interval, whose data is saved in the 5-minute archive. The statistical functions are AVG_WT0, MIN and MAX

7. Click on Save in the DPT configuration panel; this saves the parameter settings for the data point type and writes them to the sample data point _mp_typename (for example, _mp_motor1).

Creating compression level 2 and 3

It is required that at least one of the previous levels shall be used as source for the integer multiple of the interval:for example, C1: 3min, C2: 6min, C3: 9min (->C1), C4: 24min (->C1 or C2), C5: 30 min (->C1,C2). An error message will appear if you set incorrect parameters.

  1. Click on the New level button in the DPT configuration panel.
  2. Specify an hourly interval (see above).
  3. Assign the hourly archive to the interval.
  4. Click on the functions mean, minimum and maximum. This means that only these three values are saved for the 5-minute interval irrespective of how much data has actually been collected.
  5. Combo boxes open next to the functions for specifying the sources of the values for the higher-level compressions. Here you can specify the source value for the second compression level.
  6. Select C1.Average, C1.Minimum, C1.Maximum (the default values) in each case.
  7. Click on OK.
  8. Repeat points 1 to 6 for a daily interval with daily archive.

The default source is the same function as in the previous level, if this exists. In C1 the function source is the element value; for manual input there is no source because the values are entered manually in the Laboratory Values panel (see Laboratory Values panel).

Note: You can get more details about the statistical functions in the chapter _dp_fct of the PARA module.

In level 1, you can select either manual input ONLY, OR any other functions, but you cannot select manual input and other functions (see Laboratory Values panel).

SOLUTION

Your DPT configuration panel should now look as follows:

Step 3 - Creating data points:

You can create data points for the data point types that you have set up with your own structure and settings, and these data points will then adopt these parameters.

  1. Click on Create DP.
  2. Enter a data point name.

Step 4 - Defining exception data points (optional)

If you wish, you can define data points that will not adopt your parameter settings.

You can define exception data points as follows to prevent your archiving or compression applying to all data points of one type.

  1. Click on Exception data points
    Figure 2. Panel for exception data points
  2. Select a data point on the left of the panel
  3. Use the arrow to transfer data points to become exception data points.
  4. Click on OK when you have specified your exception data points.
  5. Click on Save in the configuration panel.

Step 5 - Applying the parameter settings to all data points

A final step is still required to apply the parameter settings to the data points.

  1. Click on ==>DPEs in the configuration panel.
    Figure 3. Panel during data transfer
  2. Your data points have now adopted the structure and settings for your data point type.

Open a PARA Module and a new data point: each of its leaves contains the _archive and _dp_fct configs. This is not the case for the exception data points.

Step 6 - Deleting data points

  1. Click on Delete data points.
  2. Select the data point that you want to delete.
  3. Click on the lower-left button (showing a cross).
  4. Close returns you to the configuration panel.