on 2021 Mar 26 12:26 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Try putting parentheses around each section of the expression like so: (minute(datenow) == 20).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.