CNC Lathe Machine Programming - Basic Commands And Examples

in #sndbox-alpha6 years ago (edited)

BANNER.jpg

Introduction

CNC (Computer Numerical Control) is the control of a certain machine with the use of symbolic codes consisting of characters and numerals to create a projected design. CNC Machining and Programming has been one of my subjects last year and today I want to impart my knowledge on the basic commands when programming a CNC Project. I will be focusing on CNC Lathe Machine since it is the kind of computer numerical controlled machine that we had been using in our classes a year ago.

Axes

  • We are using a 2 axes CNC Lathe Machine so literally there will be 2 axes along which the movement of the tool will take place.
XMoves the tool vertically
ZMoves the tool horizontally

Sequence Number

N Adress

  • This is used to identify a certain block, it is always placed at the beginning of the block and could be referred to as the name of that block.

Preparatory Function

G Adress

  • This determines how the the tool moves to the programmed target. Here are the commonly used G adresses during my experience
WORDFUNCTION
G00Rapid Traverse Movement
G01Linear Interpolation
G02Clockwise Circular Interpolation
G03Counter Clockwise Circular Interpolation
G50Setting Workpiece Coordinated System
G70Finishing Cycle
G71Axial Roughing Cycle
G72Radial Roughing Cycle
G92Thread Cutting Cycle

Miscellaneous Function

M Adress

  • This are programmed to control the machining operation and not for coordinate movement.
WORDFUNCTION
M3Spindle Clockwise or Start of Program
M4Spindle Counter Clockwise
M30End of Program

Tool Function

T Adress

  • This is used to select a certain tool for the programmed target.
WORDFUNCTION
T01Represents Tool Number 1
T02Represents Tool Number 2
T03Represents Tool Number 3
T04Represents Tool Number 4
These tool numbers are mainly based on the availability of the tools in your CNC Lathe Machine's Tool Turret.

Spindle Function

S Adress

  • This commands the spindle speed and is measured in revolutions per minute.
WORDFUNCTION
S800Spindle Speed at 800 RPM (Revolutions Per Minute)
S1000Spindle Speed at 1000 RPM (Revolutions Per Minute)
S1200Spindle Speed at 1200 RPM (Revolutions Per Minute)

Examples

  • Here is an example of one of our activities before in which we are tasked to draw the figure that the program should output.
    2.jpg

  • In this example we are tasked to give the correct program to display this output.
    1.jpg

Here is the code that I made for this figure:

M3
T0303
S1000
G00 X30 Z5
G00 X0 Z5
G01 X0 Z0
G03 X10 Z-4.5 R5
G03 X6 Z-9 R5
G01 X6 Z-11
G02 X11 Z-21 R22
G03 X17 Z-24 R3
G03 X24 Z-26.5 R2.5
G01 X25 Z-26.5
G01 X25 Z-29
G00 X30 Z-29
G00 X30 Z5
M30

Conclusion

CNC Machining and Programming is a great skill to possess since it is very in demand in the field. It is a great privilege for us mechanical engineering students to have known and develop this skill.


My greatest thanks to Engr. Orlene Balungkas for teaching us trainees about CNC Machining and Programming. One thing I could never forget about, was having a present from him on our final examination. He challenged us to have a perfect score for the exam and however gets perfect and had submitted first will get to have a pre-loved NBA Jersey from him. So I strived hard to earn that reward and so I did. Im happy to have a remembrance of his great effort in teaching us and I'd treasure it as a sign of my respect for him. He is a great instructor and I looked up on him.

IMG_20171019_063137.jpg
IMG_20171019_063153.jpg

Here is the pre-loved jersey that I received from him, a Golden States Warriors Stephen Curry Jersey.


If you would be interested to join a group of like minded people & quality content creators who support, guide & learn from one another, then I am extending an invitation to our #dynamicsteemians discord. Here you can connect with people from all over the world, your country included. Together with @dynamicgreentk feel free to promote your posts in the relevant channels and receive a support.

baa.steemit.gif

Sort:  

Congratulations! This post has been upvoted by the communal account, @steemph.cebu by baa.steemit being run at Teenvestors Cebu (Road to Financial Freedom Channel). This service is exclusive to Steemians following the Steemph.cebu trail at Steemauto. Thank you for following Steemph.cebu curation trail!

Don't forget to join Steem PH Discord Server, our Discord Server for Philippines.

good information. thanks

You have been upvoted by the @sndbox-alpha! Our curation team is currently formed by @jeffbernst, @bitrocker2020, @jrswab & @teachblogger . We are seeking posts of the highest quality and we deem your endeavour as one of them. If you want to get to know more, feel free to check our blog.

You, sir, love the Warriors???!!! I knew there was something about you I really loved....

hehe thank you sir 😁 they are great.

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 62937.86
ETH 3092.40
USDT 1.00
SBD 3.87