MAV

This command returns the “Maximum Allowable Variation” (MAV) for the label weight you specify. The MAV value comes from tables in Fourth Edition NIST Handbook 133 (2005), Appendix A.

Syntax

MAV "lookup_table", "unit_of_measure", label_quantity

The "lookup_table" parameter specifies which lookup table to use for calculating MAV. Valid options are:

"lookup_table"

explanation

"2-5"

Table 2-5. Maximum Allowable Variations (MAVs) for Packages Labeled by Weight

"2-9HF"

"Homogenous Fluid when Filled" group from
Table 2-9. U.S. Department of Agriculture, Meat and Poultry Groups and Lower Limits for Individual Packages

"2-9"

"All Other Products" group from
Table 2-9. U.S. Department of Agriculture, Meat and Poultry Groups and Lower Limits for Individual Packages

The "unit_of_measure" parameter specifies the measurement unit for the label_quantity parameter. It also determines which measurement unit will be used to express the MAV value that is returned by this command. This parameter is not case sensitive. Valid options are:

"unit_of_measure"

measurement unit for
label_quantity

measurement unit for
MAV

"OZ"

ounces

ounces

"LB"

pounds

table 2-9HF and table 2-9:

ounces

table 2-5:

pounds

"G"

grams

grams

"KG"

kilograms

grams

The label_quantity specifies the number of ounces, pounds, grams or kilograms on the package label. This value must be a number greater than 0. When specifying a label weight in ounces for table 2-5, this value should not be greater than 17.28.

Return value

This command returns a number.

If a MAV value could not be returned for the parameters you specified, this command returns the number 0.

Notes

If a MAV value could not be returned for the parameters you specified, this command puts the error message in a string variable named MySVar "MAV_Error".

Examples

MAV "2-5", "oz", 3

This formula looks up the MAV for a 3-ounce package in Table 2-5 and returns the number 0.25.
Because the label weight was expressed in ounces, the result (0.25) is expressed in ounces.

MAV "2-5", "lb", 2

This formula looks up the MAV for a 2-pound package in Table 2-5 and returns the number 0.07.
Because the label weight was expressed in pounds and table 2-5 was used to find the MAV, the result (0.07) is expressed in pounds.

MAV "2-9HF", "lb", 2

This formula looks up the MAV for a 2-pound package in the "Homogenous Fluid when Filled" group from Table 2-9 and returns the number 0.5.
Because the label weight was expressed in pounds and table 2-9HF was used to find the MAV, the result (0.5) is expressed in ounces.

MAV "2-9", "g", 500

This formula looks up the MAV for a 500-gram package in the "All Other Products" group from Table 2-9 and returns the number 28.3.
Because the label weight was expressed in grams, the result (28.3) is expressed in grams.

MAV "2-9", "kg", 1.25

This formula looks up the MAV for a 1.25-kilogram package in the "All Other Products" group from Table 2-9 and returns the number 28.3.
Because the label weight was expressed in kilograms, the result (28.3) is expressed in grams.

Reference