Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.
Already have an account? Login
You can subscribe to this forum after you log in or create your free account..
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.
Already have an account? Login
Posted: 2020-08-17 01:03 AM
Hi! I develop SmartConnector for EcoStruxure and Video control system. I have a question - how i can generate Alarm from my SmartConnector DLL with custom message?
I think alarmitem i need, but i dont know how use it for my case.
Posted: 2020-08-31 01:51 AM
Hello @JeffBowman. could you help on this?
Thanks!
Rodrigo G.
Industrial Automation Community manager
Posted: 2020-08-31 10:39 AM . Last Modified: 2020-08-31 10:40 AM
Posted: 2020-08-31 10:39 AM . Last Modified: 2020-08-31 10:40 AM
Hello!
I recommend using the SmartConnector.Utilities library, which you can get from the same NuGet library as the rest of the Smart Connector NuGet packages.
Inside of this library there is a class called EwsItemManager, this class helps abstract many common uses of the main EwsServerDataAdapter class to make it easier to create and modify objects in your EWS Server.
Within this class there are a few functions that can be used together to help you manage alarm items and alarm events for your EWS Server in Smart Connector:
EnsureAlarmItem: This method allows you to create an AlarmItem in your database, or modify an exist one's property's (not the alarm events themselves). This method checks if the item exists before it creates one, and will modify the existing if it already exists.
EnsureAlarmEventTyps: This method allows you to create an Alarm Event Type (e.g. Category that will be attached to your alarms, and displayed in the EWS client; EBO for example).
CreateAlarmEvent: This method allows you to create an AlarmEvent from one of your AlarmItems, it also allows for a custom message field.
There are also a lot of helpful methods in this class for dealing with other object types in the EWS server such as Containers, Values, and Trends as well.
Let me know if you have any questions.
Best Regards,
-Jeff
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.