Import of UDT tag not working

I am trying to import a json file where I clearly have items that are showing up correctly, say in notepad, but when I import them into ignition that information is not coming in correctly. The reason I am doing this is because Ignition can't read in meta data from the plc. My workaround is exporting the tags as a csv file, exporting the UDT to be used from Ignition, using a python script externally to parse through the meta data from plc tag file and put that data into the Ignition UDT file. Then just import it back into Ignition, instead of manually typing the data from the plc into the Ignition UDT. I have successfully got everything working up to importing the UDT back into Ignition. It does not fill in for example the updated description within the UDT. Whenever I open the updated UDT in notepad everything is correct. When I import that into Ignition it is not populating the same data correctly within the UDT.
ARMOR_EA1_5_DIDO_I.json (3.1 KB)

Here is the screenshot of the UDT once it was imported...


You can see all the Descriptions are still Spare Input instead of the descriptions within the json file.

Also here is the original UDT I exported to be used for the python scripting...
DI8.json (2.2 KB)

In your json file, you're trying to write the tagType props of your tags to things like "In 5" which isn't going to work. These should be AtomicTag. You need to be adding in a "value" prop to the tags and setting the value there

1 Like

Ah ok. I took the final UDT, changed the descriptions, then exported that and now I do see what you mean by having a "value" property within that portion of the tag structure.

Thanks!

1 Like