PVSSType Object

The PVSSTYPE object describes the data type of the element. It is necessary to specify the following:

Data Point Element Data – PvssType

Data

Use

Description

PvssType

Mandatory

String representing the data type of the element.

  • If the element is a reference, also the referenced Data Point Type must be specified in the Ref property.
  • If the element is a structure, all its internal Data Point Elements must be defined in the DPES property.
  • If the type is a set, the element of the set must be specified in the DPES property.

For details about the acceptable values, see Element Types.

Ref

Mandatory, in case the element is a reference.

Name of the referenced data point type.

DPES

Mandatory, in case the element is a structure or a set.

List of internal DPEs description.

Status

Optional

Object representing an extension of the PvssType configuration. The content of this object depends on the PvssType specified. For details, in Status Object see Table Data Point Element Status. The empty object (“Status”: { }) resets data.

ArrayAttributes

Optional

Object representing an extension of the PvssType configuration. The content of this object depends on the PvssType specified and is valid only in case of arrays. For details, in ArrayAttributes Object see Table Data Point Element ArrayAttributes. The empty object (“ArrayAttributes”: { }) resets the data.

Example

{

    "DPTData": {

        "DPTS": [

            {

                "Name": "Test_NormalPoint",

                "DPES": [

                    { "Name": "Char_Value", "PVSSTYPE": { "PvssType": "CHAR" } },

                    { "Name": "UInt_Value", "PVSSTYPE": { "PvssType": "UINT" } },

                    { "Name": "Enum_Value", "PVSSTYPE": { "PvssType": "UINT" } },

                    { "Name": "Int_Value", "PVSSTYPE": { "PvssType": "INT" } },

                    { "Name": "Float_Value", "PVSSTYPE": { "PvssType": "FLOAT" } },

                    { "Name": "Bool_Value", "PVSSTYPE": { "PvssType": "BOOL" } },

                    { "Name": "Bit32_Value", "PVSSTYPE": { "PvssType": "BIT" } },

                    { "Name": "Duration_Value", "PVSSTYPE": { "PvssType": "UINT" } }

                ]

            }

        ]

    }

}