Saturday, September 29, 2018

How to make a Program of VMC machine

To make a progoutm in VMC you have to knowledge about G code and M code, which i describe in my previous post. We are starting from one example. Generally many VMC holders are using a CAM software for programming. It is very easy to use. The users of CAM software does not need knowledge G code and M Code. These are only for learning a manual program by typing a code and this is a actual program what you need.

For example we are taking a rectangular type pattern.


There are a four points in picture.
A (X0 Y0)
B (X100 Y0)
C (X100 Y100)
D (X0 Y100)

Now i want to travel my tool from A-B-C-D-A , So the program will be such a way

Suppose my tool position is at point A and this is planer so i  will take Z=0.
N100 G0 G91 G28 Z0
    N102 G90 G54 X0 Y0 M03 S2000
      N104 Z5
        N106 G01 Z0 F200
          N108 X100
            N110 Y100
              N112 X0
                N114 Y0
                  N116 Z5
                    N118 G0 G91 G28 Z0
                      N120 M05
                        N122 M30
                        Line 1: Tool will go to home position in Z axis (for safety) this line is necessary in my case because whenever machine operator starts the program, the tool is first go to Z home position in Rapid . It prevents an accident.

                        Line 2: Tool will go to X0 Y0 of G54 work coordinate and spindle start at 2000 RPM(Revolution per minute)


                        Note: As long as you do not give any other action, it remains in the previous state


                        Line 3: Tool will go Z5 in rapid because we still not defined any other feed

                        Line 4: Tool Reach Z0 at feed 200 mm/min. at X0 Y0

                        Line 5: Tool will go to the Point B X100 (Y is 0 from line 2)

                        Line 6: Tool will go to the Point C Y00 (X is 100 from line 5)

                        Line 7: Tool will go to the Point D X0 (Y is 100 from line 6)

                        Line 8: Tool will go to the Point A Y0 (X is 0 from line 7)

                        Line 9: Tool will go Z5 (safety distance)

                        Line 10: Tool will go to home position in Z axis

                        Line 11: Spindle Stop.

                        Line 12: Program End.

                        Here, you can view the simulation of program.


                        If any suggestion regrading this post, Please reply in comment section. I will explain all VMC program with actual cutting parameter