by detection that the material has reached the flange or the reel end