Linear motors are widely used in practical engineering fields, but it is difficult to achieve accurate position control because of model uncertainty, external interference, input nonlinearity and other factors. In this paper, a multidimensional Taylor network (MTN) controller with flexible learning robustness is proposed to realize tracking control and make the motor have excellent antijamming ability. The controller is composed of a robust feedback part, a parameter adaptive part and a multidimensional Taylor network control part. This strategy has good track tracking performance and anti-interference ability. In this control strategy, the input of the multidimensional Taylor network is determined only by the referable trajectories, and no model information is required. In addition, the designed multidimensional Taylor network can accurately describe the relationship between state variables and any complex disturbance, which is the basis of disturbance suppression. Finally, the stability of the controller is proved by the Lyapunov theorem. The unknown interference comparison experiment and numerical simulation experiment are carried out on the industrial linear motor platform, respectively. Experimental results show that compared with NNPID, the proposed algorithm has smaller overshoot and better performance under various error statistical dimensions.