Hello all,
I have the following script that I run in the script console:
tagdict = {
'historyEnabled': True,
'formatString': u'#,##0.00',
'historicalDeadband': 0.05,
'scaleMode': u'Linear',
'historyProvider': u'Hist',
'rawHigh': 4095.0,
'opcItemPath': u'ns=2;s=PLC00.PLC00.P00_TnkLvl@Float',
'historyMaxAgeUnits': 'HRS',
'opcServer': u'ServerMain',
'engUnit': u'Ft',
'documentation': u'History Floating Point Tag',
'dataType': u'Float4',
'alarms': [{'setpointA': 7.0, 'notes': u'Floating Point High Alarm', 'priority': u'High', 'mode': u'AboveValue', 'name': u'High', 'inclusiveA': False}, {'setpointA': 2.0, 'notes': u'Floating Point Low Alarm', 'mode': u'BelowValue', 'name': u'Low', 'inclusiveA': False}],
'historicalDeadbandStyle': u'Discrete',
'sampleMode': u'TagGroup',
'name': u'HistoryFloat',
'engHigh': 10.0,
'valueSource': 'OPC'
}
system.tag.configure("[Default]_TestImport",tagdict,'m')
When the tag gets created, it has Uncertain_InitialValue. The only thing I can figure out is that when I create the tag with history disabled the value will come back in. This gateway is running 8.0.16. Has anyone else run into this behavior?
Thanks,
Brandon