Sunteți pe pagina 1din 6

Presented to the ​Mechanical Engineering Department

De La Salle University - Manila


Term 3​,​ ​A.Y. ​2018 -2019

Activity Number : ​ 13

Activity Title : Editing your NC Program

Date Performed : ​July 11, 2019

Date Submitted : ​July 18, 2019

Professor : ​Dr. Alvin Chua

Subject and : ​LBYME14 EF


Section

Group Members : ​Cabigting, Angelika Alexis B.


: ​Calubaquib, Dan
:​ Ho, Leandro A
: Lua, Bryan
: Roque, Earl James A.
1. Introduction
Entering the NC Program
Now that you have written an NC part program, you will enter it into the
computer and edit it, if necessary. After entering your part program into the computer,
you must save the program, and if there are any noticeable mistakes in the program,
correct them.
Common Programming Errors
Some common programming errors include:
● Using the letter `O' instead of the number zero. Usually, zeroes on a computer
screen have a line through them or a dot in the middle, so check each one to make
sure it's a zero.
● Using the letters `l' or `I' instead of the number one. Check each `1' to make sure
it's the number one.
● Entering the wrong number or adding an extra digit to a number. It's easy to miss
a number error, so check carefully.
● Forgetting to switch back to linear interpolation (G01) after using rapid traverse
(G00).
2. Experimental Procedure
Task 13-1: Inventory and Safety Checks
1. Check that all materials required for this activity are available at your lab station.
2. Verify that your lab station passes the safety guidelines.
3. Complete the inventory and safety checklists on the worksheet for this activity.
4. Turn on the Machining Center, and set the machine to the Home position.
Task 13-2: Creating the NC File
1. Select File > New from the Menu Bar, or click on the New File icon on the Standard
Toolbar. A file called "Untitled1" appears.
2 Using your coding sheet and the keyboard, type your NC program in the Edit Window
Task 13-3: Save the File
It is a good idea to save your program as you go along.
1. After you enter a few lines of code, click on File > Save. The Save As dialog box
appears.

2. In the title box, type the name of your file. As a suggestion, you may want to use
"USA", which describes what the part will look like when you are done. It is also a good
idea to keep file names as short as possible. You do not need to type the ".nc" extension
after the file name. The program will add it automatically.
3. After naming the file, you can select the directory to save it to. The default directory is
the WPLM folder, but you may wish to save it elsewhere. Just click in the Save In
window to get a directory of file folders.
4. Choose the folder you wish to save the file to, and then click on Save.
5. Return to the file edit window and continue entering the code. When you are finished,
save the file again by clicking File > Save, or by clicking the Save icon in the toolbar.
Task 13-4: Edit Your NC Program
When you entered your NC program, you may have made some typing errors,
which is common even for experienced programmers. Check each block of your NC
program carefully to make sure it matches the coding sheet. When you have finished
editing, save your program again.
Task 13-6: Inventory and Shut Down
1. Return all materials to their proper place at your lab station.
2. Return the machine to the Home position and shut down the Machining Center.
3. Complete the Inventory Checklist for your station.

3. Questions and Answers


● What types of problems did you run into writing your NC program?
- There were no problems encountered during the activity

● What do you think would be the result of improper coding in an NC program?


- When trying to run the program, it will not work at all. However, in some
cases, the program will have a different result as compared to the draft
design.

1. After editing a part program, the program remains in the computer:


- Unless the program is saved or if the data of the computer is erased, it will
remain until the computer is turned off.

2. List two (2) mistakes that commonly occur when entering a part program.
- The coordinate system is set at a wrong coordinate.
- Programmers set the wrong coordinate locations.

3. When entering a part program, the address characters must be typed as:
- Upper-case letters

4. Before adding a comment to a line of NC Code, type a:


- Semicolon

5. Complete the following sentences:


a. An address character together with its parameter is called a ​word​.
b. A line of NC code is called a ​block​.
4. Results and Discussion

In this experiment, the students were able to edit their own NC program. During the
activity, the students did not encounter any problems with the NC program. The students also
learned the effects of improper coding. The students were also able to answer all the questions in
this activity.

5. Conclusion

The objective of this experiment is to teach students how to edit an NC program. By the
end of this experiment, the students were able to edit an NC program on their own. The students
were also able to learn the effects of improper coding in the NC program and that the NC
program won’t be deleted unless the data of the computer is erased.
We recommend that all members of the group try the process indicated in the laboratory
manual to make sure that everyone knows how to edit an NC program.

S-ar putea să vă placă și