Code for the simulator of the ECS waste separator machine