The XYZ axes depict the direction of movement of the CNC machine. The X-axis depicts the left and right movements. Y-axis depicts the forward and backward movement, and Z-axis depicts the up and down movement. 4-axis and 5-axis CNC machining work based on this axis with a rotatory effect on the part of the axis. For 4-axis CNC machining, a rotatory effect is seen on X-axis, while for 5-axis CNC machining, a rotatory effect is seen in two of the axes.