Skip to main content

Length

Short summary

A datatype for distances based on physical length units. It can be converted to other units with the function CNM_RecipeHandling.ConvertLength.

Access: -

Inherits from: MetricParameter

NameTypeComment
unitLengthUnitthe length unit

Code

Declaration

TYPE Length EXTENDS MetricParameter:
STRUCT
(* the length unit *)
unit :LengthUnit := LengthUnit.METER;
END_STRUCT
END_TYPE