GmsDuration Configuration

GmsDuration Configuration Data

Data

Use

Description

GmsType

Mandatory

GMSDURATION

Attributes

Optional

Object containing the attributes of the property. For details, see Table GmsDuration Attributes, below. The empty object (“Attributes”: { }) resets the attributes data.

 

GmsDuration Attributes

Data

Use

Description

Valid

Optional

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

Properties

Optional

Object containing the valid range values. For details, see Table GmsDuration Properties, below. If the object is empty (“Attributes”: { }), the range values are reset, while the range is UInt32.MinValue ÷ UInt32.MaxValue.

DurationUnit

Optional

String representing the measurement unit of the property value. For details about the acceptable values, see Table DurationUnit Values, below. If the string is empty (“DurationUnit”: “”), the value is set to PropertyGmsDuration.eUnit.Sec.

DurationRes

Optional

String representing the resolution of the property value. For details about the acceptable values, see Table DurationRes Values, below. If the string is empty (“DurationRes”: “”), the value is set to PropertyGmsDuration.eResolution.Sec.

 

GmsDuration Properties

Data

Use

Description

Min

Optional

Min value.

Max

Optional

Max value.

 

DurationUnit Values

Data

Description

DAY

Day

HOUR

Hour

MIN

Min

SEC

Sec

DSEC

Decimal Sec

CSEC

Centi Sec

MSEC

Milli Sec

 

DurationRes Values

Data

Description

D

Day

DH

Day-Hour

DHM

Day-Hour-Min

DHMS

Day-Hour-Min-Sec

DHMSM

Day-Hour-Min-Sec-Ms

H

Hour

HM

Hour-Min

HMS

Hour-Min-Sec

HMSM

Hour-Min-Sec-Ms

M

Min

MS

Min-Sec

MSM

Min-Sec-Ms

S

Sec

SM

Sec-Ms

Example

{

    "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"

        }

    },

    "GmsType": {

        "GmsType": "GMSDURATION",

        "Attributes”: {

            "Valid": true,

            "Properties”: {

                "Min": 0,

                "Max": 10000

            },

            "DurationUnit": "MSEC",

            "DurationRes": "SM"

        }

    }

}

 

The following image shows the corresponding fields in the Models & Functions tab: