Channel limit - notification

Denis Desourdy

Posted on 13.06.2017 15:37

Hi,

With DCOM, is it possible to define a limit on a channel and to be notified when that channel has reached this limit?

If it's possible, what interface should I use? Are there code examples?

Thanks!

Denis

DEWESoft Support
Technical support
Posted on 14.06.2017 07:51

Hi,

the module that will give you the most control via DCOM is alarms. Alarms can be set in the same way as storing triggers, and you can create them through DCOM. Even though they can be set for specific channels, they're not really a "channel property". You can access them via the IAlarms and IAlarmCond interfaces. There aren't any examples that I'm aware of, but you can post follow up questions here if you get stuck at some point.

If you want to define the high/low values for each channel, you can do that via the channel setup grid, which gives you the option to add critical/warning values for each channel. This however can not be accessed and configured via DCOM. The attached picture shows the new columns, which you can add by right clicking on the top of the grid and selecting the "Edit grid" option.


Attached files:
Denis Desourdy

Posted on 15.06.2017 23:10

Ok, thank you for the reply!

Correct me if I'm wrong: I will need to loop in my alarm collection and check there Status property to detect if they are set? Is that correct?

Regards,

Denis

Denis Desourdy

Posted on 19.06.2017 23:12

Is there an event that I can subscribe to and be notified when an alarm is set?

Thanks,

Denis

DEWESoft Support
Technical support
Posted on 20.06.2017 11:17

Hi,

just to confirm something, when you say that'd you like to check if an alarm is set, does that mean that you want to know whether an alarm is active or not? If so, than you can loop through the alarms just like you've said.

I don't think that there's an option to be notified on these events simply via an DCOM automation application. If you're however building a plugin, this will give you more access to events.

There is however another option, which is the event list. You can keep count of it and check every new even. The events have a data property, which in the case of an alarm event will return a Boolean data type.

Russell Picini

Posted on 18.07.2017 08:44

It is a little bit difficult.

I also want to get a answer.

Login to reply to this topic. If you don't have account yet, you can signup for free account .