Skip to content

describe SampledValueControl #31

Open
@JakobVogelsang

Description

@JakobVogelsang

As a user of scl-diff I would like to have the SCL element SampledValueControl described.

Requirements

  • return a SampledValueControlDescription
type SmvOpts = {
  /** SmvOpts attribute refreshTime defaulted to false */
  refreshTime: boolean;
  /** SmvOpts attribute sampleSynchronized defaulted to true */
  sampleSynchronized: boolean;
  /** SmvOpts attribute sampleRate defaulted to false */
  sampleRate: boolean;
  /** SmvOpts attribute dataSet defaulted to false */
  dataSet: boolean;
  /** SmvOpts attribute security defaulted to false */
  security: boolean;
  /** SmvOpts attribute timestamp defaulted to false */
  timestamp: boolean;
  /** SmvOpts attribute synchSourceId defaulted to false */
  synchSourceId: boolean;
}

export interface SampledValueControlDescription
  extends ControlWithIEDNameDescription {
  /** SampledValueControl attribute multicast defaulted to true */
  multicast: boolean;
  /** SampledValueControl attribute smvID */
  smvID: string;
  /** SampledValueControl attribute smpRate*/
  smpRate: number;
  /** SampledValueControl attribute nofASDU */
  nofASDU: number;
  /** SampledValueControl attribute smpMod defaulted to "SmpPerPeriod" */
  smpMod: "SmpPerPeriod" | "SmpPerSec" | "SecPerSmp" ;
  /** SampleValueControl attribute securityEnable defaulted to "None" */
  securityEnable: "None" | "Signature" | "SignatureAndEncryption";
  /** SampledValueControl child Protocol */
  protocol?: {mustUnderstand: true, val: "R-SV"};
  /** SampledValueControl child SmvOpts */
  smvOpts: SmvOpts;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions