This work explains autamation model in which items passing by over the assembly line,going trough two processing and ultimately comes down from the assembly line.That object is pushed on the assembly line by the engine. That engine has the relay and that is why the engine can go forward and back.In the end we had to count the number of items that have passed the line.Model of PLC where the work has done is Siemens S7-1500 in the programming tool called TIA Portal.Programming language that was used is LAD.