The optimal control of automated sorting robot movements based on PLC logic controller | Synapse