User Tools

Site Tools


wiki:udtupload

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:udtupload [2023/08/02 21:40] mbrauerwiki:udtupload [2023/08/02 21:48] (current) mbrauer
Line 1: Line 1:
 ====== Uploading JSON File for UDT Creation in Tag Provider ====== ====== Uploading JSON File for UDT Creation in Tag Provider ======
  
-In Ignition, User-Defined Types (UDTs) are custom data types that allow you to group multiple tags into a single, reusable structure. You can create UDTs manually in the Ignition Designer, but you can also upload UDT definitions from JSON files. This guide will walk you through the process of uploading a JSON file that meets the UDT JSON requirements and creates UDTs in a tag provider+In Ignition, User-Defined Types (UDTs) are custom data types that allow you to group multiple tags into a single, reusable structure. You can create UDTs manually in the Ignition Designer, but you can also upload UDT definitions from JSON files through the SiteSync Module. This guide will walk you through the process of uploading a JSON file that meets the UDT JSON requirements and creates UDTs in a tag provider when a device checks in.
- +
-===== Prerequisites ===== +
- +
-- Access to Ignition Gateway with appropriate permissions to create and edit UDTs. +
-- A valid JSON file that adheres to the UDT JSON requirements.+
  
 ===== UDT JSON Requirements ===== ===== UDT JSON Requirements =====
Line 20: Line 15:
 <code json> <code json>
 { {
-  "name": "MyUDT", +    "name": "MyUDT", 
-  "type": "UdtType", +    "tagType": "UdtType", 
-  "tags":+    "tags":
-    +        
-      "name": "Temperature", +            "dataType": "String", 
-      "type": "Float", +            "name": "ExampleTagFolder", 
-      "opcItemPath": "[Device]Temperature", +            "tagType": "AtomicTag", 
-      "description": "Temperature measurement in Celsius+            "valueSource": "memory" 
-    }, +        }, 
-    +        { 
-      "name": "Pressure", +            "name": "ExampleTagFolder", 
-      "type": "Float", +            "tagType": "Folder", 
-      "opcItemPath": "[Device]Pressure", +            "tags": [ 
-      "description": "Pressure measurement in bar+                { 
-    +                    "dataType": "String", 
-  ]+                    "name": "Temperature", 
 +                    "tagType": "AtomicTag", 
 +                    "valueSource": "memory" 
 +                }, 
 +                
 +                    "dataType": "String", 
 +                    "name": "Battery", 
 +                    "tagType": "AtomicTag", 
 +                    "valueSource": "memory
 +                
 +            ] 
 +        } 
 +    ]
 } }
 </code> </code>
Line 41: Line 48:
 ===== Conclusion ===== ===== Conclusion =====
  
-In this guide, you learned how to upload a JSON file that meets the UDT JSON requirements to create UDTs in a tag provider using Ignition. Leveraging UDTs allows you to efficiently organize and manage your tags, making your Ignition projects more organized and maintainable.+UDTs allow you to efficiently organize and manage your tags, making your SiteSync devices more organized and maintainable. 
  
wiki/udtupload.1691012420.txt.gz · Last modified: 2023/08/02 21:40 by mbrauer