A unit is a representation of measurement. In STEP, a unit is an Object that can be associated with attributes or LOVs (List of Values). A measurement stored as an attribute will typically consist of a Value and a unit (or unit of measure). This section describes how to setup and maintain units.
Units are maintained in System Setup > Units.
The separation of the unit and the value of a measurement means:
Note: Units can be applied to Attributes and/or LOVs of all validation base types except: Condition, Text, Date, 'ISO Date', 'ISO Date and Time', URL, and Regular Expression.
Example Units:
A unit group is a grouping of compatible units. It contains units that apply to the same measurement. It is thus possible to establish rules for conversion between units within the group.
Unit groups are available for attributes and List of Values (LOVs).
Examples of Unit Groups and Units:
| Unit Group | Units |
|---|---|
|
Temperature |
|
|
Dimension |
|
|
Volume |
|
For example, if the unit group 'Dimension' has been linked to the attribute RopeLength, then the units mm, cm, meters, inches, feet, and yards can be applied to the value of RopeLength.
It is possible to define a conversion rule between two compatible units. Unit conversions are used when e.g. exporting data, and when searching for Attribute Values.
Examples of Unit Conversions:
|
Description |
ID | Name | Conversion |
|---|---|---|---|
|
Time (s): |
|
|
|
|
Second |
unece.unit.SEC |
s |
|
|
Minute |
unece.unit.MIN |
min |
(1 min = 60 s) |
|
Hour |
unece.unit.HUR |
h |
(1 h = 3600 s) |
|
Day |
unece.unit.DAY |
d |
(1 d = 86400 s) |
Note: The system will normally include a pre-defined set of units according to UN/ECE standards. New units may be added if this standard does not provide a suitable unit. However, please inspect the available units carefully before doing so. The pre-defined units are also provided with standard unit conversions
Example of Conversion Factor and Conversion Offset
Unit Conversion: A unit conversion specifies the rules for conversion from one unit to another. One of the units has to be a base unit.
The conversion is specified in terms of a conversion factor and conversion offset.
|
Unit |
Unit Conversion Factor | Conversion Offset |
|---|---|---|
|
Fahrenheit (base unit) |
|
|
|
Celsius |
1.8 |
32.0 |
Conversion rule for temperature Celsius into degrees Fahrenheit:
To convert a Celsius temperature of 100 degrees into degrees Fahrenheit:
Note: A conversion factor and conversion offset must be typed with minimum one decimal. The conversion factor and conversion offset should never be empty. In case one of them is '0' (zero), '0.0' has to be typed.
Unit groups are created in System Setup> Units.
Units are created in System Setup > Units.
Note: You may have to create a new unit group for a new unit.
Unit conversions are maintained in System Setup > Units.
A Unit conversion is a conversion script ('translation') from one unit to another. Standard units are defined with standard conversions.
), and an Edit Conversion Rule dialog displays.
), and a Please Select a Unit dialog displays.
Note: There can only be one Base Unit for each group. If one unit uses another unit as Base, it cannot be used as Base itself.
Unit conversions are removed in System Setup >Units.
Units are deleted in System Setup > Units. A unit group containing a unit cannot be deleted. All units must be removed from the group before the unit group can be deleted. A unit that is used in an attribute cannot be deleted. The unit must be removed from the attribute before the unit can be deleted.
2018, Stibo Systems – Confidential