on ‎2011 Jan 26 6:11 PM
I created a new Notification node and configured as following:
1 - Trigger
Enabled = true
Trigger Type = Always
I am using this configuration because I want to send always, under any condition.
2 - Output
Expression = if (LRF_N245_44> 1, LRF_N245_44, LRF_N245_44)
I am using this expression because I want to send and I know that the value of this tag is always greater than 1.
I would like assign a value directly in the expression, for example 'Test', but returns the following error: "[Fatal severity =] Expression at row [1] not Associated with system", so that's why I am using the expression above.
Testing the Output option manually in the "Test Delivery Notification" I have succeeded in sending and receiving in MII. I get the message perfectly in the MII transaction.
3 - Realiability
Maximum Retry Attempts = 0
Retry Interval = 10
Failed Message Persistence = KeepLast
Lifetime: Day 0 =
Hours = 0
Minutes = 0
4 - Destinations
Destinations settings are working perfectly, I konw because the manual test sends the message successfully and when I run the connection test get the message successfully.
With these settings the post never triggered automatically.
Appreciate any help.
Request clarification before answering.
Hi Marcelo,
So all you want to do is send the actual value of this tag, whenever the value of this tag changes?
If this is the case, for the trigger expression try
'LRF_N245_44' (single quotes)
and for the output, use "LRF_N245_44" (double quotes) which should give you the tagname.
If this is not the case, let me know.
Kind Regards,
Diana Hoppe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Diana,
Thank you for your reply, I configured as directed and the messages are being sent successfully to the MII.
Now I have another question:
In the first message sent after activate the service, I get the current value of tag perfectly, but in subsequent messages always get the value 2 where I expected to receive the current value of the tag.
Could tell me the reason why this happens?
Hi Diana,
I Installed the 2.1.4 version but remains same error.
I noticed the following:
- I configured the subscription items:
Name = ABC
Source = [CALCINACAO]CONTADOR (this is a name of the tag in PLC)
DeadBand = 5
- I configured the Notification:
Trigger = ontrue / ABC > 1
Output = Expression : If I use '[CALCINACAO]CONTADOR' in my expression, then I get the error message (The given key was not present in the dictionary.). Then I use the ABC variable in my expression. If I no use single quotes then I have the error (Expected token that differes from that found. (Expected:'<EOF>', Found:'[') in experssion editor.
With this configuration, what happens is the following :
In the first message received the current value of the [CALCINACAO]CONTADOR tag, but subsequents message received the value 5 (DeadBand).
I can seamlessly access the current value of this tag using a tag query.
I believe that the issue is the tag name with [ character.
Are you know any way for work arround of this issue?
Many Thanks.
Marcelo,
Dianas suggestion should work, what is the version of PCo?
SingleQuote - For Tag Value
DoubleQuotes for Hard coded values
if ('LRF_N245_44'> 1, 'LRF_N245_44', 'LRF_N245_44')
Regards,
Ajay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PS: 5 - The OPC Server and the PCO are running on the same PC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.