cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PCo trigger for a notification with two subscription items

Former Member
0 Kudos
611

Hello,

I have a similar problem as the one discussed in here:

https://archive.sap.com/discussions/thread/3647658

I configured a notification that, among other static information, sends two PLC tags values. I am interested in monitoring one of the tags and, when it changes, send its updated value and the value of the second tag at that moment; however, since I configured the notification trigger type as 'Always', sometimes I get two notifications for the same event. I understand that I can fix the undesired triggered notifications by changing the trigger type to 'On True', but it is not clear to me what condition to use.

Since the tag that I am monitoring is an ID, my trigger would have to be something like "subscription item different from its previous value". How can I do this?

I also noticed that the notification is only triggered when the subscription items configured in the notification output change, but not when any other subscription item changes (I have 66 different subscription items).

The tag that I want to trigger the notification is a String data type and I have check the "Only Changes" box. The second tag that I want to send in the notification, but shouldn't trigger it is a UInt32 data type, with 0 deadband, and "Only Changes" unchecked.

The version of PCo that I am using is 15.0.6.2649.

Thank you,

Ricardo Simental

Accepted Solutions (0)

Answers (1)

Answers (1)

Private_Member_221638
Participant

Hi Ricardo,

I believe in the trigger condition you can specify which tags should be considered. So in your situation I would work with trigger type 'on true' and in the trigger expression you set the following : (<insert tag here>) != '' || (<insert tag here> != 0)
Or something else if this doesn't apply to your situation, just try to use a condition where your tag is used. So the notification will look at that specific tag only.

Kind regards

Pieter