How to use user defined icons in PARA

With version 3.10 of Win CC OA we introduced the feature to use your own icons for data points, data point elements, etc.

 

For this purpose you must create a script called icons.ctl.

 

This script might look as following:

 

main()

{

  mapping map;

 

  map["dist_1:"] = "dist_1.png"; //the system dist_1 gets this icon

  map["dist_1:[PUMP1]"] = "pump1.png"; //the data point type PUMP1 in the system dist_1 gets this icon

  map["dist_1:[PUMP1].state.on"] = "on.png"; //the data point element .state.on of the data point type PUMP1 in the system dist_1 gets this icon

  map["dist_1:[PUMP1].state.on_2"] = "on_2.png";

  map["dist_1:[PUMP1].state.off"] = "off.png";

  map["dist_1:[PUMP1].state.mode.remote"] = "remote.png";

  map["dist_1:[PUMP1].state.mode.local"] = "local.png";

  map["dist_1:[PUMP1].state.mode.auto"] = "auto.png";

  map["dist_1:[PUMP1].state.mode.man"] = "man.png";

  map["dist_1:[PUMP1].state.mode.service"] = "service.png";

 

  dpTreeSetIcons(map); //set the icons

}

 

The User Interface where these icons should be used must be started in the following way:

PVSS00ui -m para -s icons.ctl

 

NOTE: The icons that are used must be located in the “pictures” folder of the project.

Date added:
Last revised:
Hits:
15.361
Version:
3.10, 3.11, 3.12, 3.13
Rating:
Rating: 2.4. 48 vote(s). No rating done at all.
Your vote was '' (0 of 5) You are an anonymous user.
You may log on to do personalized votings
Click the rating bar to rate this item Please log on to do ratings
Tags:
Engineering, Programming / Scripting, User Interface, Installation / Configuration, Special Functions / Features, WinCC Open Architecture, HMI