INTRODUCTION TO CNC MILL PROGRAMMING

Tom Stikkelman
22 Jan 201509:09

Summary

TLDRThis instructional video script introduces the basics of CNC programming for a CNC mill, focusing on the Cartesian coordinate system's relevance to CNC. It explains the concept of positive and negative values in the X and Y axes, the significance of the origin, and how these values change with different quadrants. The script also touches on the Z-axis, crucial for depth in milling operations. It aims to demystify CNC programming by illustrating how machines understand coordinates to perform tasks like drilling holes in a block, emphasizing the importance of establishing the origin for accurate machining.

Takeaways

  • πŸ“š The video script is an educational resource on basic CNC programming for CNC mills.
  • πŸ“ It introduces the Cartesian coordinate system as it relates to CNC programming, focusing on the X and Y axes.
  • πŸ“ The origin is defined as the intersection of the X and Y axes, where both have a value of zero.
  • βž• Understanding the positive (+) and negative (-) values of coordinates is crucial for CNC programming.
  • πŸ”„ The script explains how moving in different directions from the origin results in different X and Y values.
  • πŸ”Ί Points in different quadrants have specific combinations of positive and negative X and Y values.
  • πŸ“ˆ The script uses an 8x8 square grid to illustrate how the position of the origin affects the coordinates of points.
  • πŸ”„ It also demonstrates how shifting the grid to a different quadrant changes the X and Y values of the points.
  • πŸ”± The Z-axis is introduced as the third plane, adding depth to the two-dimensional X and Y plane.
  • πŸ”© The importance of determining the origin's location when setting up a part in the machine is emphasized.
  • πŸ›  The script concludes by setting the stage for the next video, which will discuss selecting coordinates for tool paths in milling.

Q & A

  • What is the purpose of the video series on CNC programming for the CNC mill?

    -The purpose of the video series is to explain the basics of CNC programming, including the meaning of the coordinates (X, Y, Z), the G and M codes, and how to understand and create CNC programs.

  • What is the Cartesian coordinate system and how does it relate to CNC programming?

    -The Cartesian coordinate system is a mathematical model used to define positions on a plane or in three-dimensional space. In CNC programming, it is used to determine the position of the tool relative to the part being machined, using X, Y, and Z axes.

  • What is the significance of positive and negative values in the Cartesian coordinate system as it pertains to CNC programming?

    -Positive and negative values in the Cartesian coordinate system are crucial in CNC programming as they indicate the direction of movement along the X, Y, and Z axes. They help the CNC machine to know whether to move in a positive (right, up, or away from the origin) or negative (left, down, or towards the origin) direction.

  • How is the origin defined in the context of the video script?

    -In the context of the video script, the origin is defined as the point where the X and Y axes intersect, with both X and Y values being zero. The origin serves as the reference point for all other coordinates in the CNC program.

  • What are the four quadrants of the Cartesian coordinate system and how do they affect the sign of the coordinates?

    -The four quadrants of the Cartesian coordinate system are numbered I to IV. In quadrant I, both X and Y have positive values. In quadrant II, X is negative, and Y is positive. In quadrant III, both X and Y are negative. In quadrant IV, X is positive, and Y is negative. The quadrant in which a point lies determines the sign of its coordinates.

  • Why is it important to understand the placement of the origin in a CNC program?

    -Understanding the placement of the origin is important because it determines the X and Y values and their signs. The origin's position affects how the CNC machine interprets the coordinates for tool movement, which in turn affects the machining process.

  • What is the Z axis in the context of a three-axis CNC mill, and how does it differ from the X and Y axes?

    -The Z axis represents the height or depth in a three-axis CNC mill. It differs from the X and Y axes, which represent the horizontal and vertical positions on a plane, respectively. The Z axis allows the CNC machine to move the tool up and down, adding depth to the machining process.

  • How does the CNC machine interpret the movement of the tool in the Z axis?

    -The CNC machine interprets movement in the Z axis as the tool moving towards or away from the workpiece. A positive Z value indicates the tool moving away from the workpiece, while a negative Z value indicates the tool moving towards the workpiece.

  • What is the significance of the Z axis in relation to the machining process?

    -The Z axis is significant in the machining process as it allows for the creation of three-dimensional shapes. It controls the depth of cuts, the height of the workpiece, and the movement of the tool in the vertical direction.

  • How does the video script illustrate the importance of understanding the Cartesian coordinate system for CNC programming?

    -The video script illustrates this by showing how the placement of the origin and the understanding of the quadrants affect the coordinates used in a CNC program. It uses an example of drilling holes in a block, demonstrating how the coordinates change based on the origin's location and the direction of the tool movement.

