Patent ID: 7315145

Claim:
A system of controlling a sliding member for a vehicle comprising: a motor for driving the sliding member; a pulse generating device which generates pulses according to the rotation of the motor; a counting device which conducts one of counting-up and counting-down of the pulses relative to a lock position where the sliding member is mechanically locked; and a control device which controls the motor according to output signals generated by the counting device; wherein the system has a range for movement of the sliding member between a position short of a first lock position and a position short of a second lock position, wherein the system has an error range within the range for movement of the sliding member and memorizes in advance a range of pulse count representative of the error range, wherein the error range comprises a first portion and a second portion, each of which is at an end portion of the range for the movement of the sliding member, the first portion being contiguous to the position short of the first lock position and the second portion being contiguous to the position short of the second lock position, and wherein if a pulse count counted by the counting device when the sliding member discontinues movement due to detection of an overload of the motor falls within the range of pulse count corresponding to the first portion of the error range, the system automatically resets the pulse count to a pulse count corresponding to the first lock position, whereas if a pulse count counted by the counting device when the sliding member discontinues movement due to detection of an overload of the motor falls within the range of pulse count corresponding to the second portion of the error range, the system automatically resets the pulse count to a pulse count corresponding to the second lock position.