主权项 |
1. A control system, comprising:
a motor; a driving unit including a driving target and being configured to displace or move the driving target in a first direction and a second direction opposite to the first direction by transmitting power from the motor to the driving target; a detection unit configured to detect a position of the driving target; and a controller configured to control the motor, wherein the controller is configured to execute:
a displacement control process in which the controller controls an input current for the motor to displace the driving target in the first direction and the second direction;a determination process in which the controller determines a holding current value holding the driving target at a target stop position; anda holding control process in which the controller controls the input current for the motor based on the holding current value determined by the determination process to hold the driving target, which has been disposed at the target stop position in the displacement control process, at the target stop position, wherein, in the displacement control process, the controller gradually changes: a first initial value of the input current so that the power acting on the driving target increases in the first direction every time the position of the driving target detected by the detection unit is displaced in the first direction, in a case that the driving target is displaced in the first direction; and a second initial value of the input current so that the power acting on the driving target increases in the second direction every time the position of the driving target detected by the detection unit is displaced in the second direction, in a case that the driving target is displaced in the second direction; and in the determination process, the controller determines the holding current value based on a first current value and a second current value, the first current value being a value of the input current which is controlled in the displacement control process, in which the driving target passes a target area including the target stop position in the first direction, to change the position of the driving target in the first direction, the second current value being a value of the input current which is controlled in the displacement control process, in which the driving target passes the target area in the second direction, to change the position of the driving target in the second direction. |