To get a can, move up the front end of the blue rail and then move it down. The gravity make the cans go down. While the first can rolls into the rail, the blue rod stops the rest cans.
For automatic operation use a disk cam actuating the rail.Thank you Tieng Anh for his request to make this animation.