I’m trying to run a Gateway Tag Change Script. All I’m trying to do write to the “Truck Loading/WI_TL1” tag, once the “Modbus/W_TL1/Net” tag has been changed. I can’t seem to get this to work at all.
The purpose of the second line of code is to display a text box, but I only placed that line there to see if the code is actually running. The text box is not showing up, so either my syntax is very wrong (I’m not getting any sort of error messages though), or the script isn’t running at all.
I am running Ignition 7.9.6 on a trial mode, I’m not sure if running Gateway Event Scripts is a feature available with a license. Getting this to work on this project is pretty crucial, so I would really appreciate any help on this. Thanks a lot in advance!
tagValue = system.tag.read(“Modbus/W_TL1/Net”)
system.gui.messageBox(“This value equals %d” % tagValue.value)
system.tag.write(“Truck Loading/WI_TL1”, tagValue.value)