Chapter 07

Functions, Charts, and Tables

A cutting speed table, a spindle torque curve, a tensile test graph: in the workshop, numbers often come in the form of tables and diagrams, not formulas. In this chapter, we’ll learn how to read and create them. We’ll start with the Cartesian plane—which is the same coordinate system used in CNC—then we’ll look at the most commonly used functions (line, parabola, hyperbola, exponential), piecewise functions, reading technical diagrams, interpolation in tables, and the line that summarizes a series of measurements. Each topic includes examples taken from real-world applications.

7.1 The Cartesian plane and coordinates

To locate a point on a sheet of paper, all you need are two numbers. Draw two perpendicular lines that intersect at a point O, theorigin: the horizontal one is thex-axis (x-axis), and the vertical one is they-axis (y-axis). The same unit of measurement is used on both axes. A point P has coordinates (x; y): x is the distance from the y-axis; it is positive if the point is to the right and negative if it is to the left; y is the distance from the x-axis; it is positive if the point is above the x-axis and negative if it is below. When coordinates include a decimal point, they are separated by a semicolon: (2.5; −1.5).

The two axes divide the plane into four quadrants, numbered counterclockwise starting from the top right. The sign of the coordinates immediately indicates which quadrant a point is located in.

−6−4−2246−4−224OxyP (4; 3)Q (−3; 1)R (−5; −3)S (3; −4)Second quadrantx < 0, y > 0First quadrantx > 0, y > 0Third quadrantx < 0, y < 0Quadrant IVx > 0, y < 0
Figure 7.1 · The Cartesian plane. Each point has its own pair of coordinates; the dashed lines show how to read them on the axes.

Coordinates on CNC Machines

The CNC system works exactly this way. On the milling machine, the workpiece plane is the X-Y plane: X is the longitudinal movement of the table, Y is the transverse movement, and the Z-axis (the spindle) extends beyond the plane. The origin is the work zero (W), which the programmer chooses wherever it is convenient: at a corner of the blank (in which case all dimensions are positive) or at the center of a symmetrical workpiece (in which case negative dimensions appear, which is normal). On a lathe, the coordinate plane is Z-X: Z is the spindle axis, positive as it moves away from the workpiece, and X is radial; the X-dimension is almost always specified relative to the diameter, as discussed in Chapter 26. The work zero is usually set on the face of the workpiece, so the Z-dimensions of the machined surface are negative.

WX+Y+APΔx = 70Δy = 55120 × 80 plate, zero W at the centerX30 Z0X42 Z−48Z+X+Wspindle axis (Z)lathe: X along the diameter, Z along the axis
Figure 7.2 · On the left, a milled plate with the origin at the center: hole A, hole P, and the distance between them. On the right, a tapered section turned on a lathe in the Z-X plane: each point on the profile is a pair of dimensions (the X-coordinates represent diameters).
Example 7.1 · Shifting the work zero

On the drawing of a 120 × 80 mm plate, the holes are dimensioned starting from the lower-left corner: four holes at (15; 15), (105; 15), (15; 65), (105; 65), and a P hole at (85; 70). The programmer wants the W zero point at the center of the plate. What coordinates should he enter?

The center, in the old coordinates, is (120/2; 80/2) = (60; 40)
For each point, subtract the center: x' = x − 60 and y' = y − 40
(15; 15) → (−45; −25) · (105; 15) → (45; −25) · (15; 65) → (−45; 25) · (105; 65) → (45; 25)
P: (85 − 60; 70 − 40) = (25; 30)
Holes at X±45, Y±25, and hole P at X25, Y30: the four holes are immediately recognizable as symmetrical
Distance Between Two Points and the Midpoint
d = √((x2 − x1)² + (y2 − y1)²) M = (x1 + x22 ; y1 + y22)
x1, y1 and x2, y2 are the coordinates of the two points, in mm · d is the straight-line distance, in mm · M is the midpoint. The distance is given by the Pythagorean theorem (Chapter 3) applied to the triangle with sides Δx and Δy.
Example 7.2 · Center-to-center distance between two holes

With the origin at the center, hole A is at (−45, −25) and hole P is at (25, 30). What is the distance between the two holes, and where is the midpoint?

Δx = 25 − (−45) = 70 mm · Δy = 30 − (−25) = 55 mm
d = √(70² + 55²) = √(4900 + 3025) = √7925 = 89.02 mm
M = ((−45 + 25) / 2; (−25 + 30) / 2) = (−10; 2,5)
Center-to-center distance: 89.02 mm; midpoint at X−10, Y2.5

7.2 The Concept of a Function

A function is a rule that, for every value of one quantity—the independent variable (usually x)—assigns one and only one value of another quantity—the dependent variable (y). It is written as y = f(x) and read as “y is a function of x.” The set of values that x can reasonably take is called the domain: a length cannot be negative, and the number of workpieces must be an integer.

This same function can be implemented in three ways, and all three are encountered in the workshop:

  • using a formula such as n = 1000 · Vc / (π · D): this is the most accurate method;
  • using a table, such as the recommended cutting speeds in the insert catalog: only a few values are listed; the others are calculated by interpolation (section 7.10);
  • with a graph, such as an engine's torque curve: you can see at a glance how the value changes, but you can interpret it with the precision provided by the drawing.

On the graph, the “one and only one value” rule is verified as follows: each vertical line must intersect the curve at no more than one point. If a single value of x yielded two values of y, we would not know which one to use.

Example 7.3 · The weight of a rod as a function of its length

A round steel bar with a diameter of 50 mm (density 7.85 kg/dm³) is cut into pieces of different lengths. Express the mass as a function of length and create a table.

Cross-sectional area: A = π · 25² = 1963.5 mm²
Volume of one meter: 1,963.5 mm² · 1,000 mm = 1,963,500 mm³ = 1.9635 dm³
mass per meter: 1.9635 × 7.85 = 15.41 kg → m(L) = 15.41 × L (L in meters, m in kg)
L = 0.5 m → 7.71 kg · L = 1 m → 15.41 kg · L = 2 m → 30.83 kg · L = 3 m → 46.24 kg
m = 15.41 · L: each length corresponds to a single mass, so it is a function (domain: L > 0)

