First, we need to find out which axis is which? For suppose if you are standing in front of a CNC mill, the X-axis will be parallel and moves left and right. Y-axis is perpendicular moving forward and back, Z-axis is vertical from your reference point. Generally, the workpiece moves on the X/Y plane. The main task of the spindle is to hold the workpiece and move it along the Z-axis.