Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Has anyone used the Alarm Class : Notification actions to perform actions outside of the AlarmManager.library? I am trying to implement a buzzer control system which has different characteristics depending on the level of the alarm:
High
Medium
Low
Info
The three options Variable, Execute and Call are available but the Variable option currently has a bug and is unusable (CDS-63099: Alarm Configuration, Alarm class: It is not possible to connect a variable). Does anyone know what capabilities this functionality may provide? I want to be able to increment and decrement counters, set BOOL for buzzer etc. Is this possible or is it intended for Alarm Manager library internal function calls?
Thank you,
Doug
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to write to a boolean variable whenever an alarm is triggered but the program will not compile. I always get this alarm: "C0136: Ambiguous use of name '__ALM_ERROR_VARIABLENOTIFIABLE_1'.
I finally figured that I cannot achieve my goal by using the notifications.
What I want to do is to know when at least 1 alarm of a specific class is active. Is there an implicit variable that can tell that.
I tried doing this using the notification actions but it does not work. I was setting a variable to true when the error class gets activated and to false when the error class is deactivated. The problem is when I have more than 1 alarm of class error active, as soon as one of them gets deactivated, the variable is set to false even though there is still an active alarm in this error class.
There is probably a much easier way to do it but I cannot find it.
Would also be nice to be able to do the same thing with alarm groups.
Please help me.
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found a way to do it using the "Alarm Manager Client" and looping through active alarms. I have to say there is not much documentation about the "Alarm Manager Client". I had to experiment with the examples available on Forge and Github. Would be nice to have clear documentation about this powerful tool.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Yannick, can you share more about how where you able to implement it?, i am trying to link some kind of variable that tells me that there is at least one active alarm in the alarm table but i cannot find documentation about it.
Thank you in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Has anyone used the Alarm Class : Notification actions to perform actions outside of the AlarmManager.library? I am trying to implement a buzzer control system which has different characteristics depending on the level of the alarm:
High
Medium
Low
Info
The three options Variable, Execute and Call are available but the Variable option currently has a bug and is unusable (CDS-63099: Alarm Configuration, Alarm class: It is not possible to connect a variable). Does anyone know what capabilities this functionality may provide? I want to be able to increment and decrement counters, set BOOL for buzzer etc. Is this possible or is it intended for Alarm Manager library internal function calls?
Thank you,
Doug
Hello,
I am trying to write to a boolean variable whenever an alarm is triggered but the program will not compile. I always get this alarm: "C0136: Ambiguous use of name '__ALM_ERROR_VARIABLENOTIFIABLE_1'.
Can anyone explain how this is supposed to be configured. I read the help but it does not help much: https://help.codesys.com/webapp/_cds_obj_alarm_class;product=core_visualization;version=3.5.17.0
Thank you.
When trying to call a fonction block instead, I get the error: "C0136: Ambiguous use of name '__ALM_ERROR_CALLNOTIFIABLE_1'
I must be missing something?
Ok, after restarting the IDE, everything works. It seems like even after deleting some previous calls, it was still showing old compiling errors.
I finally figured that I cannot achieve my goal by using the notifications.
What I want to do is to know when at least 1 alarm of a specific class is active. Is there an implicit variable that can tell that.
I tried doing this using the notification actions but it does not work. I was setting a variable to true when the error class gets activated and to false when the error class is deactivated. The problem is when I have more than 1 alarm of class error active, as soon as one of them gets deactivated, the variable is set to false even though there is still an active alarm in this error class.
There is probably a much easier way to do it but I cannot find it.
Would also be nice to be able to do the same thing with alarm groups.
Please help me.
Thank you
I found a way to do it using the "Alarm Manager Client" and looping through active alarms. I have to say there is not much documentation about the "Alarm Manager Client". I had to experiment with the examples available on Forge and Github. Would be nice to have clear documentation about this powerful tool.
Thanks.
Hi Yannick, can you share more about how where you able to implement it?, i am trying to link some kind of variable that tells me that there is at least one active alarm in the alarm table but i cannot find documentation about it.
Thank you in advance!
Last edit: maxims 2023-05-05