7.3 The Linear Function

The simplest and most commonly used function is the one whose graph is a straight line:

Linear Function
y = m · x + q m = ΔyΔx = y2 − y1x2 − x1
m slope (or angular coefficient): the change in y when x increases by 1; its unit is “unit of y divided by unit of x” · q y-intercept: the value of y when x = 0, that is, the point where the line intersects the y-axis, with the unit of y. If m > 0, the line slopes upward; if m < 0, it slopes downward; if m = 0, it is horizontal.
10203040506070801020304050xyΔx = 50Δy = 20q = 14slope m = Δy / Δx = 20 / 50 = 0.4y = 0.4x + 14
Figure 7.3 · The slope is measured using any triangle placed against the line: the ratio of the vertical rise to the horizontal distance is always the same.

The slope does not depend on where the triangle is drawn: this is the property that distinguishes a straight line from all other curves. The slope is also related to the angle α that the line forms with the x-axis: m = tan α (Chapter 5), provided that the two scales are the same.

Example 7.4 · Cost of a Batch

For a batch of flanges, machine setup costs €150, and each workpiece costs €4.20. Determine the cost of the batch based on the number of workpieces, and calculate the cost per workpiece for 50 and 500 workpieces.

C(N) = 150 + 4.20 · N: y-intercept 150 €, slope 4.20 € per workpiece
N = 50: C = 150 + 210 = 360 €, cost per workpiece 360 / 50 = 7.20 €
N = 500: C = 150 + 2,100 = 2,250 €, unit cost 2,250 / 500 = 4.50 €
The cost per batch is linear; the unit cost, 150/N + 4.20, decreases toward 4.20 € as the batch size increases
Example 7.5 · The Slope of a Cone

The cone shown in Figure 7.2 extends from X30 to Z0 and from X42 to Z−48. Find the taper and the angle of the cone relative to the axis.

Regarding the diameter: (42 − 30) / 48 = 12 / 48 = 0.25 → taper ratio 1 : 4
on the radius (which is the true coordinate of the profile): m = 6 / 48 = 0.125
angle: α = arctan 0.125 = 7.125°
Taper ratio 1:4, semi-angle 7.125° (the radius increases by 0.125 mm for every millimeter of length)
⚠️
Diameter or radius? On the lathe, the X-dimension is a diameter, but the profile drawing is drawn in the Z-X plane using the radius. When calculating a slope or angle using a program, first divide the X differences by two. Forgetting to do this doubles the slope and gives an incorrect angle.

7.4 Lines through Two Points, Parallel Lines, Perpendicular Lines, and Intersections

Two points are sufficient to determine a line. The slope is calculated using the formula in Section 7.3, and then q is determined by requiring that the line pass through one of the two points.

A straight line through two points; parallel and perpendicular lines
y = y1 + m · (x − x1) parallel: m1 = m2 perpendicular: m1 · m2 = −1
Distance of a point (x0; y0) from the line: d = | m · x0 − y0 + q |√(1 + m²)
m: slope · x1, y1: a known point on the line · m1, m2: slopes of two lines · d: distance, in the same units as the coordinates. A line parallel to the given line at a distance d has the same slope m and an y-intercept shifted by d · √(1 + m²). Vertical lines (x = constant) have no slope and are treated separately.

Two non-parallel lines meet at a point, the point of intersection. Its coordinates satisfy both equations: set them up as a system (Chapter 1) by equating the two expressions for y.

20406080100204060X (mm)Y (mm)Ø16 cutterI (40; 30)B (52; 0)d = 32.31edge: y = 0.4x + 14Cutter center: y = 0.4x + 22.62workpiece
Figure 7.4 · The slanted edge of the workpiece, the path parallel to the centerline of a Ø16 end mill, and the perpendicular line from point B, which intersects the edge at point I (equal scales on both axes).
Example 7.6 · The Beveled Edge and the Milling Path

The edge of a plate extends from point (10; 18) to point (70; 42). Find the equation of the edge and the equation of the path of the center of a Ø16 milling cutter that traces the edge from the outside (i.e., from the side with the larger y-coordinates).

m = (42 − 18) / (70 − 10) = 24 / 60 = 0,4
y = 18 + 0,4 · (x − 10) = 0,4x + 14
Check with the other point: 0.4 × 70 + 14 = 42 ✓
The center of the milling cutter is r = 8 mm from the edge: q' = 14 + 8 · √(1 + 0,4²) = 14 + 8 · 1,0770 = 22,62
Edge: y = 0.4x + 14; cutter center: y = 0.4x + 22.62 (this is the calculation that the controller performs automatically using G41/G42 radius compensation)
Example 7.7 · Perpendicular Line, Intersection, and Distance

From point B (52; 0), we want to draw a line perpendicular to the line y = 0.4x + 14. Where does it intersect the line, and how far is B from the line?

Slope of the perpendicular: m' = −1 / 0.4 = −2.5
The equation of line B is: y = 0 − 2.5 · (x − 52) = −2.5x + 130
intersection: 0.4x + 14 = −2.5x + 130 → 2.9x = 116 → x = 40; y = 0.4 · 40 + 14 = 30
Distance B-I: √((52 − 40)² + (0 − 30)²) = √(144 + 900) = 32.31 mm
Check using the formula: |0.4 × 52 − 0 + 14| / √1.16 = 34.8 / 1.0770 = 32.31 mm ✓
I (40; 30), distance 32.31 mm
Example 7.8 · Conventional Lathe or CNC Lathe? The Break-Even Point

On a traditional lathe, a workpiece costs €40 for setup plus €9 per workpiece; on a CNC lathe, it costs €220 for setup (programming and tooling) plus €3 per workpiece. At what quantity does the CNC become cost-effective?

