An internal, active, and compensatory device for the axial bias-and-swing of the main shaft of a cutting tool, wherein the main shaft is comprised of a mandrel, a cutting tool connected to the front end of the mandrel, a motor rotor connected to the mandrel to bring along its rotation, and a main-shaft main body supported at the exterior of the mandrel and, along the axial direction, the mandrel is selected to make a linear displacement of small amplitude relative to the main body;
- the internal, active, and compensatory device is comprised of:
- a sensor, to sense the axial displacement of the bias-and-swing relative to the main body;
- a magnetic element, connected to the rear end of the mandrel and rotated synchronically with the mandrel;
- and
- an electromagnetic element, arranged in the interior of the main body and position rearward of the magnetic element and kept a distance from the magnetic element, to generate a magnetic force corresponding to an input of electric power for further producing an axial force to the magnetic element, such that the mandrel makes an axial displacement of small amplitude relative to the main body.