Patent attributes
A controller for an opening and closing member includes a driving mechanism, a detection portion, a control portion, and a determination portion. When the determination portion determines that the foreign matter exists in a period where the driving mechanism is operating, the control portion executes an interrupt operation to interrupt an operation of the driving mechanism. When the detection portion detects that the door is changed from the opening state to the closing state in a period from a time point before the determination portion determines that the foreign matter exists to a time point after the determination portion determines that the foreign matter exists, the control portion executes a restart operation to restart one of a first operation and a second operation that is the operation of the driving mechanism executed right before the interrupt operation.