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.

<o:p> </o:p>

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

<o:p> </o:p>

This script might look as following:

<o:p> </o:p>

main()<o:p></o:p>

{<o:p></o:p>

  mapping map;<o:p></o:p>

 <o:p></o:p>

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

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

  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<o:p></o:p>

  map["dist_1:[PUMP1].state.on_2"] = "on_2.png";<o:p></o:p>

  map["dist_1:[PUMP1].state.off"] = "off.png";<o:p></o:p>

  map["dist_1:[PUMP1].state.mode.remote"] = "remote.png";<o:p></o:p>

  map["dist_1:[PUMP1].state.mode.local"] = "local.png";<o:p></o:p>

  map["dist_1:[PUMP1].state.mode.auto"] = "auto.png";<o:p></o:p>

  map["dist_1:[PUMP1].state.mode.man"] = "man.png";<o:p></o:p>

  map["dist_1:[PUMP1].state.mode.service"] = "service.png";<o:p></o:p>

 <o:p></o:p>

  dpTreeSetIcons(map); //set the icons<o:p></o:p>

}<o:p></o:p>

<o:p> </o:p>

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

PVSS00ui -m para -s icons.ctl<o:p></o:p>

<o:p> </o:p>

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

Date added:
Last revised:
Hits:
6.571
Version:
3.10, 3.11, 3.12, 3.13
Rating:
Rating: 2.4. 48 vote(s).
48 anonymous votes
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
  • Notification

    FE user cannot be identified! (1403201096)

Tags:
Engineering, Programming / Scripting, User Interface, Installation / Configuration, Special Functions / Features, WinCC Open Architecture, HMI