7/19/2021 12:24 PM | |
Posts: 67 Rating:
|
Hi All, In the regular WinCC the default function "gmsgfunc.fct" exists. This function i striggered for every incoming/outgoing and acknowlegded alarm. Does anybody know if such a function also exists in TIA portal? In this forum tread I have found the functionality I want, however this is after a button press. I'm looking for an automated function which is being triggered after an incoming alarm. Kind regards, |
7/19/2021 4:07 PM | |
Joined: 10/10/2014 Last visit: 11/13/2024 Posts: 1725 Rating:
|
HI SCADA-Enginerr, The same function like "gmsgfunc.fct" not exist in WinCC Professional. But you can create your own function similar function like "gmsgfunc.fct" Create a new C-function and select as parameter the structure MSG_RTDATA_STRUCT Call this new function from the event of the message “Status changed”. On the event “Status changed” you can select the new function with the parameter MSG_RTDATA_STRUCT The source code you can copy out from follow FAQ At Runtime, how can you determine the message texts or process-associated values when a message appears in the associated, user-specific action "GMsgFunction()"? https://support.industry.siemens.com/cs/ww/en/view/15350783 Best regards schufri |
Follow us on