ConvToDisplayUnit

function ConvToDisplayUnit(GroupID: string, SrcVal: number, RefVal: number): number

Converts given SrcVal value in system unit to right display unit value, using provided group ID and reference value.

Parameter

Name

Type

Description

GroupID

string

The unit group of the source value.

SrcVal

number

The value to be converted.

RefVal

number

Reference value resulting in 100% if display or system unit is Percent.

Return value

Type

Description

number

Result in display unit of given unit group.

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

Available: since version 12.6.0