In order to solve the problem that the best time of closing the ship power station and the car is difficult to catch, the problem of the car failure is caused. The influence of the parallel conditions and signal acquisition of the power station and the main switch action time on the closing command is analyzed. The linear regression algorithm is used to predict the optimal closing time, calculate the closing advance, and capture the optimal closing time. Based on the influence of main switch operation time and load disturbance at the moment of closing, the linear regression control system of ship power station based on S7-1500 PLC is designed. The experimental results show that the linear regression method captures the best time of closing and the impact current is small. High reliability, improved car success rate, and good promotion and application value.