Outlines

00:00

πŸ“ Introduction to CNC Programming and Cartesian Coordinates

This paragraph introduces the viewer to the basics of CNC programming, specifically focusing on understanding the Cartesian coordinate system as it relates to CNC milling. The speaker explains the concept of the X and Y axes, the origin point where both axes intersect, and how movement in different directions results in positive or negative values for each axis. The explanation includes the division of the coordinate plane into four quadrants, each with distinct rules for determining the sign of the coordinates based on their location. The importance of understanding these concepts is emphasized for interpreting CNC programs, which use these values to control machine movement.

05:02

πŸ” Applying Cartesian Coordinates to CNC Milling Operations

In this paragraph, the application of the Cartesian coordinate system to a practical CNC milling scenario is discussed. The speaker uses an 8x8 square grid to represent a block with holes that need to be drilled, illustrating how the machine is instructed to locate these points in relation to the origin. The concept of shifting the origin to different quadrants and how it affects the X and Y values of the points is explained. Additionally, the introduction of the Z-axis is introduced to account for the depth or thickness of the material being machined, showing how the machine moves in positive and negative Z directions during the drilling process. The importance of correctly setting the origin and understanding the resulting coordinate values is highlighted for successful CNC operation.

Mindmap

Keywords

πŸ’‘CNC programming

CNC programming refers to the process of creating instructions for a computer numerical control (CNC) machine to execute tasks such as cutting, shaping, or drilling materials. In the video, CNC programming is the central theme, with the focus on understanding the language and commands that control the movement of a CNC mill.

πŸ’‘Cartesian coordinate system

The Cartesian coordinate system is a mathematical model used to define positions on a two-dimensional plane using ordered pairs of numbers, typically represented as (x, y). In the context of the video, it is fundamental to CNC programming as it helps to understand how positions are determined on the machine's workspace.

πŸ’‘Origin

The origin in the Cartesian coordinate system is the point where the x and y axes intersect, represented as (0, 0). In the video, the origin is used as a reference point to determine the coordinates of the points in the CNC program, which is crucial for accurate machining.

πŸ’‘Quadrants

Quadrants are the four equal areas formed by the intersection of the x and y axes in the Cartesian coordinate system. The video explains how the position of a point in different quadrants affects the sign of its coordinates, which is essential for CNC programming to determine movement direction.

πŸ’‘Plus and minus values

In the context of the video, plus and minus values refer to the direction of movement along the x and y axes in the CNC machine. Positive values indicate movement in the positive direction of an axis, while negative values indicate movement in the opposite direction, which is critical for precise control of the machine.

πŸ’‘X-axis and Y-axis

The x-axis and y-axis are the two perpendicular axes in the Cartesian coordinate system that define horizontal and vertical positions, respectively. In the video, understanding the x and y axes is essential for determining the coordinates for CNC milling operations.

πŸ’‘Z-axis

The Z-axis is the vertical axis perpendicular to the X and Y planes, used to represent depth or height in three-dimensional space. In the video, the Z-axis is introduced to explain how the CNC machine can move in and out of the material being machined, adding a third dimension to the machining process.

πŸ’‘G-codes and M-codes

G-codes and M-codes are part of the CNC programming language, where G-codes control the movement and positioning of the machine, and M-codes are used for miscellaneous functions. Although not explicitly mentioned in the transcript, understanding these codes is crucial for writing CNC programs, as they are the commands that the machine follows.

πŸ’‘Milling

Milling is a machining process that uses a rotating cutting tool to remove material from a workpiece. In the video, the concept of milling is related to the CNC programming of the machine to move the cutting tool along specific paths to shape the material.

πŸ’‘Coordinates

Coordinates in CNC programming are the specific positions in the machine's workspace where the tool is directed to move or perform an operation. The video script discusses the importance of understanding how to read and write coordinates for precise control of the CNC mill.

