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
| Name | Type | Comment |
|---|---|---|
| unit | WeightUnit | the weight unit |
Code
Declaration
TYPE Weight EXTENDS MetricParameter:
STRUCT
(* the weight unit *)
unit :WeightUnit := WeightUnit.GRAM;
END_STRUCT
END_TYPE