GetUnitTextForUnit

function GetUnitTextForUnit(ctx: Context, UnitID: string)

Gets unit text property of unit identified by UnitID parameter, waits for Configurator control to load unit config from unit_config.json file.

Parameter

Name

Type

Description

ctx

TcHmi.Context

  • Context object
  • Does not need to be specified by the user when used in a trigger or function expression. In this case the transfer and the evaluation is done by the corresponding parser.
  • Is used by the caller to indicate success or failure to the framework during execution.
  • If the function is used directly in JavaScript/TypeScript, the context object must be passed in the call and evaluated if necessary.

UnitID

string

Unit ID of the unit whose text property is to be read.

Return value

Type

Description

void

No return value.

NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Controls

Available: since version 12.6.0