Reading and Writing Tags
Using the system functions, you can read from a tag and write to a tag in Ignition.
Reading from a tag
Reading a tag with scripting using a system.tag.read() function requires the tag path and will return a 'Qualified Value.' A qualified value is the tag value that has three attributes; Value, Quality, TimeStamp.
value = system.tag.read("tagPath").valuequality = system.tag.read("tagPath").qualitytimestamp= system.tag.read("tagPath").timestampWriting to a tag
Writing to a tag with the system.tag.write() function requires the tag path and the value to write to the tag.
system.tag.write("tagPath","Hello World")