Traditional: C1 = 40 + 9N · CNC: C2 = 220 + 3N
Equation: 40 + 9N = 220 + 3N → 6N = 180 → N = 30 (cost: 310 € for both)
Comparison with 20 workpieces: €220 vs. €280 (the traditional method wins); with 50 workpieces: €490 vs. €370 (the CNC method wins)
For runs of fewer than 30 workpieces, traditional machining is more cost-effective; for runs of more than 30 workpieces, CNC machining is more cost-effective.
102030405060100200300400500600Workpieces in lot NCost (€)Break-even point: N = 30, 310 €Traditional: 40 + 9NCNC: 220 + 3NThe traditional method is more cost-effectiveCNC is more cost-effective
Figure 7.5 · The break-even point is the intersection of the two cost lines. The line with the higher y-intercept and the lower slope is more advantageous for large lots.

7.5 Direct and Inverse Proportionality in Graphs

In Chapter 1, we looked at the two proportional relationships as rules for calculation. They are immediately recognizable on the graph:

  • The direct proportionality y = k · x is a straight line that passes through the origin (a linear function with q = 0). The ratio y/x is always k;
  • The inverse proportionality relationship y = k / x is a branch of a hyperbola: it drops rapidly and then flattens out, without ever touching the axes. The product x · y is always k.

Be careful not to confuse “linear” with “proportional”: the straight line C = 150 + 4,20N In Example 7.4, the line is linear, but doubling the number of workpieces does not double the cost because of the y-intercept. There's a trick for recognizing the inverse: if you plot y depending on 1/x instead of x, the hyperbola becomes a line passing through the origin. It is said that the graph has been linearized, and a straight line is much easier to check by eye than a curve.

204060801001,0002,0003,000D (mm)n (rpm)curve (hyperbola)0.020.040.061,00020003,0001/D (1/mm)n (rpm)line from the origin
Figure 7.6 · The same four points from the table in Example 7.9: on the left as a function of diameter (hyperbola), on the right as a function of 1/D (line passing through the origin).
Example 7.9 · RPM and Diameter at Constant Cutting Speed

With Vc = 180 m/min, the formula n = 180,000 / (π · D) yields this table. Verify that the rotational speed and diameter are inversely proportional.

D (mm)n (rpm)n · D1/D (1/mm)
202864,857 2960,0500
401432,457 2960,0250
60954,957 2960,0167
90636,657 2960,0111
The product n · D is always 180,000 / π = 57,296: inverse proportionality
On the line with a slope of 57,296 from the origin, the points lie on a straight line with a slope of 1/D.
When the diameter is doubled (from 20 to 40 mm), the number of revolutions is halved (from 2,865 to 1,432)
Example 7.10 · Is it proportional or not?

An operator records the following: 10 workpieces in 35 minutes, 20 workpieces in 50 minutes, 40 workpieces in 80 minutes. Is the time proportional to the number of workpieces?

ratios: 35/10 = 3.5 · 50/20 = 2.5 · 80/40 = 2 → not constant: not proportional
Ratio between the first two points: (50 − 35) / (20 − 10) = 1.5 min per workpiece; between the last two: (80 − 50) / (40 − 20) = 1.5 ✓
Intercept: 35 − 1.5 × 10 = 20 min → t = 20 + 1.5 × N
It is linear but not proportional: 20 minutes of setup plus 1.5 minutes per workpiece

7.6 The Parable

The quadratic function y = ax² + bx + c is represented by a parabola, a curve symmetric about a vertical line that passes through its lowest or highest point, the vertex. If a > 0, the parabola is concave upward and the vertex is a minimum; if a < 0, it is concave downward and the vertex is a maximum. The points where it intersects the x-axis are the solutions to the equation ax² + bx + c = 0, which we learned to solve in Chapter 1.

The Parable
y = ax² + bx + c xV = −b2a yV = axV² + bxV + c
a, b, c: coefficients (a ≠ 0) · xV, yV: coordinates of the vertex. The point of intersection with the y-axis is (0; c); the points of intersection with the x-axis are found using the solution formula and are symmetric with respect to xV.

In mechanics, the parabola appears frequently: the distance traveled by a body that starts from rest with constant acceleration (s = ½ · a · t², Chapter 9), kinetic energy as a function of velocity (E = ½ · m · v²), the heat produced by a current flowing through a resistor (P = R · I², Chapter 44), the trajectory of a flying chip or a jet of coolant, and the shape of a reflector.

Example 7.11 · The Accelerating Axis

An axis of a machining center starts from a standstill with a constant acceleration of 3 m/s² until it reaches a rapid traverse speed of 30 m/min. How much time and distance are required to reach full speed?

rapid feed rate: 30 m/min = 30 / 60 = 0.5 m/s
time: v = a · t → t = 0.5 / 3 = 0.1667 s
area: s = ½ · 3 · 0.1667² = 0.04167 m = 41.7 mm
after 0.1 s: s = ½ × 3 × 0.1² = 0.015 m = 15 mm (at the halfway point, the distance is only one-quarter of the original: this is the parabola)
0.167 s and 41.7 mm to reach the rapid feed rate; for shorter travel distances, the axis never reaches maximum speed
Example 7.12 · The Largest Area Enclosed by 40 m of Barriers

We want to mark off a rectangular storage area against the warehouse wall, using 40 meters of barriers on the three open sides. How do we do this to maximize the area?

sides perpendicular to the wall: x; parallel side: 40 − 2x
A(x) = x · (40 − 2x) = −2x² + 40x → a = −2 < 0: a parabola with one maximum
vertex: xV = −40 / (2 · (−2)) = 10 m; A = 10 · (40 − 20) = 200 m²
intersections with the x-axis: −2x² + 40x = 0 → x = 0 or x = 20 (area zero): the valid range is between 0 and 20 m
Verification: When x = 5 or x = 15, the area is 150 m², which is equal to the lengths of the two sides of the vertex ✓
10-meter sides, 20-meter long side, maximum area of 200 m²
510152050100150200x (m)A (m²)vertex (10; 200)(5; 150)(15; 150)warehouse wallxx40 − 2xA = x · (40 − 2x)40 m of barriers on three sides
Figure 7.7 · The enclosed area as a function of the x-coordinate is a downward-facing parabola: it intersects the x-axis at 0 and 20; the vertex represents the maximum value; and points at the same height are symmetrical.

