The invention discloses a permanent magnet linear motor, which includes a primary assembly, the primary assembly includes a machine body, a primary iron core, a plurality of coil windings, cooling joints and cooling channels, a plurality of coil windings are connected to each other and fixed on the primary iron core, the primary iron core and the body It is fixedly connected and located inside the machine body. The cooling joint is fixed at one end of the machine body. The outer wall of the cooling channel is close to the primary core and several coil windings. The cooling channel includes the top cooling channel and the side cooling channel. One end of the side cooling channel is connected to the top cooling channel. The flow channel is connected, and the other end is connected with the cooling joint, and the hole diameter of the cooling flow channel is larger than the hole diameter of the cooling joint. In the present invention, the cooling channel is closely attached to the primary iron core and the coil winding, directly cooling the heat source, and the effect is good; the aperture of the cooling channel is larger than the aperture of the cooling joint, which increases the amount of refrigerant in the cooling channel and effectively suppresses the temperature rise of the body; in addition, the side The cooling channel cooperates with the top cooling channel to further increase the volume of the refrigerant stored in the body.