ME 440: Numerically Controlled Machine Tools CNCSIMULATOR Choose the correct application (Milling, Turning or Plasma Cutting) CNCSIMULATOR http://www.cncsimulator.com Teaching Asst. Ergin KILIÇ (M.S.) Room : A-146 Department of Mechanical Engineering Middle East Technical University CNC Simulator ME 440 2 / Editing Tools / Editing Tools CNC Simulator ME 440 3 CNC Simulator ME 440 4
/ Setting Dimension of Work piece / Setting Dimension of Work piece CNC Simulator ME 440 5 CNC Simulator ME 440 6 6 different point on the workpiece could be defined as zero point; CNC Simulator ME 440 7 CNC Simulator ME 440 8
Tool No Feed Rate G-codes for milling: Coordinates G0 or G00 G1 or G01 or L Rapid movement Linear interpolation G2 or G02 or DR- Clockwise interpolation i Program is written here G3 or G03 or DR+ Anti-clockwise interpolation G-codes for milling G40 Turns off cutter compensation G41 Cutter compensation to the left Operation Time is presented here Click here to execute the program Indicates coolant status G42 G92 Cutter compensation to the right Zero point displacement CNC Simulator ME 440 9 CNC Simulator ME 440 10 M-codes for milling : Other codes for milling : M0 or M00 M3 or M03 Program stop Spindle start clockwise F S N Feed rate Spindle speed Block number M4 or M04 Spindle start anti-clockwise T or TOOL CALL Tool M5 or M05 M8 or M08 M9 or M09 Spindle stop Coolant on Coolant off X Y Z Code for the X-axis Code for the Y-axis Code for the Z-axis M17 Return from subprogram I Incremental distance to the center in the X-axis M30 or M02 or M2 Program end J K Incremental distance to the center in the Y-axis Incremental distance to the center in the Z-axis CNC Simulator ME 440 11 CNC Simulator ME 440 12
Simulation Time Execute the whole program Execute only the present line of the program CNC Simulator ME 440 13 CNC Simulator ME 440 14 Choose the correct application (Turning) Set the dimension of the workpiece; CNC Simulator ME 440 15 CNC Simulator ME 440 16
Let make a drill operation with Tool 21 to a workpiece Diameter of 52mm CNC Simulator ME 440 17 CNC Simulator ME 440 18 What is the drill diameter? Or you want to drill this hole with a 50 mm. Which tool corresponds to 50 mm? Edit Tool Box of the Turning Mode does not give any sufficent information about the dimensions of the tools. Therefore, you must go to the files of the tools in the program directory to get the information about their dimensions or to modify them CNC Simulator ME 440 19 CNC Simulator ME 440 20
Open the related file with Wordpad or NotePad You will see some numbers written in a sequence orders. E.g. (0 0 10-18 200-18 200 18 10 18 0 0) They are the coordinates of the tool 21 sharp points such as; P1 (0,0) P2 (10,-18) P3 (200,-18) P4 (200,18) P5 (10,18) 18) P6 (0,0) P2 P1,P6 P5 P3 P4 Diameter of the Tool 21 is calculated as 36 mm from the coordinates of the points. CNC Simulator ME 440 21 CNC Simulator ME 440 22 Let s change the diameter of the T21 such as 50 mm. Modify the text program written in the wordpad and then, save the file or give a new name Eg E.g. (00100-25 200-25 200 25 10 25 00) 0) Let s run the program again with this modified Tool 21. (Workpiece Dia : 52 mm, Tool Dia : 50 mm) Therefore, you can modify or generate desired Tools by writting appropriate numbers in a sequencial order. CNC Simulator ME 440 23 CNC Simulator ME 440 24
G-codes for turning : M-codes for turning: G0 or G00 G1 or G01 G2 or G02 G3 or G03 G25 G26 G90 G91 G92 Rapid movement Linear interpolation Clockwise interpolation Anti-clockwise interpolation Subprogram call Separate subprograms (disk) Absolute programming g Incremental programming Zero point displacement M0 or M00 M3 or M03 M4 or M04 M5 or M05 M8 or M08 M9 or M09 M17 M30 Program stop Spindle start clockwise Spindle start anti-clockwise Spindle stop Coolant on Coolant off Return from subprogram Program end G94 Specify feed rate in mm/min G95 Specify feed rate in mm/revolution CNC Simulator ME 440 25 CNC Simulator ME 440 26 Other codes for turning : F Feed rate S Spindle speed N Block number T Tool X Code for the X-axis Z Code for the Z-axis I Incremental distance to the center in the X-axis K Incremental distance to the center in the Z-axis R or Z Arc <180 grader R- or Z- Arc >180 grader L Threading cycle parameter diam/radius, point A D Threading cycle depth mm/cut H Threading cycle total thread depth U Sub program amount of repetitions CNC Simulator ME 440 27 CNCSIMULATOR The Program has a very useful Help Guide CNC Simulator ME 440 28