Default configuration in tags. How do I know?

Hi!
Having this two tags:

{
"tagType": "AtomicTag",
"value": 10,
"readOnly":false
}
{
"tagType": "AtomicTag",
"value": 10
}

Is there any real difference? If you don't set the readOnly propertie it defaults to false. What is the point of actually writting it? How could I get ALL the configuration even if is not set?

I'm simply trying to understand how tags saves the information.

Thanks!

To overwrite a default from a UDT or similar.

1 Like

But if I don't overwrite how do I know what parameter is using? I mean, how do I know that, for example, is using "readOnly" as false if is not writted?

Am I explaning myself?

Because if it was true, it would be listed in the config.
If you write it to false, then read it again, it will just be missing.
If you write it to true, then read it again, it will show as true.

If you have a doubt that the setting is false, you can set it to false and it will change if it was not.
I don't understand what the issue is? Has this broken a script?

If I config it manually to false it shows this:

{
"tagType": "AtomicTag",
"value": 10
}

If I set it to true it shows this:

{
"tagType": "AtomicTag",
"value": 10,
"readOnly": true
}

If I set it to false again then it shows this:

{
"tagType": "AtomicTag",
"value": 10,
"readOnly": false
}

So I don't get it.. Set it to false or not having it is the same (?)

What is the problem you need us to help solve?

I wanna compare 2 tags.
But having it to false and not having it should be the same. Because it has the same meaning. And I don't know how to do that

In order to save “space" (I’m guessing that’s the reason - could also be to simplify updates) - The tags only contain configuration that varies from the default values for that tag type. But also values for anything that HAS been changed at some point from the default - as you found.

If you want to know the actual value for something, be it default or not, simply use a tag read command. Something such as system.tag.read(‘[default]MyTag.readOnly’)[0].value will get you the current setting of readOnly. You can also use the same path for writing that value rather than system.tag.configure…

Where to find a table of defaults - not sure..

1 Like

It isn't a table, but a model.

2 Likes

I would use the Tag Report Tool for this, where possible. It’s usefulness starts to break down when trying to compare things like UDT parameters and Alarm configurations, but has been very useful for me in comparing runtime values.

If scripting is preferred, the tool gives you the ability to copy a configured query as script.

1 Like