Support Forums
Trigger for when a tag changes value

I've looked and tested and seem to be missing what seems to be a simple concept. I'm also trying to stay away from scripting, even though I know I've found examples of doing what I need there.

I'd like to have a tag, using expressions or a special tag that I might have missed, to update based on another tag getting its value updated. I've used a trigger tag and have gotten close, but I seem to be going in circles.

Trigger tags seem to be what I need, but I've failed to be able to enable and disable successfully. Before I post any logic I just hoped I could get some direction.

Thanks in advance.

I've looked and tested and seem to be missing what seems to be a simple concept. I'm also trying to stay away from scripting, even though I know I've found examples of doing what I need there. I'd like to have a tag, using expressions or a special tag that I might have missed, to update based on another tag getting its value updated. I've used a trigger tag and have gotten close, but I seem to be going in circles. Trigger tags seem to be what I need, but I've failed to be able to enable and disable successfully. Before I post any logic I just hoped I could get some direction. Thanks in advance.

Just another user here. Yeah this is one of those frustrating things that should be simple but I can’t think of anything that simple.
So my idea would be a multiwrite tag.

The write list tab would be where you define the value written to the second tag.

The trigger for this would be the change in value of the first tag right?

So in the trigger tab of the multiwrite tag, I think you can try:

Latch( Change(TagName, 0.1), Timeout(Change(TagName,0.1), 1))

So, change TagName to your tag and 0.1 to your deadband you’re looking for.

I haven’t tested this. But I think what will happen is that when TagName changes by at least 0.1, this expression will return a value of 1. It will then go back to zero after 1 second after this change occurs and be ready for the next change. Let me know if this works/helps.

I still struggle with things like this. VT is great but little things I’m used to from Intouch and other HMI apps, like creating simple “on data change” scripts, etc just have to be handled differently.

Just another user here. Yeah this is one of those frustrating things that should be simple but I can’t think of anything that simple. So my idea would be a multiwrite tag. The write list tab would be where you define the value written to the second tag. The trigger for this would be the change in value of the first tag right? So in the trigger tab of the multiwrite tag, I think you can try: Latch( Change(TagName, 0.1), Timeout(Change(TagName,0.1), 1)) So, change TagName to your tag and 0.1 to your deadband you’re looking for. I haven’t tested this. But I think what will happen is that when TagName changes by at least 0.1, this expression will return a value of 1. It will then go back to zero after 1 second after this change occurs and be ready for the next change. Let me know if this works/helps. I still struggle with things like this. VT is great but little things I’m used to from Intouch and other HMI apps, like creating simple “on data change” scripts, etc just have to be handled differently.
edited Mar 14 at 3:42 am
77
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft