SetSystemUnitForUnitGroup

SetSystemUnitForUnitGroup (ctx: Context | null, GroupID: string, UnitID: string)

Sets given unit identified by parameter UnitID as system unit for unit group identified by parameter GroupID.

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.

GroupID

string

The unit group ID.

UnitID

string

The unit ID to set as system unit.

Return value

Type

Description

void

No return value.

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

Available: since version 12.6.0