Skip to main content
Version: 7.9

system.tag.editTags

This function is used in Python Scripting.

Description

Edit multiple existing Tags in Ignition with a single call. This will not work on Client Tags, because there is a Client Provider for each project.

New in 7.9.8
This can now be used to edit members of a nested UDT instance.

Client Permission Restrictions

Permission Type: Tag Editing

Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.

Syntax

system.tag.editTags(tagPaths, attributes, parameters, accessRights, overrides, alarmList, alarmConfig[, provider][, json])

Parameters

TypeParameterDescription
String[]tagPathsThe full path to the Tag you want to edit. For members of UDT instances, the tagPath will be the path to the UDT instance, with the overrides parameter listing out the member Tags to edit.
Note: You can specify the tag provider name in square brackets at the beginning of the parentPath string. For example, [myTagProvider]MyTagsFolder. If the tag provider name is left off then the project default provider will be used.
PyDictionaryattributesThe Tag's configuration attributes.
PyDictionaryparametersThe parameters for a UDT instance Tag.
StringaccessRightsThe access rights for a Tag. Possible values are Read_Only, Read_Write, and Custom.
PyDictionaryoverridesAll of the overrides for a UDT instance Tag.
StringalarmListList of legacy alarms for the Tag. The legacy alarm system was retired in 7.6.0, so the alarmConfig parameter should be utilized on newer versions.
PyDictionaryalarmConfigThe alarm configuration for the Tag.
StringproviderThe name of the Tag provider, used in conjunction with the JSON argument. The default value is the default Tag provider. Optional
StringjsonThe properties to edit on Tags, represented as a JSON object. When using this, it acts as a replacement for other parameters. Optional.

Returns

Nothing

Scope

All

Code Examples

There are no examples associated with this scripting function.