i need to access the alarm history table to no avail. i copied the alarm manager sample code (example 4) partially to suit my application. it seemed to me that it only worked once at power startup. after that, the alarm history row count didnt even budge after introducing an alarm.
Talk Topic about project #codesys-example/alarm-manager
i have done more testings and found that the function is actually called everytime the alarm storage is modified which is correct, my test variable proved that. however the issue is at "getalarmsfromstorage", circled in red at the attachment, it is not reading the alarms storage correctly.
even more so, at one point the code worked until power recycle, it was reading the alarms storage correctly and counting rows correctly until power recycle. it has never recovered since then and there was no code change, only clean all, build, rebuild and download to the hmi.
any helps will be very much appreciated?
Log in to post a comment.