the invention relates to a device for producing and withdrawing stacks of plastic bags , especially bags for automatic machines , in coordination with a gradually moving pin stack chain from which the bag packages are removed in a simplified and accelerated manner with the aid of a robot that has a multifunctional hand and automatically executes all essential manipulations and / or movements required for the formation and piling of the bag stacks and finally delivers them to an unloading station .