Contents
Partner Programs
Sepasoft - MES Modules
Cirrus Link - MQTT Modules
Resources
Knowledge Base Articles
Inductive University
Forum
IA Support
SDK Documentation
All Manual Versions
Ignition 8.0
Ignition 7.9
Ignition 7.8
Writes a value to a tag. If suppressErrors is true, error messages on failed writes will not be shown.
This scripting function has no Client Permission restrictions.
system.tag.write(tagPath, value, [suppressErrors])
String tagPath - The path of the tag to write to.
Object value - The value to write.
Boolean suppressErrors - A flag indicating whether or not to suppress errors. [optional]
int - 0 if the write failed immediately, 1 if it succeeded immediately, and 2 if it is pending.
All
# This code would go on a property change event for a numeric text field to calculate and write a value to a tag. if event.propertyName == intValue: calcValue = event.newValue * 2.5 system.tag.writeToTag("Tanks/tankHiSP",calcValue)