7.7 Exponentials, Logarithms, and Logarithmic Scales

In the exponential function, the variable is proportional to the exponent: y = y0 · bx. For each equal increment of x, y does not increase by a fixed amount (as in a straight line) but is multiplied by the same factor. If the factor is greater than 1, the growth accelerates; if it is less than 1, the decline slows down and approaches zero without ever reaching it. In engineering, the most commonly used base is the number e = 2.71828..., and the inverse function is the natural logarithm ln, which is located on the calculator next to log (the base-10 logarithm from Chapter 1).

A Damping Exponential
y = y0 · e−t/τ t = τ · ln y0y
y0 initial value · t time · τ time constant, in the same unit as t: after one τ, 36.8% of the initial value remains; after three τ, 5% remains · e = 2.71828 · ln natural logarithm. This law is roughly followed by the cooling of a workpiece, the discharge of a capacitor (Chapter 44), and the drop in pressure in a leaking tank.
Example 7.13 · When Can a Hot Workpiece Be Measured?

A workpiece comes off the machining line at 180 °C in a workshop where the temperature is 20 °C. The temperature difference with the environment decreases with a time constant of τ = 25 min (approximate value; depends on mass and shape). What is its temperature after half an hour? How long must one wait for it to reach 30 °C?

Initial difference: ΔT0 = 180 − 20 = 160 °C
After 30 min: ΔT = 160 · e−30/25 = 160 · e−1.2 = 160 · 0.3012 = 48.2 °C → T = 20 + 48.2 = 68.2 °C
To reach 30 °C, the difference must decrease to 10 °C: t = 25 · ln(160 / 10) = 25 · ln 16 = 25 · 2.7726 = 69.3 min
68 °C after 30 minutes; it takes about 70 minutes to reach 30 °C (precise measurements are taken at 20 °C; see Chapter 31)

Logarithmic Scales

When a quantity ranges from 1 to 1,000, on a standard scale the small values end up clustered around the origin. A logarithmic scale places equal distances not between the numbers themselves but between their logarithms: there is the same distance between 1 and 10 as there is between 10 and 100 and between 100 and 1,000 (each segment is called a decade). On this scale, zero does not exist, and the intermediate marks (2, 3, 4 … 9) are clustered toward the end of each decade. The speed ranges of old gear-driven lathes were also chosen this way: 50, 71, 100, 140, 200, 280… Each value is approximately 1.41 times the previous one, and on the logarithmic scale, the revolutions are equally spaced.

A graph with both axes on a logarithmic scale is called a bilogarithmic graph. Its most useful property is that any law of the form y = C · x^k (a power) becomes a straight line, because log y = log C + k · log x. The slope of the line, measured in decades, is the exponent k. This is the case for Taylor’s law on tool life (Chapter 24): Vc · Tn = C, that is, Vc = C · T−n, which on a bilogarithmic graph is a straight line with a slope of −n.

1251020501001002003005001,000Cutting edge life T (min), logarithmic scaleVc (m/min), logarithmic scaleTest 1: 250 m/min, 12 minTest 2: 180 m/min, 45 minVc · T0.2485 = 463.6
Figure 7.8 · On a double-logarithmic graph, Taylor's law is a straight line: two duration tests are enough to plot it. The thicker lines mark the beginning of each decade.
Example 7.14 · Derive the Taylor line from two data points

Using one insert, two endurance tests are performed: at 250 m/min, the cutting edge lasts 12 minutes; at 180 m/min, it lasts 45 minutes. Find n and C, and the expected endurance at 220 m/min.

From the two equations: 250 · 12n = 180 · 45n → (45/12)n = 250/180
Using logarithms: n = log(250/180) / log(45/12) = log 1.3889 / log 3.75 = 0.14267 / 0.57403 = 0.2485
C = 250 × 120.2485 = 463.6 (check: 180 × 450.2485 = 463.6 ✓)
at 220 m/min: T = (C / Vc)¹/n = (463.6 / 220)¹/0.2485 = 20.1 min
n ≈ 0.25, C ≈ 464; at 220 m/min, the cutting edge lasts about 20 minutes (220 falls between the two tests: it is a reliable reading)

7.8 Interval Functions

A single formula is not always sufficient for the entire domain. A piecewise function uses different formulas in different intervals of x. It is written by listing each formula along with its interval, and at the transition points, it must be clearly stated which formula applies. On the graph, you can see “edges” or discontinuities if the function is not continuous.

The most typical example in the workshop is the constant cutting speed on a lathe (Chapter 26): with G96, the controller calculates the RPM based on the diameter, but never exceeds the limit specified with G50 S... (on Siemens, LIMS=). The RPM function therefore has two segments:

Turns with G96 and G50 limit
n(D) = nmax if D ≤ Dlim n(D) = 1000 · Vcπ · D if D > Dlim Dlim = 1000 · Vcπ · nmax
n spindle speed in rpm · nmax limit set with G50, in rpm · Vc cutting speed in m/min · D diameter at which the drill is cutting, in mm · Dlim diameter below which the spindle speed remains at the limit, in mm.
204060801005001,0001,5002,0002,5003,0003,500Diameter D (mm)n (rpm)D lim = 19.1G50 S2500Without a limit, the formula would require a higher valuen = 1000 · Vc / (π · D)Ø40: 1194Ø80: 597
Figure 7.9 · A function with two segments: horizontal up to Dlim, then a hyperbolic branch. The dashed line represents what the formula would yield if there were no limit.
Example 7.15 · Facing with Vc = 150 m/min and G50 S2500

