Skip to content
Start free evaluation

PDComm.GemStatusVariable

Struct

Represents a status variable that GemEquipmentWorker registers on its endpoint at startup.

public readonly record struct GemStatusVariable

Parameters

NameDescription
IdThe status variable ID (SVID).
NameThe status variable name (SVNAME); ASCII only.
UnitsThe units (UNITS); ASCII only, may be empty.
ValueThe initial value. The worker encodes it while the start method runs, so the caller keeps ownership and may dispose it after the start method returns.

Members

GemStatusVariable

Constructor

Represents a status variable that GemEquipmentWorker registers on its endpoint at startup.

public GemStatusVariable(uint Id, string Name, string Units, SecsItem Value)

Parameters

NameDescription
IdThe status variable ID (SVID).
NameThe status variable name (SVNAME); ASCII only.
UnitsThe units (UNITS); ASCII only, may be empty.
ValueThe initial value. The worker encodes it while the start method runs, so the caller keeps ownership and may dispose it after the start method returns.

Id

Property

The status variable ID (SVID).

public uint Id { get; init; }

Name

Property

The status variable name (SVNAME); ASCII only.

public string Name { get; init; }

Units

Property

The units (UNITS); ASCII only, may be empty.

public string Units { get; init; }

Value

Property

The initial value. The worker encodes it while the start method runs, so the caller keeps ownership and may dispose it after the start method returns.

public SecsItem Value { get; init; }