πŸ’‘Drilling

Drilling is a machining operation that involves making holes in a material using a rotating drill bit. In the video, the concept of drilling is used as an example of a task that requires precise CNC programming to determine the exact location and depth of the holes.

Highlights

Introduction to CNC programming for beginners, explaining the meaning behind the coordinates and codes used in CNC mill programs.

Explanation of the Cartesian coordinate system and its relation to CNC programming.

Understanding the origin point and how it sets the reference for X and Y values in CNC programming.

Differentiation between positive and negative values in the X and Y axes based on the direction from the origin.

Division of the coordinate plane into four quadrants and the significance of each for determining coordinate signs.

Clarification on the omission of the plus sign in CNC programs when the value is positive.

Importance of correctly placing the minus sign for coordinates in different quadrants to ensure program accuracy.

Example of how points in different quadrants are assigned X and Y values with appropriate signs.

Illustration of a practical CNC mill scenario involving drilling holes in a block, demonstrating the application of coordinate understanding.

The impact of the origin's position on the X and Y values in a CNC program.

Introduction to the Z-axis and its role in adding depth to the CNC machining process.

Explanation of the Z-axis movement in terms of positive and negative directions during machining operations.

Visualization of how the Z-axis corresponds with the machine head's movement during the drilling process.

Understanding the significance of the Z-axis in determining the depth of cuts and the part's thickness.

Overview of the three axes that constitute a three-axis CNC mill and their relation to the Cartesian coordinate system.

Anticipation of the next video in the series, which will cover selecting coordinates for tool path planning in milling operations.

Transcripts

play00:05

hello and thank you for watching basic

play00:07

CNC programming for the CNC mill if

play00:11

you've ever stood in front of a computer

play00:13

screen or or a CNC mill and you you

play00:17

watch the program run and you wonder

play00:19

what it all means the x's and the Y's

play00:21

and the G's and the M's then study out

play00:25

these next few videos where I'll explain

play00:28

what it all means so if that's of

play00:30

interest of you then I'm going to go

play00:32

into the very basics of how a program is

play00:36

put together and where it all starts so

play00:39

let's get your pen and paper out and

play00:42

let's get

play00:45

started all right so let's talk about

play00:48

the cartisian coordinate system and how

play00:50

it relates to CNC

play00:54

programming all right as you can see I

play00:56

have drawn two axes here a horizontal

play01:00

axis being the xaxis and a

play01:02

vertical line being the Y

play01:06

AIS now there are points infinitely on

play01:10

these x-axis in either direction and

play01:14

also on the Y AIS and of course also

play01:17

away from these axis anywhere in this

play01:22

space now what we need to learn today is

play01:26

depending on what direction we find

play01:30

these points will either give this these

play01:33

points A Plus or a minus value and that

play01:36

is very important to understand because

play01:38

when you look at a CNC program you'll

play01:41

see plus and minus values and that is

play01:44

what we're going to learn

play01:47

here so where these two axis intersect

play01:53

we'll call that the origin okay and at

play01:56

that

play01:57

point or at that intersection the X and

play02:02

Y values are

play02:04

zero

play02:06

now when we move to the right of that

play02:09

origin we'll go into an X Plus

play02:13

direction we go to the left of that

play02:16

origin we're going to an x minus

play02:19

Direction when we go up from origin

play02:24

we'll go into a y+ direction and if we

play02:27

go down we'll go into a y minus

play02:30

Direction all right so as you can see

play02:33

these two lines kind of divide this area

play02:35

up into four quadrants okay you got a

play02:39

quadrant here which we'll call quadrant

play02:41

one you got a quadrant here which we

play02:44

call quadrant

play02:46

2 three and

play02:49

four now depending on which quadrant

play02:52

we'll find these points and will

play02:54

determine their plus and minus value all

play02:58

right so for in instance we have a point

play03:01

right here and as you can see it is kind

play03:04

of in line with the three on the xaxis

play03:09

and also three in line of the Y

play03:14

AIS now that puts that number in a

play03:19

quadrant

play03:20

where all the values are Plus in X and

play03:25

plus in y as you can see right here so

play03:30

the X and Y value for that point right

play03:34

there will be x +

play03:38

3 y + 3 now right off the bat in CNC

