The principle of weighing packaging machine