Calculate the limit diameter and the revolutions at Ø80, Ø40, Ø25, and Ø10.

Dlim = 1000 · 150 / (π · 2500) = 150,000 / 7,854.0 = 19.1 mm
Ø80: n = 150,000 / (π · 80) = 596.8 rpm · Ø40: 1,193.7 rpm · Ø25: 1,909.9 rpm (all above Dlim: the formula applies)
Ø10 is below Dlim: the formula would yield 4,774.6 rpm, but the spindle remains at 2,500
D_(lim) = 19.1 mm; below this diameter, n = 2,500 rpm (constant), and the cutting speed decreases

Other functions that are often encountered: tiered rates (transportation, energy), a motor’s torque diagram (Section 7.9), the stress-strain curve of materials (elastic and plastic regions), and the profile of a turned workpiece, which is a sequence of straight line segments and arcs.

7.9 Reading a Technical Diagram

Before reading a value from a chart, it's always a good idea to perform the same checks:

  • What are the dimensions on each axis, and in what units (rpm or rad/s? kW or CV? N/mm² or MPa?)?;
  • whether the scale is linear or logarithmic, and whether one axis starts at zero or at another value;
  • If there are two vertical axes with different curves: each curve is read on its own axis, which is usually indicated by the same color;
  • Under what conditions does the diagram apply: continuous or intermittent service, temperature, material, type of test?

The torque-power curve of a spindle

The spindles of CNC machines are driven by motors controlled by inverters (Chapter 45). Their performance curve typically has two regions. Up to the base speed, the motor can deliver constant torque, and spindle power increases in proportion to the spindle speed. Above the base speed, power remains constant and torque decreases hyperbolically, according to the formula in Chapter 2: M = 9549 · P / n (M in N·m, P in kW, n in rpm). These are two piecewise functions, one for torque and one for power.

1,0002,0003,0004,0005,0006,000204060803691215Spindle speed n (rpm)torque M (N·m)Power P (kW)Base speed 1,500Constant power 11 kWtorque 70 N·mM = 9,549 · P / nP increaseswith n
Figure 7.10 · Illustrative diagram of an 11-kW spindle in continuous operation: torque (red) is plotted on the left axis, and power (blue) on the right axis.
Example 7.16 · Is the machine sufficient for roughing at low speeds?

The spindle shown in Figure 7.10 has a power rating of 11 kW, a base speed of 1,500 rpm, and a maximum speed of 6,000 rpm. Calculate the torque in the low-speed range, the available power at 800 rpm, and the torque at 3,000 rpm; then determine whether it is possible to rough-machine a Ø120 workpiece at a feed rate (Vc) of 200 m/min with a pass that requires 5 kW from the motor.

Constant torque: M = 9549 × 11 / 1500 = 70.0 N·m
at 800 rpm (constant torque range): P = M · n / 9549 = 70.0 · 800 / 9549 = 5.87 kW
at 3,000 rpm (constant power band): M = 9,549 × 11 / 3,000 = 35.0 N·m
Revolutions for Ø120 at 200 m/min: n = 200,000 / (π · 120) = 530.5 rpm → P = 70.0 · 530.5 / 9,549 = 3.89 kW
At 530 rpm, the machine delivers only 3.9 kW: a 5-kW pass is not possible; either the depth or the feed rate must be reduced
💡
The rated power isn't available at all RPMs. The 11 kW listed on the machine is only available at 1,500 RPM and above. Heavy roughing operations on large diameters are performed at low RPMs, precisely where the available power is lowest; this is why many lathes have a two-range reduction gear, which lowers the base speed.

The Tensile Strength Diagram

In a tensile test (Chapter 19), a test specimen is pulled until it breaks, and the machine records the stress σ as a function of the percentage elongation ε. The stress-strain curve for structural steel has four regions: an initial elastic region, which is linear, where the test specimen returns to its original shape when the load is removed; the yield point, where the material elongates with almost no increase in load; the work-hardening region, where the stress rises again to the maximum value Rm; and the necking region, where the specimen tapers at a point and breaks. Here, we are interested in learning how to interpret the diagram; the meaning of the numbers is covered in Chapters 10 and 19.

51015202530100200300400500Elongation ε (%)tensile strength σ (N/mm²)× yieldA ≈ 25%Re ≈ 300Rm ≈ 470elasticyieldwork hardeningconstriction
Figure 7.11 · An illustrative tensile diagram for structural steel. The elastic region is shown much wider than it actually is; otherwise, it would be a vertical line.
Example 7.17 · Reading a stress-strain diagram

From Figure 7.11 and the test data (which, in the elastic region, shows σ = 210 N/mm² with ε = 0.1%), determine the yield strength, tensile strength, elongation at break, and the slope of the elastic region.

yield: where the curve stops rising, Re ≈ 300 N/mm²
Maximum value of the curve: Rm ≈ 470 N/mm²
Elongation at break: From the point of break, the curve descends parallel to the elastic region (elastic recovery), and we read A ≈ 25%
Stress-strain relationship in the elastic range: σ / ε = 210 / 0.001 = 210,000 N/mm² (ε = 0.1% = 0.001)
Re ≈ 300 N/mm², Rm ≈ 470 N/mm², A ≈ 25%; the slope of the elastic line is the elastic module E = 210,000 N/mm²

7.10 Linear Interpolation in Tables

The technical tables provide values only for certain rows: feeds of 0.2 and 0.3, hardnesses of 200 and 250 HB, and so on. For a value that falls between two entries, linear interpolation is used: it is assumed that between two adjacent entries, the quantity varies along a straight line, and the line through two points from Section 7.4 is used. The error is small if the data points are densely spaced and the true curve is relatively flat in that section.

Linear Interpolation
y = y1 + (x − x1 ) · y2 − y1x2 − x1 inverse: x = x1 + (y − y1 ) · x2 − x1y2 − y1
x1, y1 and x2, y2 are the two rows in the table immediately below and immediately above the value being searched for · x is the given value, y is the value being searched for (in the inverse formula, the order is reversed). The units are those of the table. This applies only when x is between x1 and x2.

