In many industries use of CNC (Computer Numerated Control) machine goes increasing day by day. So the motion of these machines should be controlled accurately. Motion control of CNC machine is becoming challenging stuff. To carry out the motion control of CNC machine, this paper introduces an approach to implement 3-axis motion controller based on Field Programmable Gate Array (FPGA). Since the straight-line motion is a fundamental motion of CNC machine, this paper introduces a linear interpolation method to do approximate straight-line motion within any 3-axis space.