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.