For our examples, we will use this table, which we created using average and rounded values: it is intended as a guide for a coated carbide insert on non-alloy steel and is not a substitute for the manufacturer’s catalog.

Material Hardnessf = 0.1 mm/revolutionf = 0.2 mm/revolutionf = 0.3 mm/revolutionf = 0.4 mm/revolution
150 HB360305265235
200 HB320270235210
250 HB280235205180
300 HB240200175155

Table 7.1 · Recommended cutting speeds in m/min (approximate values). For the 200 HB row, with f = 0.5 mm/rev, the speed is 190 m/min.

0.10.20.30.40.50.6200250300350Feed rate f (mm/rev)Recommended Vc (m/min)f = 0.25 → Vc ≈ 252.5Points: Table rowsthin line: true curve (unknown)
Figure 7.12 · The 200 HB line plotted on a graph. Between f = 0.2 and f = 0.3, the actual curve is replaced by the red line: at f = 0.25, the reading is 252.5 m/min.
Example 7.18 · Simple Interpolation

200 HB steel, feed rate of 0.25 mm/rev. What cutting speed does the table recommend?

Adjacent lines: f1 = 0.2 → 270 m/min; f2 = 0.3 → 235 m/min
Vc = 270 + (0.25 − 0.2) · (235 − 270) / (0.3 − 0.2) = 270 + 0.05 · (−35) / 0.1 = 270 − 17.5 = 252.5 m/min
Vc ≈ 252 m/min (0.25 is halfway between 0.2 and 0.3, so Vc is also halfway between 270 and 235)
Example 7.19 · Inverse Interpolation

Still at 200 HB, we want to machine at 250 m/min. What feed rate does the table specify?

250 lies between 270 (f = 0.2) and 235 (f = 0.3)
f = 0.2 + (250 − 270) · (0.3 − 0.2) / (235 − 270) = 0.2 + (−20) · 0.1 / (−35) = 0.2 + 0.0571 = 0.257 mm/revolution
f ≈ 0.26 mm/revolution

Double Interpolation

When the value being sought depends on two variables, and both fall between the rows and columns of the table, interpolation is performed twice: first along the rows (using the first variable), then between the two results (using the second). The order does not affect the result.

Example 7.20 · Double interpolation: 230 HB and f = 0.25 mm/revolution
Line 200 HB, where f = 0.2 to 0.3: 270 + 0.5 · (235 − 270) = 252.5 m/min
Line 250 HB, where f = 0.2 to 0.3: 235 + 0.5 · (205 − 235) = 220 m/min
between the two lines, with 230 HB: 252.5 + (230 − 200) / (250 − 200) · (220 − 252.5) = 252.5 + 0.6 · (−32.5) = 252.5 − 19.5 = 233 m/min
Check in the other order: column 0.2 at 230 HB: 270 + 0.6 · (235 − 270) = 249; column 0.3: 235 + 0.6 · (205 − 235) = 217; average: (249 + 217) / 2 = 233 ✓
Vc ≈ 233 m/min

7.11 Extrapolation and Its Risks

Extrapolation means using a table, a straight line, or a formula outside the range of data from which it was derived. The calculation is done using the same formula as for interpolation, but the result is much less reliable: within the range, the true curve is “constrained” by the data on both sides, but outside the range, no one knows how it behaves. In the workshop, things often change right at the edges: a tool that starts to wear out rapidly, a material that yields, an engine that goes beyond the constant-torque range, or a cutting insert used beyond the maximum allowable feed rate.

Example 7.21 · When should the insert be replaced?

During a test series, the wear on the VB flank of the cutting edge is measured: 0.10 mm after 5 minutes, 0.14 mm after 10 minutes, and 0.18 mm after 15 minutes. The permissible limit is VB = 0.3 mm. An operator extrapolates using a straight line: when will the wear reach the limit?

slope: (0.18 − 0.10) / (15 − 5) = 0.008 mm/min; y-intercept: 0.10 − 0.008 · 5 = 0.06 mm → VB = 0.06 + 0.008 · t
limit: 0.3 = 0.06 + 0.008 · t → t = 0.24 / 0.008 = 30 min
But after about twenty minutes, the wear rate accelerates (Figure 7.13): in reality, the limit is reached around 21 minutes
The rated life is 30 minutes; the cutting edge lasts about 21 minutes: extrapolating from this would mean working for 9 minutes with a damaged insert
51015202530350.10.20.30.40.5Cutting time t (min)VB wear (mm)Wear limit 0.3 mmActual: 21 minextrapolated: 30 minMeasurementsbreak-in · normal wear · accelerated wear
Figure 7.13 · The three measured points lie on the straight portion of the wear curve; the extended line (blue dashed line) does not account for accelerated wear and suggests a service life that does not exist.
⚠️
Rule of thumb: You can always interpolate, but extrapolate only slightly and with caution. If you absolutely must go beyond the data, choose the result on the safe side (fewer revolutions, shorter service life, higher load) and verify it through testing. Extending Table 7.1 to f = 0.8 mm/rev would yield a number—130 m/min—which, however, is meaningless: the insert is not designed for that feed rate.

7.12 Creating a graph from measured data

A well-designed chart is easy to understand without any explanation. There are just a few rules:

  • On the horizontal axis, place the quantity that is varied or that changes on its own (time, diameter, revolutions); on the vertical axis, place the measured quantity;
  • Each axis has a name (or symbol) and a unit, in the form “t (min)” or “ΔZ (µm)”: an axis without a unit is meaningless;
  • Choose a scale so that the data fills almost the entire sheet and the divisions are easy to read: each centimeter represents 1, 2, or 5 units (or 10, 20, 50 ...; 2.5 is also fine), but never 3 or 7;
  • The measured points are marked with a clearly visible symbol; then, a smooth curve is drawn by hand that passes through the points, without drawing a broken line from one point to another: measurements always have some margin of error;
  • The vertical axis may not start at zero, but in that case it must be clearly stated, because a “truncated” graph makes large differences appear small.

