Drag & Drop of DPTs and DPs
WinCC OA supports drag & drop of datapoint types and data points from the DP tree view (as you can see it, for example, in the PARA) to a panel. From a predefined set of standard symbols for a datapoint type, the user can decide which symbol should represent the datapoint on the panel. The definition of the standard symbols for a datapoint type takes place in the Symbols tab of the PARA - see Standard symbols for DPTs.
The following applies:
-
If a datapoint is added to a panel using drag & drop, this datapoint will be selected automatically in the panel for reference definition.
-
If a datapoint type is added to a panel, the datapoint must be selected in the panel for reference definition.
-
If a datapoint type is added to a panel using drag & drop with pressed CTRL key, automatically the predefined default symbol is used and the datapoint must be selected in the panel for reference definition.
Example of drag & drop of a datapoint type to
a panel
-
Open the WinCC OA PARA.
-
Click on the datapoint type ANALOG1.
-
Go to the Symbols tab.
-
Click on the
button.
This loads the symbol ANALOG1.pnl from the file system. -
Click on the
button
and open the ANALOG2.pnl symbol from the WinCC OA installation
directory \panels\objects\STD_OBJECTS. -
Repeat step 5 for the symbols ANALOG_BAR.pnl, ANALOG1_1.pnl and ANALOG2_1.pnl.
-
Select ANALOG1.pnl as the default symbol. To do so, set an X in the Default column. The X marks the default symbol.
-
Click on Apply.
-
Open a WinCC OA panel.
-
Add the datapoint type ANALOG1 (or directly a datapoint of the type ANALOG1) from the PARA tree view to the panel using drag & drop.
-
This opens a pop-up window with a preview of the symbols defined before.
-
The symbol in the center is always the symbol that is currently selected. Its name is shown in the label at the bottom left.
-
Click the left symbol in the preview panel to move it to the middle and thus to select it. The same applies if you click the right symbol. This allows you to navigate freely in the preview panel.
-
Once you have selected a symbol, click OK to place it in the following on the panel (or click Cancel to cancel the operation).
-
Place the symbol on the panel using left mouse click.
-
As a datapoint type was added to the panel using drag & drop, a datapoint must be selected in the panel for reference definition.
See also CTRL functions getPanelPreview(), imageToFile() and startPanelRefConstruct().
