Alert Handler for String Data Types

Find and share HowTos to various installations / configurations!
6 posts • Page 1 of 1
jimtaylor
Posts:32
Joined: Tue Jun 11, 2013 10:18 am

Alert Handler for String Data Types

Post by jimtaylor »

Hello,

Is there an easy way to set up an alert handler for string data types? E.g. I want an alert if the value of my string is "high temperature" or "seal leak" etc

When I try to add an alert handler config to a string it brings up a sum alarm handling dialog which is not what I want.

Thanks in advance.

Jim

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Alert Handler for String Data Types

Post by leoknipp »

Hello,

at datapoint-elements of type string only a summary alert handling can be configured.
There is no possibility to configure an alert handling which makes a comparison of strings written to it.

Do you really get values as string from the driver/PLC in your project?

Best Regards
Leopold Knipp
Senior Support Specialist

jimtaylor
Posts:32
Joined: Tue Jun 11, 2013 10:18 am

Re: Alert Handler for String Data Types

Post by jimtaylor »

Hi Leopold,

Thanks for your response. Unfortunately the values are set up as strings in the OPC server we are connecting to. The OPC server is not our responsibility so there is no possibility to change the data type.

If there is no easy way then I presume we will have to write a control script to generate the alerts?

Jim

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Alert Handler for String Data Types

Post by fmulder »

I could imagine the following scenario. You could use a datapoint function to translate the string into an integer and a ,discrete alarm, to turn each integre into the appropriate alarm.

There is another method which might be usefull when the strings are notvfixed.. The mechanism is called 'multi instance' alarm. Basically it means that you generate an alarm and attach any text to it you want. It s not very simple and im not sure that you'll find much info in the help files.

You'd need a digital with a multi instance alarm and some scripting to dpSet() the alarm and its text.

You'd have to ask Support for an example.... But I'm sure thta you'd like the possibilities.

Good luck

Frenk

jimtaylor
Posts:32
Joined: Tue Jun 11, 2013 10:18 am

Re: Alert Handler for String Data Types

Post by jimtaylor »

Thanks for the info Frenk. We will explore the possibilities you suggest.

Jim

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Alert Handler for String Data Types

Post by fmulder »

The multi instance alarm has some serious advantages:

You need just one boolean
You can 'assign' any text to the alarm

Note that you'll have to raise and(!) lower the alarm by yourself. I'd advisevyiubto ask product support for a sample script.

Sare the fun

Frenk

6 posts • Page 1 of 1