Sabtu, 17 Januari 2009

AutoEdit NC Software Tutorial.

User Interface

AutoEditNC offers several tools for creating and testing NC programs and for learning M codes. The first tool is the editing window. The editing window is the main program area of AutoEditNC and it is where we will find access to the other features of the program. The editing window allows us to display and edit several different documents (NC program files) at a time.


Figure 1 The Editing Window

The another useful tool in AutoEditNC is the simulation window. The simulation window is used to backplot the toolpath that would be created by the current NC program that is displayed in the editing window. It allows the user to see the tool movements long the XY plane, the Z-depth of the tool, and it also displays thecurrent block that is being executed and all modal commands.


Figure 2 The Simulation Window

Quick Start
This section will give you a quick overview of the processes involved in opening,creating, and testing a NC part program. We will start by opening a sample file and then we will backplot the file to verify its behavior.

Open a Sample File
We will start by going to the File menu and selecting Open. From here a dialog box will open and we will see a sample or tutorial folder depending on which version we are using. Browse either folder and then select a file.


Figure 3 Program files can be opened, created, or saved from the File menu.

In this case we will select a file named “tutorial one.txt” and then click on the Open button. This will cause the file to be opened and displayed in a document window from within the editing window. If you do not see this file, simply select any other.TXT file from the samples folder.
The file is now ready to view or edit. You may have noticed that an empty document window is displayed when the program is first started. This window is used for creating a new program and it is not needed quite yet. We can close the window for now clicking on the close button (X) in the upper right of the window.


Figure 4 The Open dialog box.


Figure 5 The NC program as displayed in a document window.Many programfiles can be open simultaneously.

Simulate the Toolpath
The next step is to test the program to see if it works the way we had intended.
Click on the Simulate button to launch the simulation module. The simulation will only read the active document that we have open in the editing window. Therefore, if multiple documents are open, then we have to make sure we click on the desired program to cause it to be the active window.


Figure 6 The simulation window showing the finished backplot of the toolpath. The solid lines represent linear interpolation.

Once the simulation window is open, we have to read the NC program into a buffer so that it can be simulated. This is accomplished by clicking on the Buffer button. Now that the program is loaded we can start the simulation by clicking the Start button. This will cause the simulation to execute one line at a time until the program has reached the end. The toolpath will be plotted in the graphics window to verify any tool movements in the XY plane and the Z-depth will be displayed in the Z-level areanear the upper right of the window. We should also note that the tool outline and rapid motions are displayed as dashed lines, and that anyinterpolation is displayed as a solid line

Creating a New File
Now that we have seen how to open and test an existing file, let’s see how we can quickly create a new NC program. We will accomplish this by first opening a new (but empty) document and then by using several productivity tools to insert a program template and then inserting and editing individual blocks of code.We start anew program in the editing window by clicking on the File menu and then selecting New. This will place a blank document into the text area.


Figure 7 Select New from the File menu to create a new file.


Figure 8 The new file appears in the text window.

Now that we have a blank document, we will insert a pre-made program template into the empty file. This will allow us to skip the trouble of typing the standard code that is found in all NC programs and let us concentrate on writing theunique code that cause the machine tool produce the desired motion.We accomplish this by first placing the mouse pointer over the empty documentand then clicking on it. This will create an insertion point for the program template. Next, click on the Options menu and select Milling Template Standard. The text will be automatically pasted into the document starting at theinsertion point.


Figure 9 Click somewhere in the empty document and then insert a program template from the Options menu.


Figure 10 The program template will be written into the new document. It is now ready to be modified to our needs.

We are now at the point where we can start writing the code to make the workpiece. Of course, we have to have a great enough understanding of NC programming to know which codes to use. We can edit the program document manually just as we would with any other word processing program, or if you are unfamiliar with G&M-codes, then you can use the code creation tools to get started. The code creation tools can beaccessed by clicking on the More Tools button. This will cause another toolbarto appear with buttons to add many different types of code. Again we must place the cursor at the insertion point before using the code creation tools. Use the mouse or the arrow keys to move the cursor to the line immediately below N30. Then use the delete key to rase lines N35-N50 and then hit the enter key to create a blank line or two. Now click on the Line button to open the linear interpolation window.The linear interpolation window gives an illustration of the code and a short explanation of its use. We can then click on the Add Code button to paste the code example into our document at the insertion point. We can then edit the codeto our specific needs.


Figure 11 Individual blocks of code can be typed manually into the program document or we can use the code creation tools. Simply place the cursor tothe proper insertion point in the program document and then select the desired tool button. Click on the Add Code button to paste the code into the document.

For this example, let’s place the following code between lines N30 and N97.

N30 G00 Z.2
G01 X1.0 Y0.0 F5.0
G01 X1.0 Y1.0
G01 X2.0 Y1.0
N97 G91 G28 Z2.0

When you have completed this, make sure that there are not any additional blank line or extra characters and then save the document by clicking on File and then Save. Also, we do not need to worry about adding any line numbers; the simulation will work fine without them. Your program should now look like the program in Figure 12.


Figure 12 The program has been edited to include linear interpolation between lines N30 and N97.

Next we can test the program in the simulation window. Click on Simulate in the editing window to launch the simulation module and next click Buffer and then Start to begin the backplot. If the backplot does not appear as in Figure 13, then you probably made a typographical error. If any changes are made to theprogram, you must save the file and buffer it again before the changes willappear in the simulation.


Figure 13 The completed backplot of the NC program.

Tidak ada komentar:

Posting Komentar