For our examples, let’s use a real-world workshop measurement: the thermal drift of a machining center. The spindle is turned on at a constant speed, and every so often, a probe is used to measure how much the drill bit has shifted in the Z-axis due to the machine heating up.

t (min)0102030456090
ΔZ (µm)091519232526

Table 7.2 · Thermal elongation in the Z direction measured during spindle heating (example data).

Example 7.22 · Choosing Scales

You want to draw Table 7.2 on a piece of graph paper that is 200 mm wide and 120 mm tall. What scales should you choose?

axis: 90 min over 20 cm → this would require 4.5 min/cm; the next most convenient scale is 5 min/cm → 90 / 5 = 18 cm ✓
ΔZ axis: 26 µm over 12 cm → this would require 2.17 µm/cm; with 2 µm/cm, the distance would be 13 cm (which doesn’t work); with 2.5 µm/cm, the distance is 26 / 2.5 = 10.4 cm ✓
5 min/cm horizontally and 2.5 µm/cm vertically: the graph measures 18 × 10.4 cm
10203040506070809051015202530t (min)ΔZ (µm)at 40 min ≈ 21.7 µm■ measured pointshand-plotted curve
Figure 7.14 · Table 7.2 presented as a graph. Drift occurs rapidly during the first twenty minutes and then stabilizes; for this reason, precision work begins after the machine has warmed up.
Example 7.23 · Reading a Value That Has Not Been Measured

How much did the spindle stretch after 40 minutes?

40 min falls between 30 min (19 µm) and 45 min (23 µm)
ΔZ = 19 + (40 − 30) · (23 − 19) / (45 − 30) = 19 + 10 · 4 / 15 = 19 + 2.67 = 21.7 µm
Approximately 21.7 µm, which is also the value shown on the graph

7.13 The Regression Line

When the measured points lie almost on a straight line, we want to find the line that best represents them. Drawing it by eye with a ruler is fine for an estimate; the method that always gives the same result, no matter who uses it, is the least squares method. For each point, we measure the deviation—that is, the vertical distance between the point and the line; the best-fitting line is the one that minimizes the sum of the squares of the deviations. It’s called a regression line, and the calculation yields two formulas that can also be done by hand using a small table. Scientific calculators and spreadsheets provide this result with a single button (the “linear trend” function).

Regression Line (Least Squares)
m = N · Σxy − Σx · ΣyN · Σx² − (Σx)² q = Σy − m · ΣxN
N: number of points · Σ “sum of”: Σx is the sum of all x values, Σxy is the sum of the products x · y point by point, and Σx² is the sum of the squares of the x values. m and q are the slope and y-intercept of the line y = m · x + q, using the units defined in Section 7.3. The line always passes through the midpoint (Σx/N; Σy/N), and the sum of the deviations, with their signs, is zero.
Example 7.24 · The Stiffness of a Spring

A compression spring is loaded, and the force is measured at various extensions. Find the regression line and the spring constant.

x (mm)F = y (N)x · yx²straightdiscard
291849,6−0,6
421841619,81,2
6291743630,0−1,0
8413286440,20,8
105050010050,4−0,4
Σ = 3015011042200
m = (5 × 1104 − 30 × 150) / (5 × 220 − 30²) = (5520 − 4500) / (1100 − 900) = 1020 / 200 = 5.1 N/mm
q = (150 − 5,1 · 30) / 5 = (150 − 153) / 5 = −0,6 N
Check: midpoint (30/5; 150/5) = (6; 30) → 5.1 × 6 − 0.6 = 30 ✓; sum of deviations = 0 ✓
Expected force at 7 mm: 5.1 × 7 − 0.6 = 35.1 N
F = 5.1x − 0.6: stiffness 5.1 N/mm. The y-intercept of −0.6 N is merely an error in measurement (when the spring is unloaded, the force is zero).
24681012102030405060Elongation x (mm)Force F (N)midpoint (6; 30)F = 5.1x − 0.6y-offset from the line (N)−110−0.6x=21.2x=4−1.0x=60.8x = 8−0.4x=10
Figure 7.15 · The least-squares line passes through the points without touching all of them. On the right are the residuals, greatly magnified: the ones above and below cancel each other out, and their sum is zero.
📏
Where it is used. The regression line is used to calibrate a sensor (output voltage versus measured quantity, Chapter 47), to determine the stiffness of a spring or a piece of equipment, to correct a pitch error in a recirculating ball screw, or to track production dimensions over time (Chapter 38). Before calculating it, always look at the graph: if the data points form a curve, a straight line is not the correct model.

7.14 The Formulas in This Chapter

WhatFormula or rule
Distance between two pointsd = √((x2 − x1)² + (y2 − y1)²)
MidpointM = ((x1 + x2)/2; (y1 + y2)/2)
Linear Functiony = m · x + q · m = Δy / Δx
A straight line through two pointsy = y1 + m · (x − x1)
Parallel and Perpendicular Linesm1 = m2 · m1 · m2 = −1
Point-to-Line Distanced = |m · x0 − y0 + q| / √(1 + m²)
Direct and Inverse Proportionalityy = k · x (line through the origin) · y = k / x (hyperbola)
Vertex of the parabolaxV = −b / 2a
A Damping Exponentialy = y0 · e^(−t/τ) · t = τ · ln(y0/y)
Power on a double-logarithmic scaley = C · xk → log y = log C + k · log x
Turns with G96 and G50n = min(nmax; 1000 · Vc / (π · D)) · Dlim = 1000 · Vc / (π · nmax)
Torque and PowerM = 9549 · P / n
Linear Interpolationy = y1 + (x − x1) · (y2 − y1) / (x2 − x1)
Regression Linem = (N·Σxy − Σx·Σy) / (N·Σx² − (Σx)²) · q = (Σy − m·Σx) / N

