7/17/2009 12:00 PM | |
Joined: 9/27/2007 Last visit: 12/18/2020 Posts: 993 Rating: (102)
|
Hi You can define new units under "Shared Declarations" > "Units". If that not exist in your project you can add by rigthclick at your project > "Shared Declarations". regards cumulus |
Learn more about visualization - visit the HMI courses of Siemens AG! |
|
12/17/2013 11:00 AM | |
Joined: 5/20/2009 Last visit: 3/14/2022 Posts: 32 Rating: (5) |
Hi, Because this was a really annoying problem I dove into it and have a solution for it. Technicallyit is quite a harmlesssolution but i'm afraid it will raise all red flags at product support.. [So I warned you.....everything you do with this solutionis on your own risk !!] But i'm pretty sure it's the only way dealing with this and again... straightforward and low risk. It's allbecause we have to do some .dll hacking here..... I found that the 'IEC 61158 list' is hidden ina set of.dll files There is a copy for every language. To stay consistent you will have to adapt all of them. I found: 'apl_workera.dll' [German] 'apl_workerb.dll' [English] 'apl_workerc.dll' [French] 'apl_workerd.dll' [Spanish] 'apl_workere.dll' [Italian] 'apl_workerx.dll'[German] You can find these files in: C:\Program Files\SIEMENS\WINCC\bin\ With the good'ol tool 'Resource Hacker' you can easily edit the resources in windows executables (like .dll files). The 'apl_workerx.dll' is nothing more than a piece of code with the string table in it. The 'trick' is to edit this table. I choosed to simply to 'rename' two of the more exotic units of measure to 'bara' and 'barg'. Expanding the table is also possible ofcourse, but renamingexisting entries is even more safe. So when you installed 'Resource Hacker' (on a separate machine) and open (a copy) of 'apl_workerx.dll' with this tool. You will see a tree structure with the string table. When you see it you will understand it.. (see attachment) [If you don't... you better do not use this solution ] Replace some of the entries with the ones of your choice and 'compile' the table (single button on topthat becomes active as soon as you change anything). The tool will automatically save the original file as backup. Copy the modified .dll files to your production machine. Shut down WinCC completely (if not already). Makea backup of the original files and replace them with the modified .dll files. Reboot your machine. Now youwill have the new 'units of measure'definitions availablein your user program. Don't forget to document this action, because you will lose this modification with a WinCC uipdate !! Also beware! Be sure you download the Resource Hacker tool directly from the site of theauthor : http://angusj.com/resourcehacker/ Check 'Resource Hacker' on Wikipedia (You don't wan a new Stuxnet on your system ;-) Regards and good luck! |
This contribution was helpful to2 thankful Users |
Follow us on