In my project, I have configured a tag change script to run on ‘new value’; However, I noticed that this script gets triggered every time I save the project and publish the project. Is there any way to ensure that the tag change script only when the tag value changes
You should be able to get around this by adding the following line to the top of your tag change scripts:
if not initialChange:
#rest of your code
The initialChange property is special to tag change scripts and tells you whether or not the tag change was caused by initially subscribing to the tag or not.
2 Likes
Anytime you modify the Gateway scripts, they affect the Ignition system immediately (there is no STAGING for Gateway script changes). Ignition will restart all Gateway scripts to make sure the most up-to-date scripts are running. You can see this in the web portal console.
Worked for me! thanks Dave. That's what exactly I was looking for.