system.tag.addTag(parentPath, name, tagType, dataType, accessRights, enabled, value, attributes, parameters, overrides, alarmList, alarmConfig)
String parentPath - The folder to add the tag to. Leave blank for the root folder.
String name - The name of the tag.
String tagType - The type of tag to create. Possible values are OPC, MEMORY, EXPRESSION, QUERY, Folder, and UDT_INST.
String dataType - The data type of the tag. Not used for UDT instances or folders.
Possible basic values are Int1, Int2, Int4, Int8, Float4, Float8, Boolean, String, DataSet, and DateTime.
Possible array values are Int4Array, Int8Array, Float8Array, BooleanArray, StringArray, DateTimeArray.
String accessRights - The access rights for a tag. Possible values are Read_Only, Read_Write, and Custom.
boolean enabled - If true, the tag will be enabled.
Object value - The value of the tag. Used for memory tags.
PyDictionary attributes - The tag's configuration attributes.
PyDictionary parameters - The parameters for a UDT instance tag.
PyDictionary overrides - All of the overrides for a UDT instance tag.
String alarmList - List 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.
PyDictionary alarmConfig - The alarm configuration for the tag. See editAlarmConfig for details on how to use this parameter.
Nothing
All
Associated attributes:
2 Comments
Anonymous
It appears as if the dataType values have changed. Int8 no longer seems to be accepted.
Paul Scott
Greetings,
I just attempted this, and it appears to have worked correctly. If you're still running into trouble with this, then please report the issue to our support department.