Next, I've created several users to allow myself to log in to our example HMI. Obviously, this part of the demo is specific to WinCC Comfort or Advanced as the Basic panel will not support scripting, but it will not affect our alarm text demo. To start things off, I've created three internal HMI tags: An alarm word ( UInt) for triggering of my example alarm, a string to contain the name of the logged in user, and a real tag for my process value example.įirst, I've written a short script to capture the name of the logged in user and created a task to call my script on any user change event. However, the answer turned out to be incredibly simple so I thought it would be worth sharing in case anyone else is ever looking for the same information.įor my example, I will demonstrate on a TP700 Comfort Panel, although the same basic procedure can be used for a Basic Panel or an Advanced Runtime system. Surprisingly, I was not able to find very good documentation or examples online. Knowing this must be possible, I set off to Google, the Siemens forums, and the TIA Portal help files. In this particular case, I needed to include the name of the operator that was monitoring the machine for traceability, as well as some specific machine information (process tag value) when the alarm occurred. Recently, I found the need to create customizable text for some alarms in a TIA Portal project.
0 Comments
Leave a Reply. |