Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to use this Tag Agent to push data to IoT Central, we need to create a Tag Tree in Ignition. Begin by opening Designer. Instructions on how to do this can be found here. Note that link has a lot of information about Designer. For the purposes of this tutorial we're only going to be creating a Tag Tree with memory tags in the Tag Browser. So, not all of the information there is pertinent to this tutorial. Use Designer to create a tag tree as shown below with a single memory tag under the folder structure also shown.

In the tag browser change the Tag Provider from 'default' to 'Azure Injector'. Expand the 'Azure Injector Control' folder to show the 'Refresh' boolean tag as shown below.

Image Added

Now click the Refresh boolean value to change it to true. This won't actually change the value of the tag but will tell Azure Injector to rescan the tag tree for any new tags that may have been added and to push them to Azure IoT Central. You may have to enable 'read/write' mode in Designer before this operation will be successful. Once the write is successful, you should see something similar to the following in Azure IoT Central's portal.

Image Added

This includes the following data messages.

Code Block
{
    "_unmodeleddata": {
        "topic": {
            "namespace": "spBv1.0",
            "edgeNodeDescriptor": "G1/E1",
            "groupId": "G1",
            "edgeNodeId": "E1",
            "type": "NBIRTH"
        },
        "payload": {
            "timestamp": 1638223073190,
            "metrics": [
                {
                    "name": "bdSeq",
                    "timestamp": 1638223073187,
                    "dataType": "Int64",
                    "value": 0
                }
            ],
            "seq": 0
        }
    },
    "_eventtype": "Telemetry",
    "_timestamp": "2021-11-29T21:57:54.067Z"
}


Code Block
{
    "_unmodeleddata": {
        "topic": {
            "namespace": "spBv1.0",
            "edgeNodeDescriptor": "G1/E1",
            "groupId": "G1",
            "edgeNodeId": "E1",
            "deviceId": "D1",
            "type": "DBIRTH"
        },
        "payload": {
            "timestamp": 1638223073192,
            "metrics": [
                {
                    "name": "T1",
                    "timestamp": 1638223073192,
                    "dataType": "Int32",
                    "metaData": {},
                    "properties": {
                        "Quality": {
                            "type": "Int32",
                            "value": 192
                        }
                    },
                    "value": 12
                }
            ],
            "seq": 1
        }
    },
    "_eventtype": "Telemetry",
    "_timestamp": "2021-11-29T21:57:54.098Z"
}