Ignition 8.0.8
I can create a MEMORY Boolean tag using scripting.
However, it does NOT quite show up correctly in the Tag Editor.
Is the tag ACTUALLY setup correctly in Ignition?
Is this just a display problem with the Tag Editor?
Can I still use the tag in scripting like it is setup correctly as a Boolean?
Here is the script I am using SUCCESSFULLY to create the tag…
Tag Provider is already created WAY before this.
Tag Group is already created WAY before this.
#Create a MEMORY tag that is boolean
sFolder = "[insertYourTAGprovider]"
sTagname = 'aMEM'
sFullTag = sFolder + '\\' + sTagname
if not system.tag.exists(sFullTag):
sCollisionPolicyAbort = "a"
tagsetup = {"name": sTagname, "tagGroup": "insertYourTAGgrouphere", "enabled": True, "valueSource":"Memory", "dataType": "Boolean", "value": False, "accessRights":"Read_Write"}
system.tag.configure(sFolder, [tagsetup], sCollisionPolicyAbort)
Look in DESIGNER and in the tree it says “Memory” beside the tagname.
It actually is a BOOLEAN.
HOWEVER, when I double click the tag in the DESIGNER, it says Value Source = OPC.
Which means I can not “see” the Data Type = Boolean…even though in the tree, it is BOOLEAN.
This doesn’t seem right to me.
What am I doing wrong?
Thanks