Write value on datapoint

This function in the ScriptWizard enables writing values on a datapoint element.

Figure 1. Overview - Set datapoint value

Structure

The following paragraphs list all fields and options of the function "write value on datapoint" and explain how to use them.

Datapoint

In the datapoint text field all the added datapoints and $-parameters are listed.

Select datapoint

Click on the push button in order to edit a selected DPE or $-parameter (see also Add datapoint element).

When writing values on a datapoint the property selection panel only displays the configs that are write-able (see figure below).

Figure 2. Property selection - only write-able configs

Value

In the value text field values are shown, which should be written to selected data points. Click on the push button to select a value.

Select value / Input box

In the following create expression dialog variables and dollar-parameters can be selected to create an expression using arithmetic operations.

Figure 3. Create expression - Select value

Variables

All available variables are listed in the variables text field.

Dollar-parameter

All available dollar-parameters are listed in the $-parameter text field.

example

For example create the expression in the create expression dialog "MyVariable + $ANYTYPE_MyDollarParam" as shown in Figure 3. Then the value of the selected datapoint element consists of both the value of the variable "MyVairable" and the value of the dollar-parameter "$ANYTYPE_MyDollarParam".

Add datapoint

Opens the dialog to add a new datapoint element (see also Add datapoint element).

Delete datapoint

Select a datapoint in the datapoint text field, click on the push button "delete datapoint" and the selected datapoint is deleted.

Help

For more information about the function "write value on datapoint" please refer to the WinCC OA 3.11 online help by clicking on the push button "Help".

Apply

Click on the push button "Apply" and writing value on a datapoint is completed. The entered values are then applied to the current function.

Cancel

Click on the push button "Cancel" and this function is rejected. A new function can be then selected.

Figure 4. A new function to write value on datapoint added successfully