Modeling of Datapoint Types

In the previous sections we took a look at existing datapoints that are available from the start of any project. However, usually we want to designour own device-oriented datapoints in order to cope with the specific project or industry requirements.

We will design some datapoint types, since we need a couple of datapoints for our example. A [rightMouseClick] on the empty white space in the datapoint tree displays the "Create datapoint type" option.

Figure 1. Create a new datapoint Type "GS_PUMP2" in the Dp Type Editor of the Module PARA

This will open the datapoint editor, where the required data structure can be easily designed:

  1. Replace the selected type name "NewDpType" with "GS_PUMP2".

  2. Open the context menu with a [rightMouseClick] and select "Insert node".

  3. Assign the name "state" to the node.

  4. Repeat the step "Insert node" directly at the node "state" and to insert the sub node "on".

  5. Assign the datapoint type "bool"to the node "on" with [rightMouseClick] --> Element type.

Structure elements are indicated by a directory symbol and external datapoints have an icon that displays the specific data type (bool, int, float, ...). Therefore, the symbol indicating a binary variable is displayed for the element "on" in the following figure.

Figure 2. Create a structured datapoint Type in the DP Type Editor of the Module PARA

Repeat the steps 2 to 5 in order to create a complete datapoint type as shown in the following figure. Note that the elements .state.speed and .cmd.speed are of Datatype "float". Naturally you can rename or delete nodes etc.

Figure 3. Complete datapoint type GS_PUMP2 in the DP Type Editor

When the datapoint type GS_PUMP2 is complete, select OK in the dp type editor and confirm through Yes.