play03:45

programs if a value is plus there's no

play03:49

need to put the plus sign next to it

play03:53

however in this quadrant number two we

play03:56

also have a point that is at a distance

play03:59

away in x - 3 and y +

play04:05

3

play04:08

so now it is important that we put the

play04:12

minus next to it so that's how the

play04:14

program will know that this point is now

play04:17

located in this quadrant okay so let's

play04:21

look at quadrant number three again

play04:23

we're at distance away -3 in X and then

play04:28

-3 in y

play04:31

so the x value will be Min -3 and the Y

play04:36

will be Min -3 and so therefore we put a

play04:38

minus next to it okay very

play04:41

important so we got one left quadrant

play04:43

number four any points found here we'll

play04:47

have an

play04:48

X+ value and then a y minus value so

play04:53

that point is sitting at X3 remember

play04:55

anything to the right is plus anything

play04:59

below o the xaxis is

play05:02

Yus again on this point right here

play05:05

Quadrant

play05:06

One X + Y + quadrant 2 x is - Y is plus

play05:13

quadrant 3 x

play05:16

-

play05:18

y- Quadrant 4 x +

play05:26

Yus so in this example you'll see how

play05:29

this relates to a CNC mill program the

play05:33

previous illustration we just drew these

play05:36

points at a distance away from the

play05:39

origin right now I've drawn a 8x8 square

play05:43

and these points represent holes that

play05:47

we're going to have to drill in a

play05:49

block now we're telling the machine that

play05:51

the origin or x0 y0 is in the center of

play05:55

that

play05:56

block and so we need to tell the machine

play06:00

the

play06:01

coordinates where these holes are going

play06:03

to be drilled at and obviously this

play06:06

Square spans all four quadrants so

play06:10

therefore you're going to have plus and

play06:13

minus

play06:14

values and so here I think it's very

play06:18

easy to see why it is important to

play06:22

understand plus and minus values

play06:25

depending on where the origin is located

play06:29

now let's look what happens when we move

play06:32

this whole square and move it in this

play06:36

number one

play06:38

quadrant all right so here you can see

play06:40

we have shifted our 8x8 square all the

play06:44

way into quadrant number

play06:47

one but in essence we just told the

play06:50

machine that instead of the origin being

play06:52

in the middle we're putting it on the

play06:55

lower left hand corner and so you can

play06:58

see by looking at the the X and Y values

play07:01

first of all they're both plus but

play07:02

they're completely different from what

play07:04

they were in the previous example and so

play07:07

it's very important first of all that

play07:10

when you set up a part in the machine

play07:14

that you determine where the origin is

play07:17

and that obviously is going to determine

play07:20

the X and Y values and the plus and

play07:25

minus all right so we have talked about

play07:29

X and Y which which is a flat plane but

play07:34

obviously there's a third plane which is

play07:36

the Z plane and that's what we'll

play07:38

discuss

play07:41

next all right so here we're still

play07:43

looking at our 8 by8 square in our X and

play07:47

Y plane which is a flat plane but

play07:50

obviously our block that we're going to

play07:52

be Machining is uh it's got some

play07:55

thickness so we're going to have to add

play07:57

a another axis which will give it some

play08:02

thickness so that will be the Z axis and

play08:05

you can see it also has a plus and a

play08:08

minus and that also corresponds with the

play08:11

head on the machine when the holes are

play08:15

drill the machine will be moving into a

play08:17

z minus Direction and then when it

play08:19

retracts to go back to its home position

play08:22

it will move into a plus

play08:25

Direction you can see here that the

play08:27

bottom of the part is even with

play08:30

-4 so and the top of the part is even

play08:35

with the origin so that would be

play08:38

z0 so here you've learned the three axis

play08:42

that makes up a three axis C and C Mill

play08:46

and how the plus and

play08:49

minuses of the X and Y and Z relates to

play08:53

the cartisian coordinate system so let's

play08:57

move on to the next video and let's see

play09:01

how we pick coordinates to descend line

play09:03

of a tool as we Mill the outside shape

play09:07

of this Square

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
CNC ProgrammingCartesian SystemMilling BasicsCoordinate ValuesMachine ToolsTool PathMachining ProcessOrigin SettingX-Y-Z AxesTechnical Tutorial