7.15 Exercises

Try to solve them on your own, using a calculator and a sheet of graph paper, before looking at the solution.

Exercise 1. On a plane with the origin at the center, there are two holes, A (−30, 15) and B (45, −25). In which quadrants are they located? Calculate the distance between them and their midpoint.
Solution

A is in the second quadrant, B is in the fourth. Δx = 75, Δy = −40; d = √(5625 + 1600) = √7225 = 85 mm. Midpoint ((−30 + 45)/2; (15 − 25)/2) = (7.5; −5).

Exercise 2. A conical section on a lathe extends from X30 Z0 to X50 Z−40. Find the slope of the profile (with respect to the radius) and the half-angle of the cone.
Solution

The radius changes from 15 to 25 mm: m = 10 / 40 = 0.25 (absolute value). α = arctan 0.25 = 14.04°. The taper ratio is 20/40 = 1 : 2.

Exercise 3. Write the equation of the line that passes through (0, 12) and (50, 32), and calculate y when x = 35.
Solution

m = (32 − 12) / 50 = 0.4; q = 12 (this is the point where x = 0). y = 0.4x + 12; for x = 35: y = 14 + 12 = 26.

Exercise 4. Find the point of intersection of the lines y = 0.75x + 10 and y = −0.5x + 60. Are they perpendicular? What is the slope of the line perpendicular to the first one?
Solution

0.75x + 10 = −0.5x + 60 → 1.25x = 50 → x = 40, y = 40. They are not perpendicular: 0.75 · (−0.5) = −0.375 ≠ −1. The perpendicular line to the first has m = −1/0.75 = −4/3 ≈ −1.333.

Exercise 5. Machine A costs €80 to set up and €6 per workpiece; machine B costs €300 to set up and €2 per workpiece. Find the break-even point and determine which machine is more cost-effective for a batch of 40 workpieces.
Solution

80 + 6N = 300 + 2N → 4N = 220 → N = 55 workpieces. With 40 workpieces: A costs 80 + 240 = 320 €, B costs 300 + 80 = 380 €: A is the better deal.

Exercise 6. A steel shaft 500 mm long at 20 °C expands according to L(T) = 500 · (1 + 0.0000115 · (T − 20)). What kind of function is this? What is the slope? How long is it at 35 °C?
Solution

It is linear in T. Slope = 500 · 0.0000115 = 0.00575 mm/°C. At 35 °C: L = 500 · (1 + 0.0000115 · 15) = 500.086 mm, i.e., 0.086 mm longer.

Exercise 7. For the parabola y = −2x² + 12x − 10, find its vertex and its points of intersection with the x-axis. Does it have a maximum or a minimum?
Solution

a = −2 < 0: it has a maximum. xV = −12 / (2 · (−2)) = 3; yV = −18 + 36 − 10 = 8 → vertex (3; 8). Dividing by −2: x² − 6x + 5 = 0 → Δ = 36 − 20 = 16 → x = (6 ± 4)/2 → x = 1 and x = 5 (symmetric about 3).

Exercise 8. An axis starts from rest with an acceleration of 2 m/s². How far does it travel in 0.2 s? How much time and how far does it need to travel to reach 15 m/min?
Solution

s = ½ · 2 · 0.2² = 0.04 m = 40 mm. 15 m/min = 0.25 m/s → t = 0.25 / 2 = 0.125 s; s = ½ · 2 · 0.125² = 0.0156 m = 15.6 mm.

Exercise 9. On the lathe, we are working with G96 S220 and G50 S3500. At what diameter and below does the spindle reach its limit? What are the spindle speeds at Ø60 and Ø12?
Solution

Dlim = 220,000 / (π · 3,500) = 20.0 mm. At Ø60: n = 220,000 / (π · 60) = 1,167 rpm. At Ø12 (below the limit): 3,500 rpm (the formula would give 5,836).

Exercise 10. Using Table 7.1, find the cutting speed for steel with a hardness of 180 HB and f = 0.15 mm/rev.
Solution

150 HB scale, halfway between 0.1 and 0.2: (360 + 305)/2 = 332.5. 200 HB scale: (320 + 270)/2 = 295. Between the lines, with 180 HB: 332.5 + (30/50) · (295 − 332.5) = 332.5 − 22.5 = 310 m/min.

Exercise 11. Based on Table 7.2, after how many minutes does the thermal drift reach 20 µm?
Solution

20 µm lies between 19 µm (30 min) and 23 µm (45 min). Inverse interpolation: t = 30 + (20 − 19) · (45 − 30) / (23 − 19) = 30 + 15/4 = 33.75 min, or approximately 34 minutes.

Exercise 12. To calibrate a load cell, read the output values of 3, 5, 8, and 9 mV under loads of 1, 2, 3, and 4 kN. Find the regression line and the expected output at 2.5 kN.
Solution

Σx = 10, Σy = 25, Σxy = 3 + 10 + 24 + 36 = 73, Σx² = 30, N = 4. m = (4 · 73 − 10 · 25) / (4 · 30 − 100) = 42 / 20 = 2.1 mV/kN; q = (25 − 2.1 · 10) / 4 = 1 mV. y = 2.1x + 1; for 2.5 kN: 6.25 mV.

Exercise 13. Two endurance tests yield the following results: 300 m/min → 8 minutes, 200 m/min → 40 minutes. Find the exponent n and the constant C of Taylor’s law.
Solution

n = log(300/200) / log(40/8) = log 1.5 / log 5 = 0.17609 / 0.69897 = 0.252. C = 300 · 80.252 ≈ 507 (check: 200 · 400.252 ≈ 507).

Exercise 14. A workpiece at 120 °C cools in an environment at 20 °C with a time constant of 15 minutes. What is its temperature after 20 minutes?
Solution

ΔT0 = 100 °C; ΔT = 100 · e−20/15 = 100 · 0.2636 = 26.4 °C; T = 20 + 26.4 = 46.4 °C.