ConvToSystemUnit

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

Converts given value in display unit to appropriate system unit value, using provided GroupID and RefVal parameters.

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 system unit of given unit group.

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

Available: since version 12.6.0