Function block for alarm in AC500 with CodeSys
I am working with an AC500 PLC at the moment in combination with Compact HMI. I am used to work with ABB 800xA most of the times so working with CodeSys is a bit different for me. I am now looking for the best way to program alarms. As far as I know there are two options for this with the AC500 and Compact HMI:
1) Program alarms in the global Alarm Configuration list in CodeSys and use OPC AE for displaying the alarms in Compact HMI.
2) Program the alarms in Compact HMI based on a signal from the PLC with the Alarm Expression aspect in Compact HMI.
But the best option for me would be the use of a Function Block for alarm creation in CodeSys/AC500. Something like the AlarmCondBasic Function Block in Control Builder. Is there something like that in CodeSys?
I am working with libraries in CodeSys which will be implemented in the main program so that is why I am looking for a solution like this. I hope you guys can help me with some suggestions.