Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
80820members
346892posts

SmartConnector AlarmItem question - how to

2345lug
Cadet
0 Likes
2
877

SmartConnector AlarmItem question - how to

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.

Tags (1)
2 Replies 2
Rodrigo_Garcia
Administrator Administrator
Administrator
0 Likes
0
826

HRe: SmartConnector AlarmItem question - how to

Hello @JeffBowman. could you help on this?

Thanks!

Rodrigo G. 


Industrial Automation Community manager

Tags (1)
JeffBowman
Schneider Alumni (Retired)
Schneider Alumni (Retired)
0 Likes
0
822

Re: SmartConnector AlarmItem question - how to

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

Tags (1)