Skip to main content

Weight

Short summary

A datatype for weights based on physical weight units. It can be converted to other units with the function CNM_RecipeHandling.ConvertWeight.

Access: -

Inherits from: MetricParameter

NameTypeComment
unitWeightUnitthe weight unit

Code

Declaration

TYPE Weight EXTENDS MetricParameter:
STRUCT
(* the weight unit *)
unit :WeightUnit := WeightUnit.GRAM;
END_STRUCT
END_TYPE