The principle of automatic weighing system