Positioning circuit diagram controlled by length detection sensor