Active Errors vs. Inactive Errors?
I would like to write to an internal memory bit whenever the PLC has an active error, and clear the bit once there are no more active errors. I'm unable to differentiate between Active and Inactive Errors with the built-in libraries. Is this even possible?
It seems like something that should be available to the developer.
Voted best answer
You can use the FB 'DIAG_INFO'to know which Class of error have not been read. Then use the FB 'DIAG_GET' to read the specific error class for the latest error.
In the DIAG_GET.STATE, you will know the status of the error which is "Error has come", "Error has gone" and "Error has been acknowledged".
For more information, you can refer to the Automation Builder online help.
Automation Builder > Libraries > Standard Function Block Libraries AC500 > Internal System Library > Function Blocks