cancel
Showing results for 
Search instead for 
Did you mean: 

Remote notification not getting triggered SAP Plant Connectivity PCo 15.4

illorca
Explorer
582

Hello community!

I have connected an OPC UA server with SAP S4 using PCo 15.4. I am able to read the tags from SAP without problems. In this case I have a tag that is increasing all the time, I want to create a notification so every hour or certain time it gets the tag's value sent to SAP. So I created a remote notification template, and it is working fine if I use the trigger option 'Always'. The problem is that it sends 1 notification every second. So I changed the notification trigger to 'OnTrue' with the following expression:

As I understand this should trigger the notification 3 times per hour, but it is not working. In the logs I can observe the following:

It seems that the data change event is generated in the PCo, but the PCo discards it due the deadband range?, it is strange because the deadband is 0. And if that is the case, why if I enable the trigger with 'Always' the notification is not discarded.

Please advise if I am doing something wrong, or if I am missing something.

agentry_src
Active Contributor
0 Kudos

Did you try it with only one trigger?

Accepted Solutions (0)

Answers (2)

Answers (2)

agentry_src
Active Contributor

Upon further inspection, it looks like you have the trigger firing only on subscription items which are in the trigger, but you have no subscription items in the trigger. Try using the second radio button instead.

Regards, Mike

illorca
Explorer
0 Kudos

Dear Mike, thank you for your fast response, I changed the expression (so it got triggered every 5 minutes) and the radio button as you suggested:

but I keep with the same problem,,, reading the logs it says the value is out of the deadband, but the deadband is zero:

illorca
Explorer
0 Kudos

Ok lets see, I was testing different cases, and using the second radio button (the same happen with the third one), and this expression:

! (minute(datenow) % 5) && 'REMOTA_PM_2021-03-26T14_03_12_1|Value' > 0

it works ok. But if I am the following expression it does not work:

! (minute(datenow) % 5) 

that tag is used in the output expression, so it should work using both expressions in the trigger. As I can see, it is mandatory to add a tag in the trigger's expression?

Also, the problem is that I am using remote notifications, so all the process should be done from SAP without accessing the PCo. It is not possible to change the radio button in the notification template, and it is not possible to add the tag in the expression neither.

agentry_src
Active Contributor
0 Kudos

According to the documentation, I do not believe that the Trigger needs a tag and what you had should work. However, PCo has changed a bit since I was working heavily with it years ago. Can you try scheduling it for every 15 minutes instead of using a trigger?

agentry_src
Active Contributor
0 Kudos

At this point, I think you should open a ticket as it really should work in the second case (at least how I interpret the documentation).

agentry_src
Active Contributor
0 Kudos

Try putting parentheses around each section of the expression like so: (minute(datenow) == 20).

illorca
Explorer
0 Kudos

It is not working:

I do not believe it is an expression problem...

agentry_src
Active Contributor

Can you change your deadband setting to something other than 0 (which may be interpreted as something other than zero), like maybe 50 (percent)?

See paragraph 4.4.6 in

https://help.sap.com/doc/302a83e81be74549bbc31509bb1b4246/15.3.1/en-US/Application_HELP_EN.pdf

Regards, Mike

illorca
Explorer
0 Kudos

thank you Mike, I am using an UA server, so the deadband is in absolutes, not percentages. I miss read the log, the deadband is 0, so it is ok that the value is outside, that should trigger the notification. But for some reason the trigger expression is not getting evaluated by the PCo.