GET ALARMS Name of selected alarms

8 Posts
2 Users
0 Likes
29 Views
(@g.ndao@ypsys.com)
Posts: 0
New Member Guest
 

Hello Everyone,

I have a question about ALARMDISPLAY fonction.
Is it possible to get the name of selected alarms (Not the last selected alarm but all selected alarms)?

Why am I asking that question?
I need to to acknowledge an alarm in the PLC anytime i acknowledge in PcVue. Which means different acknowledgement for each variable. When you do it by selecting one alarm at the time it works fin.

Now my question is " Can we excute a program For each selected line? Using the name of the variable as argument of my program".

The last alternative will be to create as much events as alarms(the client is not using architect). If you have any suggestions too 🙂 .

Thank you for your help guys.

Gnaroum

 
Posted : 26/04/2016 2:12 pm
(@j.becker@pcvue.de)
Posts: 0
New Member Guest
 

hello gnaroum,

ALARMDISPLAY("ACK_SELECTED",.....). Should also work with a macro. It acks all selected alarms.

BR

 
Posted : 26/04/2016 4:56 pm
(@g.ndao@ypsys.com)
Posts: 0
New Member Guest
 

Hi Johanes,

My actual need is to get the name or tag of selected alarms.

ACK_SELECTED only ack the alarms but does not return the tag or name 🙁 .

But thank you for your answers 🙂

 
Posted : 26/04/2016 5:24 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Hello Gnaroum,

Just to be sure, don't you need to use the official native acknowledgement transmission behavior of PcVue?

From the help:
Configuring an Alarm Acknowledge Trace Bit

The action of acknowledging an alarm can be used to set another (bit) variable that can then be used to trace the acknowledge process. It could be used, for example, to cancel an audible alarm.

How to configure an alarm acknowledge trace bit

1. Open the Application Explorer and use the configuration tree to select the Variables Tree and then the alarm (bit) variable to which the behavior is to be added.
2. Select the Add alarm behavior.Add acknowledgement transmission tool from the Associated Behaviors toolbar. The Alarm acknowledgement transmission dialog opens.
3. Enter or select the name of the bit variable to be used. The ellipsis button adjacent to the field displays the Variable Selector.
4. Using the To 0 or To 1 option buttons select the state to which the bit will be set
5. Click OK to confirm the configuration and close the dialog.
You must arrange for another mechanism to clear the trace bit the alarm system only sets it.

 
Posted : 26/04/2016 5:28 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Anyway with the new modes available it is now possible to find easily the name of any selected alarm.

ALARMDISPLAY instruction
modes:
GETLINECOUNT
ISLINESELECTED
GET_NAME_FROM_LINE

 
Posted : 26/04/2016 5:32 pm
(@j.becker@pcvue.de)
Posts: 0
New Member Guest
 

Hello,

i cannot completely understand the need, but to get the name of an alarm in a selected line, I would do following:

1. Use AlarmDisplay("Getlinecount",...) to get the number of lines.
2. in a loop with lengt "getlinecount" check every line whether it is selected with Alarmdisplay("Islineselected",...).
3. if line is selected, call your program and give the argument by using: Alarmdisplay("get_name_from_line",....)

An alternative would be also to set the Alarmdisplay("onlineselect",...) or Alarmdisplay("lineselect",...). So you can ack on each selection.

Or better: Ask Nico for a new function: "GetSelectedLines" ;-).

BR.

 
Posted : 26/04/2016 5:34 pm
(@g.ndao@ypsys.com)
Posts: 0
New Member Guest
 

Thank you guys for your suggestions.

I guess using in a loop

GETLINECOUNT
ISLINESELECTED
GET_NAME_FROM_LINE

will do fine, so the customer doesnt need to change his initial PLC ACK program.

 
Posted : 26/04/2016 6:15 pm
(@g.ndao@ypsys.com)
Posts: 0
New Member Guest
 

Hello Ludo,

The ACK transmission would be perfect in this case instead of the events - I havent though about it. Thanks.

I'll propose both solution with SCADA and ACK transmission.

 
Posted : 26/04/2016 6:28 pm