[FEATURE]Tag Browser: Add options to copy all config into JSON

It would save a lot of time if two options could be added into the tag browser context menu when trying to copy tag JSON:

  1. For tags part of a UDT instance, “Copy JSON (All Non-default)” which would copy all non-default values for that tag. At the moment, we only get the non-default config relative to the UDT instance (i.e. we only get the name, data type, and any overridden properties on that tag, we don’t get the non-default properties configured on that tag within the UDT definition). Parameters should be applied in the copied JSON. This would be useful if you wanted to create a new standard tag from a UDT tag or when converting a UDT instance from a UDT into standard tags (for example when you realise that using a UDT will be more work than it’s worth as you will have too many variations)

Copy tag from UDT instance:

{
  "name": "Mode",
  "tagType": "AtomicTag"
}

Copy tag from UDT definition: (this is what I want to be able to copy from the UDT instance, with parameter placeholders applied)

{
  "opcItemPath": {
    "bindType": "parameter",
    "binding": "ns\u003d1;s\u003d[{PLCName}]{Global.}{DeviceName}.Mode"
  },
  "valueSource": "opc",
  "HistoryMaxAge": 6.0,
  "writePermissions": {
    "type": "AllOf",
    "securityLevels": []
  },
  "documentation": "0 - Auto\n1 - Manual",
  "historicalDeadbandStyle": "Discrete",
  "tagGroup": "Default_1500",
  "historyTagGroup": "",
  "enabled": true,
  "tagType": "AtomicTag",
  "readOnly": false,
  "dataType": "Int4",
  "historyProvider": "SQLServer",
  "historyMaxAgeUnits": "HOUR",
  "historyEnabled": true,
  "name": "Mode",
  "readPermissions": {
    "type": "AllOf",
    "securityLevels": []
  },
  "opcServer": "Ignition OPC-UA Server"
}
  1. Add an option to “Copy JSON (All, including defaults)” which would copy the tags and include all default values.This would be more useful for documentation more than anything else.

Vote here:

1 Like