plc how measure conveyor speed