A method for tracing packaging material in a package handling machine (1) is provided. The package handling machine (1) comprises at least one roller (11) for contacting the packaging material (2) and a controller (13) operatively connected to the roller (11). The method (100) comprises dividing the packaging material (2) into a plurality of fractions (21) and setting (101) a length of each fraction (21) of the packaging material (2), determining (102) a rotational angle of the roller (11) corresponding to movement of the packaging material (2) the length of one fraction (21), synchronizing (103) the current fraction (21) of the packaging material (2) being processed by the machine (1) with a current element (31) being processed by the controller (13), and storing (104) of data from the package handling machine (1) or from the packaging material (2) in the currently processed element (31).
展开▼