ArrayAttributes Object

The ArrayAttributes object must contain the following:

Data Point Element ArrayAttributes

Data

Use

Description

Valid

Optional

Validity flag. If false, the display data is set but considered invalid.

TextGroup

Optional

The name of the text group. The empty string (“TextGroup”: “”) resets the text group.

 

Group ID Values

GroupId String

Description

INVALID

Invalid

STATUS

Status group

CONFIG

Configuration group

DIAGNOSTIC

Diagnostic group

OWNERSHIP

Ownership group

 

Display Data

Data

Use

Description

Valid

Optional

Validity flag. If false, the display data is set but considered invalid.

Icon

Optional

Object containing the data of the icon library and icon to be used to represent the property. For details, see Table Icon Data, below. The empty object (“Icon”: { }) resets the icon.

 

Icon Data

Data

Use

Description

Library

Optional

Name of the library that contains the icon to be used to represent the property. If the string is empty (“Library”: “”), the icon is ignored.

NOTE: If the Library or the Name are empty (it is enough that only one of them is empty), the icon is ignored.

Name

Optional

Name of the icon to be used to represent the property. If the string is empty (“Name”: “”), the icon is ignored.

NOTE 1: If the Library or the Name are empty (it is enough that only one of them is empty), the icon is ignored.

NOTE 2: The icon name must contain the file extension (for example: “.png”, “.ico”, and so on). If the extension is not specified, “.png” is assumed.

It is also possible to specify the GmsType of the property. For details about the acceptable values, see Table GMSType.

Example

{

    "DPTData": {

        "DPTS": [

            {

                "Name": "*",

                "DPES": [

                    { "Name": "MyMandatoryFields", "PvssType": { "PvssType": "REF", "Ref": "_GmsMyMandatoryFields" } }

                ]

            },

            {

                "Name": "Test_NormalPoint",

                "Description": [ { "Culture": "en-US", "Text": "Normal Point" } ],

                "ManagedType": 0,

                "DefaultProp": "Float_Value",

                "Validation": true,

                "GenericCreate": true,

                "GenericDelete": true,

                "MaxChildren": 10,

                "ChildName": "NormalPoint",

                "ChildNameReadOnly": false,

                "ParentTypes": [ "GMS_Aggregator", "GmsOPCNetwork" ],

                "Classification": {

                    "Disc": 0,

                    "SubDisc": 0,

                    "Type": 0,

                    "SubType": 0

                },

                "DPES": [

                    {

                        "Name": "Char_Value",

                        "PvssType": {

                            "PvssType": "CHAR",

                            "Status": {

                                "Stat": true,

                                "DisplOffNormal": true,

                                "NormalValue": 101

                            }

                        },

                        "VL": true,

                        "AL": true,

                        "DL0": true,

                        "DL1": true,

                        "DL2": false,

                        "DL3": false,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "Char Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        },

                        "GmsType": { "GmsType": "GMSUINT" }

                    },

                    {

                        "Name": "UInt_Value",

                        "PvssType": { "PvssType": "UINT" },

                        "VL": true,

                        "AL": true,

                        "DL0": false,

                        "DL1": false,

                        "DL2": true,

                        "DL3": true,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "Unsigned Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        }

                    },

                    {

                        "Name": "Enum_Value",

                        "PvssType": { "PvssType": "UINT" },

                        "VL": true,

                        "AL": true,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "Enum Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        }

                    },

                    {

                        "Name": "Int_Value",

                        "PvssType": { "PvssType": "INT" },

                        "VL": true,

                        "AL": true,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "Integer Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        }

                    },

                    {

                        "Name": "Float_Value",

                        "PvssType": { "PvssType": "FLOAT" },

                        "VL": true,

                        "AL": true,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "Real Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        }

                    },

                    {

                        "Name": "Bool_Value",

                        "PvssType": { "PvssType": "BOOL" },

                        "VL": true,

                        "AL": true,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "Bool Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        }

                    },

                    {

                        "Name": "Bit32_Value",

                        "PvssType": { "PvssType": "BIT" },

                        "VL": true,

                        "AL": true,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "BitString Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        }

                    },

                    {

                        "Name": "Duration_Value",

                        "PvssType": { "PvssType": "UINT" },

                        "VL": true,

                        "AL": true,

                        "Persist": true,

                        "GroupId": "CONFIG",

                        "Description": [ { "Culture": "en-US", "Text": "Duration Value" } ],

                        "Display": {

                            "Valid": true,

                            "Icon": {

                                "Library": "Global_Base_HQ_1",

                                "Name": "Op_DP_Generic_None_001.png"

                            }

                        }

                    }

                ]

            },

            {

                "Name": "Test_PointWithArray",

                "Description": [ { "Culture": "en-US", "Text": "Point with Array" } ],

                "ManagedType": 0,

                "DefaultProp": "ArrChar_Value",

                "Validation": true,

                "GenericCreate": true,

                "GenericDelete": true,

                "MaxChildren": 4294967295,

                "ChildName": "PointWithArray",

                "ChildNameReadOnly": false,

                "ParentTypes": [ "GMS_Aggregator" ],

                "Classification":

                {

                    "Valid": true,

                    "Disc": 0,

                    "SubDisc": 0,

                    "Type": 0,

                    "SubType": 0

                },

                "DPES": [

                    { "Name": "ArrChar_Value", "PvssType": { "PvssType": "ARRAYCHAR" } },

                    {

                        "Name": "ArrUInt_Value",

                        "PvssType": {

                            "PvssType": "ARRAYUINT",

                            "Status": {

                                "Stat": true,

                                "DisplOffNormal": true,

                                "NormalValue": 100

                            },

                            "ArrayAttributes": {

                                "Valid" : true,

                                "TextGroup" : "TxG_Status"

                            }

                        },

                    },

                    { "Name": "ArrInt_Value", "PvssType": { "PvssType": "ARRAYINT" } },

                    { "Name": "ArrFloat_Value", "PvssType": { "PvssType": "ARRAYFLOAT" } }

                ]

            }

        ]

    }

}