Skip to main content

Velocity

Short summary

A datatype for velocities based on physical units. It can be converted to other units with the function CNM_RecipeHandling.ConvertVelocity.

Access: -

Inherits from: BaseParameter

NameTypeComment
distanceUnitLengthUnit-
distancePrefixMetricPrefixes-
timeUnitDurationUnit-
timePrefixMetricPrefixes-

Code

Declaration

TYPE Velocity EXTENDS BaseParameter:
STRUCT
distanceUnit :LengthUnit := LengthUnit.METER;
distancePrefix :MetricPrefixes := MetricPrefixes.NONE;
timeUnit :DurationUnit := DurationUnit.SECONDS;
timePrefix :MetricPrefixes := MetricPrefixes.NONE;
END_STRUCT
END_TYPE