I am trying to display a one-line alarm message at the top of the visualization whenever there is an alarm. All it has to do is display the message text.
My question is, how do I access the last alarm message? I am using Codesys's Alarm Configuration and Alarm Table.
Poking around in SysLibAlarmTrend turned up GETLASTRECORD, which looks promising:
But, I have no idea how to use it, and there is no documentation on the function. Is this the right function? What should pData and pdiSize point to, exactly? What are they?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to display a one-line alarm message at the top of the visualization whenever there is an alarm. All it has to do is display the message text.
My question is, how do I access the last alarm message? I am using Codesys's Alarm Configuration and Alarm Table.
Poking around in SysLibAlarmTrend turned up GETLASTRECORD, which looks promising:
But, I have no idea how to use it, and there is no documentation on the function. Is this the right function? What should pData and pdiSize point to, exactly? What are they?