PDComm.GemStatusVariable
Struct
Represents a status variable that GemEquipmentWorker registers on its endpoint at startup.
public readonly record struct GemStatusVariableParameters
| Name | Description |
|---|---|
Id | The status variable ID (SVID). |
Name | The status variable name (SVNAME); ASCII only. |
Units | The units (UNITS); ASCII only, may be empty. |
Value | 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. |
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
| Name | Description |
|---|---|
Id | The status variable ID (SVID). |
Name | The status variable name (SVNAME); ASCII only. |
Units | The units (UNITS); ASCII only, may be empty. |
Value | 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. |
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; }