Chapter 51

Robotics and Machine Safety

The final chapter of the manual brings together everything we've studied: trigonometry for moving an arm, kinematics and dynamics to understand how fast it moves and how dangerous it is, pneumatics for collets and suction cups, sensors, actuators, and the PLC to make it work alongside a machine tool. In the second part, we discuss machine safety: the laws, risk assessment, guards, protective devices, and proper behavior in the workshop. This isn’t a topic just for specialists: anyone who works near a lathe or a robot needs to know how they’re protected—and why.

51.1 What Is an Industrial Robot?

An industrial robot is a machine with multiple axes controlled by a programmable controller, capable of moving a tool (a collet, a welding torch, a paint spray gun, a spindle) along different trajectories without changing the mechanical structure: to have it perform a new task, all you need to do is change the program. This is what sets it apart from “rigid” automation, such as a cam-driven loader or a two-position pneumatic manipulator, which can perform only a single movement.

A robot consists of four parts:

  • the manipulator—that is, the robotic arm—with its motors, gearboxes, brakes, and encoders (the same servo drives as in Chapter 48);
  • the controller, a cabinet containing the computer that performs the kinematic calculations, the axes drives, and the safety circuits;
  • the programming console (teach pendant), the portable panel that the operator uses to move the robot and write programs;
  • the gripper or tool mounted on the flange, which the robot manufacturer almost never supplies: it is selected or designed for each specific application.

Robots perform repetitive, heavy, dirty, or dangerous tasks: loading and unloading machine tools, welding, painting, palletizing, assembly, deburring, and packaging. They do not replace the skilled operator; rather, they shift the operator’s focus from handling workpieces to monitoring, programming, and improving the process.

51.2 Degrees of Freedom, Joints, and Kinematic Chains

A rigid body moving freely in space can move in six independent ways: three translations (along the X, Y, and Z axes) and three rotations (around X, Y, and Z, which are called A, B, and C on numerical controls). It is said to have six degrees of freedom. The three translations determine where there is the body, its position; the three rotations are decisive as He turned around, his orientation. The position and orientation together are called installation.

XYZABC3 translationsalong X, along Y, along Z3 rotationsA around X, B around Y,C around ZTotal: 6 degrees of freedomposition (3) + orientation (3)
Figure 51.1 · The six degrees of freedom of a rigid body: three translations along the axes and three rotations about those same axes.

To move a tool into any position, six independent movements are therefore required: this is why the most common robot has six axes. A robot with fewer axes is sufficient when certain movements aren’t needed: to pick up workpieces from a conveyor belt and place them in a box, with the collet always facing downward, four axes are enough (X, Y, Z, and rotation around the Z-axis).

Rotary and Prismatic Joints

The robot's arms are connected by joints, and each motorized joint provides one degree of freedom. There are two types:

  • The rotary joint (symbol R) causes one arm to rotate relative to the other around an axis, like an elbow; its variable is an angle θ;
  • The prismatic joint (symbol P) allows one arm to slide inside the other in a straight line, like a pneumatic cylinder or a slide on rails; its variable is a length d.
θaxisRotoidal joint (R)The two arms rotate relative to each otherdguiderodPrismatic joint (P)one workpiece slides inside the other in a straight line
Figure 51.2 · On the left, a rotoidal joint: the second arm rotates by an angle θ relative to the direction of the first (hatched line). On the right, a prismatic joint: the rod exits the guide after a travel d.

The Powertrain

The base, arms, and joints form the powertrain of the robot. In most common robots, the chain is open (or serial): each arm supports the one that follows it, from the base to the flange, just like the bones of the human arm from the shoulder to the hand. Each joint must support and move everything that comes after it, which is why the motors on the first axes are the largest. In chain-type robots closed (or parallel), like the delta, multiple arms extend from the base and converge on the same platform: they are stiffer and lighter, but have a smaller working area.

Example 51.1 · Counting the degrees of freedom

How many degrees of freedom do these robots have, and are they sufficient for the job?

anthropomorphic with 6 rotary joints (RRRRRR): 6 degrees, any pose
SCARA with 3 rotary joints and 1 prismatic joint (RRPR): 4 degrees, any orientation, but the tool must always remain vertical
portal with 3 slides (PPP): 3 degrees of freedom, position only; with a rotating axis on the Z slide, this becomes 4
To deburr the edge of a casting that is tilted in space, you need to orient the tool in every possible direction: it takes 6 degrees
A 6-axis robotic arm is needed for deburring; a SCARA robot or a gantry is sufficient for picking up and placing flat workpieces

51.3 Types of Robots

Robots are distinguished by their combination of joints and, consequently, by the shape of their workspace—the set of points that the wrist can reach.

The six-axis anthropomorphic robot

It has six rotary joints and resembles a human arm: a rotating base (J1), a shoulder (J2), an elbow (J3), and a wrist with three rotational axes (J4, J5, J6). The first three axes move the wrist to the desired position, while the last three orient the flange. The workspace is roughly a hollow sphere centered on the shoulder. It is the most versatile robot: it loads machines, welds, paints, and palletizes.

J1J2J3J4J5J6TCPMaximum reachJ1 base rotationJ2 shoulderJ3 elbowJ4 forearm rotationJ5 wrist flexionJ6 Flange rotationJ1, J2, J3: wrist positionJ4, J5, J6: orientation
Figure 51.3 · Side view of an anthropomorphic robot. The hatched area indicates the limit of the reach around the shoulder: the actual workspace is the area obtained by rotating this section around the J1 axis, minus the areas restricted by the joint stops.

The SCARA robot

The SCARA (an acronym for "Spherical-Cylindrical Articulated Arm") has two vertical-axis rotary joints that move the arm horizontally, a vertical prismatic axis that moves up and down, and a final rotation around the vertical axis. It is rigid vertically and somewhat flexible horizontally: perfect for inserting workpieces into holes from above and for assembling small components, with very fast cycles. The workspace, viewed from above, is a circular ring.

J1J2J3J4Side view: J1 and J2 are vertical, J3 moves up and down, J4 rotatestop viewworkspace: a circular ring
Figure 51.4 · SCARA robot. On the right, from top to bottom, its workspace: between the maximum radius (arms extended) and the minimum radius (arms folded).

The Cartesian and Gantry Robots

It has three prismatic axes perpendicular to each other—X, Y, and Z—just like a CNC milling machine. When the axes are mounted on an elevated frame, it is called gantry robot (gantry): The machine is positioned below, and the robot operates from above, without taking up floor space. The work area is a rectangular prism, and control is very simple because each axis moves only one coordinate. Gantry systems often load lathes from above, and multiple machines are arranged in a file.

XYZbridge (Y)carriage (X)vertical slide (Z)working space
Figure 51.5 · Gantry robot: The bridge moves in the Y-direction along the side beams, the carriage moves in the X-direction along the bridge, and the slide moves up and down in the Z-direction. The red hatched area represents the workspace.

The Delta Robot and the Collaborative Robot

The delta robot is a closed-loop system: three motors mounted on the base at the top move three lightweight arms that use parallelograms to keep the platform horizontal at all times. The moving masses are very small and the accelerations are extremely high: this is the high-speed “pick-and-place” robot used on conveyor belts in the food and pharmaceutical industries. The workspace is a low cylinder with a domed bottom.

A collaborative robot (cobot) is typically a six- or seven-axis anthropomorphic robot designed to work alongside people, without a safety fence, when a risk assessment permits it. It is lightweight, with rounded contours, and its control system monitors forces, speeds, and positions: if it collides with something, it stops. This safety feature comes at the cost of lower payloads and speeds (paragraph 51.13).

Fixed base with 3 motorsarmarmsparallelDelta robotshared workspaceCollaborative robot (cobot)
Figure 51.6 · On the left is the delta robot, with its workspace located below the base. On the right is a cobot on a workbench: its workspace overlaps with that of the operator.
TypeJointsWorkspaceTypical Uses
Anthropomorphic6 Rhollow spheremachine loading, welding, painting, palletizing
SCARA3 R + 1 Pcrown cylinderassembly, top-loading, rapid cycles
Cartesian, portal3 P (+ rotations)parallelepipedtop-loading lathes, long travels, multiple machines in a file
Delta3 parallel resistors (+ 1 resistor)cylinder with a domed bottomFast picking from a conveyor belt, packaging
Cobot6 o 7 Rhollow sphere, smallerI work alongside the operator, small batches

51.4 Wrist, Flange, TCP, and Reference Systems

The wrist is the group consisting of the last three joints. In anthropomorphic robots, their axes almost always intersect at a single point—the center of the wrist—so that position and orientation can be calculated separately, making the calculations much simpler. The wrist ends with the flange, the standardized perforated plate onto which the tool is mounted.

The point that really matters, however, isn’t the flange: it’s the tip of the tool—the point that must touch the workpiece. It’s called the TCP (Tool Center Point): the center point between the collet fingers, the tip of the welding wire, and the center of the suction cup. The robot moves and programs the TCP, just as the numerical control of a milling machine programs the tool tip using length compensation.

Reference Systems

  • The base reference (or world) is fixed to the robot's base, with the Z-axis pointing upward;
  • The flange reference is attached to the flange and moves with it;
  • The tool reference has its origin at the TCP, with the Z-axis aligned with the tool's direction; it is measured once by touching the same point with different orientations and is saved as “tool data”;
  • the user reference (or workpiece) is set on the workpiece, the pallet, or the fixture: it is the equivalent of the machine tool's G54 work zero. If the pallet is moved, simply remeasure the user reference, and all points in the program will follow it.
XZBase referenceflangeZ toolXTCPXZuser reference(pallet edge)
Figure 51.7 · Reference systems: base on the foundation, flange on the wrist, tool in the TCP (in red), and user on the edge of the pallet (in light blue). The Y-coordinate of each triplet is entered into the sheet.
💡
It’s the same concept as with a machine tool. The robot’s base reference acts as the machine zero, the user reference as the work zero, and the tool data as the length and radius offsets. Anyone who has learned how to set zeros on a CNC lathe (Chapter 50) will recognize the same concepts under different names.

51.5 Direct Kinematics of the Planar Arm

Direct kinematics answers the question: Given the joint angles, where is the TCP located? For a six-axis robot, the calculations are complex and are performed by the controller, but the principle is easily understood using a two-link planar arm, which is essentially the horizontal section of a SCARA robot. The first arm, of length L1, rotates about the origin by an angle θ1 measured from the x-axis; the second arm, of length L2, rotates by an angle θ2 measured from the direction of the first arm.

The elbow is located at (L1 cos θ1; L1 sin θ1): these are the polar coordinates from Chapter 5 (Section 5.13), with radius L1 and angle θ1. The second arm extends from the elbow and is inclined relative to the x-axis by an angle of θ1 + θ2: its projections are added together.

Direct Kinematics of the Two-Link Planar Arm
x = L1 · cos θ1 + L2 · cos(θ1 + θ2)
y = L1 · sin θ1 + L2 · sin(θ1 + θ2)
orientation of the second arm: φ = θ1 + θ2
x, y coordinates of the TCP in mm · L1, L2: arm lengths (axis-to-axis) in mm · θ1: angle of the first arm from the x-axis, in degrees, positive in the counterclockwise direction · θ2: angle of the second arm relative to the extension of the first arm, in degrees · φ: angle of the second arm relative to the x-axis
xyθ₁θ₂θ₁ + θ₂L₁L₂P (x; y)L₁ cos θ₁L₂ cos(θ₁ + θ₂)L₁ = 400 mm · L₂ = 300 mmθ₁ = 30° · θ₂ = 45°x = 400 × cos 30° + 300 × cos 75°x = 424.06 mmy = 400 sin 30° + 300 sin 75°y = 489.78 mm
Figure 51.8 · The arm from Example 51.2 drawn to scale. The x-coordinate of the TCP is the sum of the projections of the two arms onto the x-axis; the same applies to the y-coordinate.
Example 51.2 · Where Is the TCP?

A flat arm with L1 = 400 mm and L2 = 300 mm. The joints are at angles θ1 = 30° and θ2 = 45°. Find the coordinates of the TCP.

θ1 + θ2 = 30° + 45° = 75°
x = 400 · cos 30° + 300 · cos 75° = 400 · 0.86603 + 300 · 0.25882 = 346.41 + 77.65 = 424.06 mm
y = 400 · sin 30° + 300 · sin 75° = 400 · 0.5 + 300 · 0.96593 = 200.00 + 289.78 = 489.78 mm
TCP at (424.06; 489.78) mm, with the second arm tilted 75° about the x-axis
Example 51.3 · A Negative Angle

The same arm, with θ1 = 60° and θ2 = −90° (the elbow bends clockwise).

θ1 + θ2 = 60° − 90° = −30°
x = 400 · cos 60° + 300 · cos(−30°) = 400 · 0.5 + 300 · 0.86603 = 200.00 + 259.81 = 459.81 mm
y = 400 · sin 60° + 300 · sin(−30°) = 400 · 0.86603 + 300 · (−0.5) = 346.41 − 150.00 = 196.41 mm
TCP at (459.81; 196.41) mm: the cosine of a negative angle is positive, and the sine is negative

51.6 Inverse Kinematics of the Planar Arm

In real-world applications, the question is the opposite: the workpiece to be picked up is at point P (x; y)—at what angles should I position the joints? This is inverse kinematics, and it is solved using the trigonometry from Chapter 5.

The Angle of the Elbow According to Carnot's Theorem

The origin O, the elbow, and point P form a triangle with sides L1, L2, and the distance r = √(x² + y²). The angle at the elbow is 180° − θ2. Using Carnot’s theorem (Section 5.12), and recalling that cos(180° − θ2) = −cos θ2:

r² = L1² + L2² − 2 · L1 · L2 · cos(180° − θ2) = L1² + L2² + 2 · L1 · L2 · cos θ2

from which we obtain cos θ2. The arccosine yields a positive angle, but the opposite angle also has the same cosine: there are two solutions, a positive θ2 and a negative θ2, that is, the elbow bent one way or the other.

The Shoulder Angle with atan2

The angle θ1 is the difference between the direction of P, φ = atan2(y; x), and the angle ψ between the line OP and the first arm. The latter is determined by looking at the second arm “as seen from the first”: it extends L1 + L2 cos θ2 along the first arm and deviates L2 sin θ2 to the side. The atan2 function from Section 5.8 alone determines the quadrant.

Inverse Kinematics of a Two-Link Planar Arm
cos θ2 = x² + y² − L1² − L2²2 · L1 · L2 θ2 = ± arccos(cos θ2)
θ1 = atan2(y; x) − atan2(L2 · sin θ2; L1 + L2 · cos θ2)
x, y coordinates of the target point in mm · Positive θ2: elbow below the line OP (low elbow) · Negative θ2: elbow above the line OP (high elbow) · For each θ2, calculate its corresponding θ1. If cos θ2 is greater than 1 or less than −1, the point cannot be reached.
xyrP (500; 300)high elbowlow elbowcos θ₂ = 0.375θ₂ = ± 67.98°high elbowθ₁ = 59.45° · θ₂ = −67.98°low elbowθ₁ = 2.48° · θ₂ = +67.98°The two triangles are symmetricalwith respect to line r.
Figure 51.9 · The same point P can be reached in two ways: with the elbow high (red) or with the elbow low (light blue). A scaled drawing of Example 51.4.
Example 51.4 · High Elbow and Low Elbow

The arm from Example 51.2 (L1 = 400 mm, L2 = 300 mm) must move the TCP to point P (500; 300) mm. Find the two solutions.

r² = 500² + 300² = 250,000 + 90,000 = 340,000 → r = 583.10 mm (less than 700: the point is reached)
cos θ2 = 340 000 − 160 000 − 90 0002 · 400 · 300 = 90 000240 000 = 0,375
θ2 = ± arccos 0.375 = ± 67.98° · sin θ2 = ± √(1 − 0.375²) = ± 0.92702
φ = atan2(300; 500) = arctan 0.6 = 30.96°
L1 + L2 cos θ2 = 400 + 300 · 0.375 = 512.50 · L2 sin θ2 = ± 300 · 0.92702 = ± 278.11
ψ = atan2(± 278.11; 512.50) = ± 28.49°
low elbow (θ2 = +67.98°): θ1 = 30.96° − 28.49° = 2.48°
high elbow (θ2 = −67.98°): θ1 = 30.96° + 28.49° = 59.45°
Checking the high elbow with the direct method: x = 400 · cos 59.45° + 300 · cos(−8.53°) = 203.3 + 296.7 = 500.0 · y = 344.5 + (−44.5) = 300.0 ✓
Low elbow: θ1 = 2.48°, θ2 = 67.98° · High elbow: θ1 = 59.45°, θ2 = −67.98°

The programmer decides which of the two to choose: the one that doesn’t collide with the equipment, that doesn’t cause a joint to hit its stop, or that requires the shortest movement from the previous position. That is why, in robot programs, each point also includes its “configuration” (elbow up or down, wrist rotated or not).

⚠️
Singularities. When the arm is fully extended (θ2 = 0°) or fully folded (θ2 = 180°), the two solutions merge into one: the robot is in a singularity. Near these positions, a small shift in the TCP requires enormous joint movements, and the controller slows down or stops with an alarm. The same thing happens in the six-axis robot when J5 passes through zero and axes J4 and J6 align; this can be avoided by programming the wrist at a slight angle.

51.7 The accessible workspace

The flat arm reaches a maximum of L1 + L2 when fully extended and a minimum of |L1 − L2| when fully folded. If the joints could rotate freely, the reachable space would be the circular ring between these two radiuses. In reality, each joint has its own limits (software and mechanical end stops), cables and hoses restrict rotation, and some areas are off-limits because the robot itself occupies them: the actual working space is smaller and is specified by the manufacturer in a dimensioned drawing.

Reachability of a Point
|L1 − L2| ≤ r ≤ L1 + L2 r = √(x² + y²)
crown area: A = π · [(L1 + L2)² − (L1 − L2)²]
r: distance of the point from the axis of the first joint in mm · In space, for an anthropomorphic robot, the distance from the center of the shoulder (r = √(x² + y² + z²)) and the reach specified by the manufacturer are used
unfolded: L₁ + L₂folded: L₁ − L₂P₁P₂P₃outer radius 700 mmInner radius 100 mmP₁ (500; 300): r = 583.1P₂ (650; 300): r = 715.9P₃ (50; 50): r = 70.7Only the pointson the green ring, and only ifthe joint clearances allow it.
Figure 51.10 · Reachable area of the arm with L1 = 400 mm and L2 = 300 mm, without stops. P1 is within range, P2 is too far away, and P3 is in the central “gap,” too close.
Example 51.5 · Can the point be reached?

Again, with L1 = 400 mm and L2 = 300 mm, check points P2 (650; 300) and P3 (50; 50).

P2: r = √(650² + 300²) = √512,500 = 715.89 mm > 700 mm → too far
using the formula: cos θ2 = (512,500 − 250,000) / 240,000 = 1.094 > 1 → the arccosine does not exist
P3: r = √(50² + 50²) = 70.71 mm < 100 mm → too close to the axis
area of the crown: A = π · (700² − 100²) = 3.1416 · 480,000 = 1,507,964 mm² ≈ 1.51 m²
Neither P2 nor P3 is reached; the theoretical area is approximately 1.5 m²
Example 51.6 · Does the robot reach the lathe spindle?

An anthropomorphic figure has a reach of 1,650 mm, measured from the center of the shoulder to the center of the wrist. Relative to the shoulder, the gripping point in front of the lathe’s jaws is at (1,300; −600; 400) mm. The collet is 200 mm long and approaches the spindle by moving along the x-axis, so the center of the wrist remains 200 mm farther back, at (1100; −600; 400).

Distance from the grip point: √(1300² + 600² + 400²) = √2,210,000 = 1,486.6 mm
Distance from the center of the wrist: √(1100² + 600² + 400²) = √1,730,000 = 1,315.3 mm
margin: 1650 − 1315.3 = 334.7 mm
The reach is approximately 335 mm: the robot can reach the spindle without extending its arm fully

Working near the end of the reach is not recommended: at that point, the arm is close to a singularity, making it less rigid and less precise. The final verification is performed using the manufacturer’s simulation program, which also takes into account the stops and the required orientation.

51.8 Scheduling, Movements, and Performance

Programming for Learning and Offline Use

The most straightforward way to program a robot is through teaching: the operator moves the robot using the console, axis by axis or relative to various reference points, positions the TCP at the desired point, and saves it. Then the operator enters the instructions that connect the points, opens and closes the collet, and waits for the signals. The console always has an emergency stop button and a three-position enable button: the robot moves only when the enable button is held in the middle position; if it is released or pressed firmly due to a sudden startle, the motion stops. In this mode, the TCP’s speed is limited (according to industrial robot standards, to a maximum of 250 mm/s).

Offline programming is done on a computer using 3D models of the robot, the cell, and the workpieces: the movements are programmed, collisions and cycle times are checked, and then the program is loaded. The robot continues to produce while the new job is being prepared; only a few adjustments need to be made in the cell, because the actual cell is never identical to the drawing. It follows the same logic as CAM and simulation for machine tools.

Dot-to-dot, linear, and circular

  • Point-to-Point (PTP, known as MoveJ in some languages): Each joint moves to its final angle; all joints start and stop at the same time. This is the fastest motion and never passes through a singularity, but the TCP traces a curve that is not known in advance: it is used away from obstacles, like the rapid G00 movement on a machine tool.
  • Linear (LIN, MoveL): The TCP moves in a straight line at a programmed speed in mm/s, and the controller calculates the inverse kinematics hundreds of times per second. It is used to approach the workpiece and to enter the spindle, similar to G01.
  • Circular (CIRC, MoveC): The TCP moves along an arc defined by three points: start, intermediate point, and end. It is used for welding, bonding, and deburring, similar to G02 and G03.
Point-to-Point (PTP)ABEach joint moves independently:TCP takes a curveLinear (LIN)ABthe TCP moves in a straight line,all links coordinateCircular (CIRC)ABauxiliaryThree-point arc:start, auxiliary point, end
Figure 51.11 · Three different movements from the same point A to the same point B.
Example 51.7 · How long does a linear motion last?

The TCP must travel 800 mm in a straight line at 1.5 m/s, with acceleration and deceleration of 5 m/s². The velocity profile is trapezoidal, as for the CNC axes (Section 9.4).

acceleration time: ta = v / a = 1.5 / 5 = 0.30 s
Distance traveled during acceleration: sa = v² / (2a) = 2.25 / 10 = 0.225 m; same during deceleration
distance traveled at constant speed: 0.8 − 2 · 0.225 = 0.35 m → tc = 0.35 / 1.5 = 0.233 s
Total: 0.30 + 0.233 + 0.30 = 0.833 s
About 0.83 s; at a constant speed from the start, 0.53 s would have been enough

Performance

  • Payload: the mass that the robot can carry to the flange, including the collets, at full speed. The location of the center of gravity also matters: the farther it is from the flange, the less the robot can carry;
  • reach: the maximum distance that can be reached, usually from the first axis or the shoulder to the center of the wrist;
  • Repeatability: how closely the robot returns to the same stored point when repeating the movement many times; this is the key metric for points taught using the console. Accuracy (how close it gets to a calculated point) is lower, and is important in offline programming;
  • speed: of the joints, in degrees per second, and of the TCP, in m/s.
TypeCapacity (kg)Reach (m)Repeatability (± mm)
Small anthropomorphic figure3-120,5-1,40,02-0,04
Medium and Large Anthropomorphs20-5001,6-3,50,04-0,10
SCARA1-200,2-1,00,01-0,03
Cartesian, portal5-500travels of up to tens of meters0,05-0,10
Delta0,5-8diameter 0.5–1.60,02-0,10
Cobot3-200,5-1,80,02-0,10

These are approximate, rounded values, intended to give you an idea of the order of magnitude. The actual specifications for each model can be found in the manufacturer's data sheet.

Example 51.8 · Calculating TCP Speed from the Speed of an Axis

Axis 1 of an anthropomorphic robot rotates at 180°/s, and the TCP is located 1.2 m from the axis. How fast is the TCP moving?

ω = 180 · π / 180 = 3.1416 rad/s
v = ω · r = 3.1416 · 1.2 = 3.77 m/s (circular motion, Section 9.6)
v ≈ 3.8 m/s: more than 13 km/h, while holding a collet and a workpiece. That's why the robot is automatically kept inside a fence

51.9 Gripping Mechanisms

The collet is the only part of the robot that touches the workpiece, and it often determines whether the application works. There are three main solutions.

  • Two- or three-finger pneumatic collets, parallel or angular: a small cylinder (Chapter 42) opens and closes the fingers. They are simple, sturdy, and economical; the force is adjusted by pressure, and magnetic sensors on the body tell the controller whether the collet is open or closed (Chapter 47).
  • Electric collets: A small motor with an encoder moves the fingers. You can program the position, speed, and gripping force, and the collet can measure the workpiece it has grasped—useful when the workpieces change frequently.
  • Suction cups: They pick up sheet metal, glass, boxes, and workpieces with a flat surface using a vacuum created by a compressed-air ejector (Venturi effect) or a pump.
  • Magnets—whether permanent or electromagnets—pick up sheet metal and steel workpieces, including those with holes, but only ferromagnetic materials; these workpieces must then be demagnetized if the residual magnetism is a problem.
FFm·gTwo-finger colletholds by friction or by fitvacuumatmospheric pressureF = Δp · ASuction cupair pushes from belowCoilMagnetonly ferromagnetic workpieces
Figure 51.12 · Three ways to grip a workpiece. In a suction cup, it is not the vacuum that “pulls”; rather, it is atmospheric pressure that pushes the workpiece against the lip.

The force of a suction cup

Inside the suction cup, the pressure is lower than atmospheric pressure by an amount Δp, which is the degree of vacuum. The air outside pushes the workpiece against the suction cup with a force equal to Δp multiplied by the area of the suction cup (pressure is force divided by area; see Chapter 42). However, the workpiece does not remain stationary: the robot accelerates it, and the force must also be sufficient to handle the acceleration, with a safety factor that accounts for dirty, oily, or rough surfaces and minor leaks.

Suction cup force and number of suction cups
F = Δp · A A = π · d²4
Required force (horizontal workpiece, lifted vertically): Fr = m · (g + a) · S n ≥ FrF
F suction force of a suction cup in N · Δp vacuum level in N/mm² (0.6 bar = 0.06 N/mm² = 60,000 Pa) · A suction cup area in mm² · d suction cup diameter in mm · m workpiece mass in kg · g = 9.81 m/s² · a vertical acceleration of the robot in m/s² · S safety factor, at least 2 for horizontal gripping (higher if the workpiece is held on its side, where friction comes into play) · n number of suction cups, rounded up
Example 51.9 · How many suction cups for a sheet of metal?

A 12-kg sheet of metal is lifted from a stack using suction cups with a diameter of 60 mm at a vacuum of 0.6 bar. The robot accelerates vertically at 5 m/s². Safety factor: 2.

area: A = 3.1416 × 60² / 4 = 2,827.4 mm²
Force exerted by a suction cup: F = 0.06 × 2827.4 = 169.6 N
Required force: Fr = 12 · (9.81 + 5) · 2 = 12 · 14.81 · 2 = 355.4 N
n = 355.4 / 169.6 = 2.10 → 3 suction cups
You need at least 3; in practice, you install 4—at the corners—so that the sheet metal doesn't bend or come loose on one side.
Example 51.10 · What is the diameter of the suction cup?

A 3-kg workpiece is picked up using a single suction cup at a vacuum of 0.7 bar (0.07 N/mm²), with slow movements (negligible acceleration) and a coefficient of 2. What diameter is needed?

Required force: Fr = 3 × 9.81 × 2 = 58.86 N
Minimum area: A = Fr / Δp = 58.86 / 0.07 = 840.9 mm²
minimum diameter: d = √(4 · A / π) = √(4 · 840.9 / 3.1416) = 32.7 mm
Choose the next larger commercial size, Ø40: F = 0.07 · 3.1416 · 40² / 4 = 0.07 · 1256.6 = 88.0 N > 58.86 N ✓
Suction Cup, Ø40 mm
Example 51.11 · Force exerted by a collet holding an object by friction

A two-finger collet holds a 2.5 kg workpiece solely by friction (flat fingers, coefficient of friction 0.2). The robot accelerates vertically at 10 m/s². Safety factor: 2. What force must each finger exert?

The friction for each finger is μ · F; with two fingers, the force holding the workpiece up is 2 · μ · F
must be at least m · (g + a) · S: 2 · 0.2 · F = 2.5 · (9.81 + 10) · 2 = 99.05 N
F = 99,05 / 0,4 = 247,6 N
About 250 N per finger. With fingers shaped to wrap around the workpiece (form-fitting grip), the required force drops significantly, because friction is no longer a factor.
🔧
If the air supply is lost. A single-acting pneumatic collet with a closing spring—or with a check valve on the cylinder—holds the workpiece even if the pressure drops. Vacuum cups, on the other hand, release the workpiece as soon as the vacuum is lost: in heavy-duty applications, ejectors with a check valve and a vacuum switch are used, which triggers an alarm when the vacuum drops below a certain threshold. This, too, is a decision based on risk assessment.

51.10 The Robot Serving the Machine Tool

The most common task for a robot in a machine shop is loading and unloading a lathe or a machining center. The machine operates; the robot picks up the blank, places it in the jaws, removes the finished part, and sets it down. The operator loads the blank bins and inspects the workpieces, and the machine can continue operating even during unmanned hours. The machine, robot, workpiece storage, safety guards, and control panels form an island of work (or cell).

fenceCNC lathespindleautomatic gaterobotreachblank partsfinishedcontrolmeasurementbarrierphotoelectricdoor withinterlockcabinetrobot + PLCoperator
Figure 51.13 · Floor plan of an island with a CNC lathe. The robot reaches the lathe door, the blanks, the finished parts, and the measuring station; the enclosure encloses the entire area, access is via an interlocked door, and the blanks are loaded through a photoelectric barrier.

Communication Between Robots, CNC Machines, and PLCs

The robot and the machine are two separate control systems and must “communicate” with each other: each performs its task only when the other gives it the go-ahead. This communication takes place via 24-V digital inputs and outputs or via a fieldbus (Chapter 46), often through the cell’s PLC (Chapter 49). From the CNC’s perspective, the commands for the automatic gate, jaws, and blowing are M-code functions that the machine manufacturer assigns and documents in its manual; the workpiece program calls them and waits for acknowledgments (Chapter 50).

SignalFrom → toMeaning
Cycle complete, machine readyCNC → robotWorkpiece in place, spindle stopped, door open: the robot can enter
Robot Out of Rangerobot → CNCThe arm is outside the car: the door can be closed
Close jaws / Open jawsrobot → CNCThe robot has placed the workpiece in position, or it has picked it up and wants to remove it
Closed / Open JawsCNC → robotfeedback from the spindle cylinder sensor
Cycle startrobot → CNCThe new workpiece is secured, the robot is out—let's get started
Alarm, Stopall ↔ allWhoever sounds the alarm tells the others, who stop in an orderly manner

The typical sequence of a cycle is as follows:

  • The lathe finishes the workpiece, stops the spindle, opens the door, and signals “machine ready”;
  • The robot, which is waiting outside with a blank part in its collet, moves in with a linear motion, picks up the finished part with its second collet, and requests that the jaws be opened;
  • He rotates the double collet, places the blank on it, and asks for the jaws to be closed; once confirmed, he releases the workpiece and exits;
  • It displays "robot out of range": the door closes and the CNC starts the new cycle;
  • Meanwhile, the robot sets down the finished part (stopping by the measuring station from time to time) and picks up the next blank.
🔐
Operational signals and safety signals are different things. The signals in the table control the cycle and pass through standard inputs and outputs. In contrast, personal safety protection (doors, barriers, emergency systems) relies on dedicated, certified safety circuits that activate even if the program encounters an error (paragraph 51.12).
Example 51.12 · How much does the double collet yield?

A lathe machines the workpiece in 95 seconds. With a single collet, the robot stops the machine for 18 seconds (enter, remove the finished part, exit to set it down, pick up the blank, re-enter, load). With a double collet, the dwell time is reduced to 9 seconds. How many workpieces are produced in an 8-hour shift?

cycle: 8 · 3,600 = 28,800 s
single collet: cycle 95 + 18 = 113 s → 28,800 / 113 = 254.9 → 254 workpieces; machine utilization 95 / 113 = 84%
double collet: cycle 95 + 9 = 104 s → 28,800 / 104 = 276.9 → 276 workpieces; machine utilization 95 / 104 = 91%
22 more workpieces per shift, without changing the lathe program

Computer Vision

When workpieces do not always arrive in the same position, a camera equipped with image-processing programs locates the workpiece, measures its position and rotation, and sends this information to the robot, which adjusts its reference points. This is known as machine vision: it is used to pick up scattered workpieces on a conveyor belt, to recognize the type of workpiece, to check for the presence of machining operations, or to read a code. Picking workpieces at random from a bin (bin picking) uses 3D cameras. The cameras require constant lighting and calibration that links the camera’s reference frame to the robot’s user reference frame.

51.11 Machine Safety: Laws, CE Marking, and Risk Assessment

A lathe, a robot, or a press can cause serious injury. For this reason, in the European Union, a machine may be sold and put into service only if it complies with the essential health and safety requirements. For many years, the applicable law was the Machinery Directive 2006/42/EC; Regulation (EU) 2023/1230 on machinery replaces it and takes effect on January 20, 2027. The underlying principles remain the same.

  • The manufacturer must design the machine to be safe, conduct a risk assessment, and prepare the technical documentation and instructions in the language of the country.
  • Sign the declaration of conformity, thereby assuming responsibility for compliance with the rules, and affix the CE marking to the nameplate. For certain particularly hazardous machines, an external body is also involved.
  • Anyone who combines multiple machines into a single unit (for example, a lathe and a robot purchased separately) creates an assembly of machines: someone must assume the role of the manufacturer of the assembly, assess its risks, and affix the CE marking to it.
  • Employers who use machinery have certain obligations (in Italy, as set forth in the Consolidated Law on Safety, Legislative Decree 81/2008): to keep the machinery in good working order, to train those who use it, and to provide personal protective equipment.

Harmonized standards are used to translate requirements into concrete solutions: EN ISO 12100 for risk assessment, EN ISO 13849 for safety functions, EN ISO 13855 for the clearances of protective devices, EN 60204-1 for electrical equipment, the EN ISO 10218 series for robots, and product standards for individual machines, such as EN ISO 23125 for lathes. Applying harmonized standards establishes a presumption of compliance with the law.

Hazard, Risk, and Assessment

The two terms are often confused, but they are not the same thing. A hazard is a potential source of harm: a spinning spindle, a workpiece that might fall, a 400-volt electrical voltage, or noise. Risk is the combination of the severity of the potential harm and the likelihood of it occurring; the probability depends on how often and for how long one is exposed, how likely the event is to occur, and the possibility of avoiding it. A spinning spindle is always a hazard; the risk is high if the operator can reach it with their hands, and low if it is enclosed within an interlocked guard.

Machine LimitationsIntended use and foreseeable misuseIdentify HazardsAssess the riskSeverity of harm × probabilityIs the risk acceptable?Document (technical file)YesnoReduce the risk, in this orderFirst: safe designEliminate the hazard or reduce it at the sourcethen: guards and measuresguards, devices, safety featuresfinally: information for useWarnings, signs, instructions, trainingRe-evaluate the residual risk
Figure 51.14 · The risk assessment process. If the risk is unacceptable, it is reduced through the measures listed in the order shown, and then reassessed.

The order of these measures cannot be reversed: first, attempt to eliminate the hazard through design (lower forces and speeds, rounded edges, no pinch points, controls located away from hazardous areas); for any remaining risks, guards and safety devices are added; information—such as signs, instructions, training, and personal protective equipment—is provided only for the risks that still remain. A “watch your hands” sign cannot replace a guard that could have been installed.

⚖️
This chapter does not replace the standards. The information provided here is intended to help you understand how machine safety works and to work with due care. Risk assessment, the selection of safety devices, distance calculations, and the verification of safety functions must be performed by qualified personnel, using the complete and up-to-date standards, and remain the responsibility of the manufacturer, the designer, and the employer. The numerical examples in this chapter are illustrative and are provided for educational purposes only.

51.12 Guards and Safety Devices

Fixed and portable shelters

The safest way to protect a hazardous area is to physically prevent access to it using a guard. A fixed guard is bolted or welded in place and can only be removed with a tool; it is used where there is no need to enter the area during normal operation (drives, belts, gears). A movable guard opens without tools, such as the door of a CNC lathe; it must be interlocked: a safety switch, activated by a coded tab mounted on the door, prevents hazardous movements while the door is open and stops them if the door is opened. If the machine takes a long time to come to a stop—such as a large spindle—the guard also has a blocking mechanism: the door remains locked until the hazardous motion has ceased. Simply closing the door must not be enough to restart the machine; a new start command is required.

permanent shelterCan only be removed with a toolmoving partsdoorsafety switch on the frametab on the doorDoor open = no dangerous operation; close it and restart the machine
Figure 51.15 · On the left, a fixed guard with screws. On the right, an interlocked movable door: the tab on the door engages with the safety switch on the frame; without the tab, the machine cannot move.
🚫
Never bypass a safety interlock. Inserting a spare tab into the switch, tying down the enable button, or bypassing a contact “to save time” causes a great many serious injuries and is prohibited. Modern switches have coded tabs specifically designed to make tampering difficult. If a safety device prevents you from working, report it to your supervisor: the method must be changed, not the safety device removed.

The emergency stop

Every machine has at least one control for emergency stop: a mushroom-shaped button red on a yellow background, easy to reach, which remains engaged when pressed and can only be released by hand. Releasing it does not restart the machine: it must be reset and restarted. The emergency stop is a complementary measure: This is needed when something has already gone wrong; it does not replace safety measures or devices. The standard for electrical equipment distinguishes between three Categories of stop:

  • Category 0: Power is immediately cut off from the engines; the vehicle comes to a stop by inertia or using the mechanical brakes;
  • Category 1: The drives brake in a controlled manner, as quickly as possible, and power is cut off when the machine comes to a stop;
  • Category 2: Controlled braking, but the engines remain powered and maintain their position; not used in emergencies.
Red mushroom on a yellow backgroundHold down untilit is manually releasedtspeedstop command×Cat. 0: power cut off immediatelyStops by inertia or with the brakeCat. 1: controlled braking,then power cut off (×)Cat. 2: Controlled braking,engine stopped but still powered
Figure 51.16 · On the left is the emergency stop button. On the right is a schematic representation of the speed after the stop command is issued for the three categories.

Today, cutting power to the motors without disconnecting the entire control panel is done directly at the drives, using the STO (Safe Torque Off) function described in Chapter 48: the drive can no longer supply torque to the motor, even if the controller requests it. STO is a Category 0 stop; a controlled braking operation followed by STO is a Category 1 stop. Caution: Without torque, a vertical axis will drop under its own weight if it does not have a brake.

The Two-Handed Control

On presses and some assembly machines, the operator performs the cycle start using two buttons spaced apart, which must be pressed simultaneously (within about half a second) and held down until the hazardous phase is over. This ensures that both hands are kept well away from the hazardous area. It protects only the person using it, not those standing nearby, and the buttons must be placed far enough apart so that the hands do not enter the hazardous area before the machine stops.

Light Curtains and Safety Distance

A photoelectric barrier (or light curtain) consists of two columns—an emitter and a receiver—with many parallel infrared radii (the principle of photoelectric sensors is covered in Chapter 47). When an object interrupts a radius, the barrier activates its safety outputs and the machine stops. The resolution d is the diameter of the smallest object that the barrier can reliably detect: 14 mm for fingers, 30 mm for hands, and larger values for the body and legs.

The barrier does not stop the hand; it stops the machine, and the machine takes some time to come to a stop. It must therefore be installed far enough away from the hazardous area so that the hand, moving at a person’s speed, does not reach it before the machine has come to a complete stop. The EN ISO 13855 standard provides the general formula:

Minimum Safety Distance (General, Approximate)
S = K · T + C
barriers with vertical radii and d ≤ 40 mm: K = 2000 mm/s · C = 8 · (d − 14), never negative
If S is greater than 500 mm, you can recalculate using K = 1600 mm/s, but without going below 500 mm
S: minimum distance between the protected field and the hazardous point in mm · K: approach speed of the hand or body in mm/s · T: total stop time in s: response time of the safety light curtain + response time of the safety relay or PLC + machine stop time · C distance in mm that the hand can enter before being detected · d resolution of the safety light curtain in mm. The standard also specifies minimum values, other cases (horizontal radii, high resolutions, bypassing), and precise rules: these formulas are provided solely as an educational example.
barrierhand toK = 2000 mm/shazardous pointS = K · T + CK · TCC: how far the hand entersbefore it is seen(depends on the resolution d)
Figure 51.17 · The safety barrier must be mounted at a distance S from the hazardous point: during the time T it takes for the machine to stop, the hand travels a distance of K · T; C accounts for how far the hand enters the field before it is detected.
Example 51.13 · Distance of a finger guard (approximate)

Light curtain with a resolution of 14 mm and a response time of 15 ms; safety relay with a response time of 20 ms; when measured with the appropriate instrument, the machine stops in 150 ms.

T = 0,015 + 0,020 + 0,150 = 0,185 s
C = 8 · (14 − 14) = 0 mm
S = 2000 · 0.185 + 0 = 370 mm (less than 500: K is kept at 2000)
A barrier at least 370 mm from the hazardous point, according to this educational calculation
Example 51.14 · When can K = 1600 be used (for reference)?

Hand-detection barrier, resolution 30 mm; total stop time 0.3 s.

C = 8 · (30 − 14) = 8 · 16 = 128 mm
with K = 2000: S = 2000 · 0.3 + 128 = 728 mm, which is greater than 500
Recalculate using K = 1600: S = 1600 · 0.3 + 128 = 608 mm, which is not less than 500 ✓
S = 608 mm. A barrier with lower resolution should be placed farther away: it is best to use the highest resolution that the project allows.
Example 51.15 · Maximum Permissible Stop Time (Approximate)

Due to space constraints, a 14-mm barrier can be placed no closer than 400 mm from the hazardous area. The barrier responds in 15 ms, and the safety relay responds in 10 ms. What is the maximum time the machine has to come to a stop?

with C = 0 and K = 2000: T ≤ S / K = 400 / 2000 = 0.200 s
Subtracting the device times: 0.200 − 0.015 − 0.010 = 0.175 s
The machine must come to a stop in no more than 175 ms. The stop time is measured during testing and checked periodically; worn brakes cause it to take longer.

Laser scanners and pressure-sensitive mats

A safety laser scanner is a sensor that rotates a laser beam and measures the distance to objects around it on a horizontal plane. Zones are programmed: an outer warning zone, which slows down the machine or robot, and an inner protection zone, which stops them. It is useful for protecting large areas without fixed barriers and for autonomous vehicles. Safety mats are platforms that detect a person’s weight: they signal that someone is standing in a hazardous area—for example, inside a cell—and prevent the machine from starting.

Safety Functions, Programmable Logic Controllers (PLCs), Relays, and Safety PLCs

“If the door opens, the spindle stops” is a safety function: a chain consisting of a sensor (the door switch), a logic element (relay or safety PLC), and an actuator (drive STO, contactors, valves). A failure in any of these components can result in a loss of protection. EN ISO 13849-1 classifies the reliability of a function using the Performance Level (PL), ranging from lowest to highest: a, b, c, d, e. The required level is selected based on a risk assessment, taking into account the severity of injury, the frequency of exposure, and the possibility of avoiding the hazard; the achieved level depends on the architecture (for example, two channels that monitor each other), the reliability of the components, and how effectively faults are detected. The doors of lathes and robotic cells typically require PL d.

Standard relays and PLCs are not used to perform these functions: a stuck contact or an error in the program could cause the machine to keep running. Instead, the following are used:

  • safety relays (safety modules), with two redundant channels and forced-guide contacts that monitor each other: for one or a few simple functions, such as an emergency stop and a door;
  • Safety PLCs, featuring dual processors and self-monitoring inputs and outputs, programmed with certified function blocks: for cells with many doors, barriers, scanners, and zones; they often communicate with the drives via a safety bus.

In both cases, the idea is the same: a malfunction must result in safety. A disconnected wire, a broken contact, or a loss of power must stop the machine—not let it run. That’s why emergency buttons and door switches use normally closed contacts with positive opening: they open the circuit even if the spring breaks.

51.13 Safety at the CNC lathe and in the robotic cell

The CNC machine tool

  • Doors with interlocks: The door must be closed automatically; opening it stops the cycle. The polycarbonate window is a protective shield designed to trap workpieces and fragments: it should be replaced according to the manufacturer’s schedule or if it is scratched, cloudy, or corroded by coolant, as it loses strength over time.
  • Setup mode: With the door open, operation is limited to a special mode selected using the key-operated selector switch, with very low speeds for the axes and spindles, and only while the enable button is held down. The permissible values are specified by the product standard and the manufacturer.
  • Over-travel: In addition to the software limit switches, each axis has safety limit switches (over-travel) that cut off power before the carriage strikes the mechanical stops (see Chapter 47 for sensors, Chapter 50 for control limit switches).
  • Spindle and jaws: Every chuck has a maximum spindle speed, and centrifugal force reduces the clamping force of the jaws (Section 9.7). The speed limit with G50 S... (Siemens LIMS) must always be entered before G96; the jaws must be installed using all the screws at the correct torque, and the spindle key must never be left inserted.
  • Coolant and chips: Emulsifiable coolant can irritate the skin and, when atomized, the lungs; mist extractors, protective creams, and gloves suitable for use when the machine is stopped should be used when handling it. Chips have cutting edges and are hot: remove them with a hook or brush—never with your hands, and never while the machine is running.
  • Noise: Where exposure exceeds 80 dB(A) during the day, the employer must inform employees and provide hearing protection; above 85 dB(A), wearing such protection is mandatory (Legislative Decree 81/2008).
Example 51.16 · The energy of a jaw breaking free

A chuck holding a 0.5 kg load has its center of gravity 80 mm from the axis, and the spindle rotates at 3000 rpm. If the screws fail, at what speed and with what energy will the chuck be propelled? What force must the screws withstand? (Formulas from Chapter 9.)

ω = 2 · π · n / 60 = 2 · 3.1416 · 3000 / 60 = 314.16 rad/s
velocity of the center of mass: v = ω · r = 314.16 · 0.08 = 25.13 m/s (over 90 km/h)
kinetic energy: E = ½ · m · v² = 0.5 · 0.5 · 25.13² = 157.9 J
Height for the same energy: h = E / (m · g) = 157.9 / (0.5 · 9.81) = 32.2 m
Centrifugal force on the screws: F = m · ω² · r = 0.5 · 98,696 · 0.08 = 3,948 N ≈ 3.9 kN
The jaws shoot out at 25 m/s with the energy of an object dropped from the tenth floor: that's why the door must be closed and the window intact
Example 51.17 · Why the reduced speed (indicative)

During setup, with the door open, an axis moves at 2 m/min. If the operator releases the enable button and everything stops in 0.3 s, how far does the slide still travel? And what if it were moving at a rapid feed rate of 30 m/min?

2 m/min = 2000 / 60 = 33.3 mm/s → 33.3 × 0.3 = 10 mm
30 m/min = 30,000 / 60 = 500 mm/s → 500 × 0.3 = 150 mm
A few millimeters instead of 15 cm: at low speeds, there’s time to notice and react

The Robot

An industrial robot operating in automatic mode is fast, powerful, and unpredictable to anyone unfamiliar with its program: it may remain stationary for a long time while waiting for a signal and then start moving suddenly. Here are the rules:

  • fence a tall, sturdy enclosure all around, at a distance that prevents access to the robot from above, below, or through the mesh; access only through interlocked doors that stop the robot;
  • zones: The robot controller can safely limit the area where the arm can move (monitored zones), so the fence can be placed closer, and the robot never enters, for example, the area where the operator is loading the drawers;
  • openings for workpieces protected by barriers or tunnels long enough to prevent access to the hazardous area;
  • Entry into the cell is permitted only in manual mode at reduced speed, with the console in hand and the authorization button pressed; for maintenance, the lockout procedure described in paragraph 51.14 applies;
  • Before resuming operation automatically, the system checks to make sure no one is left in the cell.
Example 51.18 · A robot's stop space (for illustrative purposes)

The TCP moves at 2 m/s. After the stop command is issued, the controller takes 0.05 s to respond, then brakes at 10 m/s² (Category 1 stop). How far does the TCP travel before coming to a stop?

during the reaction: 2 × 0.05 = 0.10 m
During braking: v² / (2 · a) = 2² / (2 · 10) = 0.20 m
Total: 0.10 + 0.20 = 0.30 m
30 cm: This is the distance required between the robot and any point where a person might be located. The actual stopping times and distances are specified in the manufacturer's data for each axis and each load.

Cobots and Collaboration

A cobot can operate without a guard only if the risk assessment for the entire application permits it: a cobot carrying a knife or a workpiece with sharp edges is not “safe” simply because it is a cobot. The ISO/TS 15066 technical specification describes four modes of collaboration: supervised stop when a person enters the shared workspace, manual guidance of the robot, speed and distance monitoring (the robot slows down and stops as the person approaches), and power and force limitation, in which contact is possible but the forces and pressures on the body remain below limit values that vary for each part of the body. In practice, the cobot moves more slowly than an industrial robot, has rounded shapes, and continuously monitors joint torques.

51.14 PPE, Energy Isolation, Signage, and Behaviors

Personal Protective Equipment

PPE is the last line of defense between a person and a hazard: it is used to address risks that remain after guards and other safety devices have been installed, not in place of them. In a mechanical workshop, the main types are:

  • Always wear safety glasses when working with machines and at the workbench: a chip or a piece of grinding wheel that gets into your eye is one of the most common types of injuries;
  • safety shoes with steel-toed caps and slip-resistant, puncture-resistant soles—always;
  • hearing protection (earmuffs or inserts) where noise levels require it;
  • Work gloves (cut-resistant for sheet metal and chips; nitrile gloves for oils and coolants) should be worn only when the machine is stopped and away from rotating parts. When using a drill, lathe, milling machine, or grinder, never wear gloves while the machine is running: a glove caught by a drill bit or spindle will pull your hand and arm into the machine in a fraction of a second.

For the same reason, you should not wear rings, bracelets, watches, necklaces, scarves, loose sleeves, or open-fronted clothing near machinery, and long hair should be tucked under a cap.

Blocking and Tagout (LOTO)

Most serious accidents during maintenance occur because the machine restarts while someone is working inside it: a coworker presses the start button, a program resumes, or a battery discharges. The lockout and tagout procedure, known as LOTO (from the English terms “Lock Out” and “Tag Out”), is designed to prevent this. In summary:

  • Prepare and notice: determine what types of energy the machine uses (electric, pneumatic, hydraulic, mechanical, thermal, gravity) and notice those who operate it;
  • Stop the machine using the normal procedure;
  • Isolate all power sources: main disconnect switch open, air valve closed and vented, hydraulic control unit turned off;
  • Lockout: Each worker places his or her own padlock on the disconnect switch and valves, along with a tag indicating who he or she is, why, and when; the key remains in his or her pocket;
  • Discharge any residual energy: pressure in accumulators and pipes, drive capacitors (wait for the specified time), coiled springs, suspended loads, and vertical axes—which must be supported or mechanically blocked in place;
  • Check that there really is no power: try turning it on and use the meter to verify that there is no voltage (Chapter 44); electrical work must be performed only by qualified personnel;
  • Once the work is done, the panels have been reinstalled, and everyone has left, each person removes only their own padlock.

Safety Signs

Safety signs have standard colors and shapes that are the same throughout Europe, so they can be understood even without reading:

!Prohibitionred circle with a line through itWarningyellow triangleRequirementblue circleRescuegreen squareFire safetyred square(No Smoking)(general hazard)(safety glasses required)(first aid)(fire extinguisher)
Figure 51.18 · The five categories of signs: the shape and color indicate the type of message, and the symbol indicates what it is about.
FamilyShapeColorsMeaning
Prohibitioncirclered border and bar, white background, black symbolYou must not do that
Warningtriangleyellow background, black border and symbolWarning: There is a danger
Statute of Limitationscircleblue background, white symbolIt must be done; requirement (PPE)
Rescuesquare or rectanglegreen background, white symbolexits, emergency rooms, escape routes
Fire Safetysquare or rectanglered background, white symbolfire extinguishers, fire hydrants, alarms

Yellow and black stripes indicate obstacles and areas where there is a risk of impact or being crushed; pedestrian lanes and loading zones are marked on the floor.

Proper Behavior in the Workshop

  • Use only the machines for which you have been trained and authorized, and read the instructions;
  • Before starting: workpiece clamped, spindle key removed, tool secured, door closed, no one in the area;
  • Test the new programs in simulation mode and then on the machine with a low override and in single-block mode, keeping your hand close to the stop;
  • Never leave a running car unattended unless it is permitted, and do not get distracted by your phone;
  • Keep the work area clean and tidy: no oil, chips, tools, or cables on the floor;
  • Do not use compressed air to clean your clothes or skin, and do not blow chips toward other people;
  • Report broken safety equipment, malfunctions, near-misses, and dangerous behavior immediately: a near-miss today is an accident tomorrow.

51.15 The Formulas in This Chapter

What Are You Looking For?FormulaUnits
Direct kinematics, xx = L1 cos θ1 + L2 cos(θ1 + θ2)mm
Direct kinematics, yy = L1 sin θ1 + L2 sin(θ1 + θ2)mm
Inverse kinematics, elbowso θ2 = (x² + y² − L1² − L2²) / (2 L1 L2), θ2 = ± arccos°
Inverse kinematics, shoulderθ1 = atan2(y; x) − atan2(L2 sin θ2; L1 + L2 cos θ2)°
Accessibility|L1 − L2| ≤ √(x² + y²) ≤ L1 + L2mm
Area of the horizontal armA = π · [(L1 + L2)² − (L1 − L2)²]mm²
TCP Speed for Axis Rotationv = ω · rm/s
Force of a suction cupF = Δp · π · d² / 4N
Force applied to the suction cupsFr = m · (g + a) · SN
Force per finger, friction gripF = m · (g + a) · S / (n · μ)N
Safety Distance (Approximate)S = K · T + C, where C = 8 · (d − 14)mm
Permissible stop timeT ≤ (S − C) / Ks
Energy of a Projected WorkpieceE = ½ · m · (ω · r)²J
Stop distances = v · tr + v² / (2 · a)m

51.16 Exercises

Try to solve them on your own, using a calculator set to degrees, before looking at the solution.

Exercise 1. A planar arm has L1 = 350 mm and L2 = 250 mm. Given that θ1 = 20° and θ2 = 60°, where is the TCP located?
Solution

θ1 + θ2 = 80°. x = 350 · cos 20° + 250 · cos 80° = 328.89 + 43.41 = 372.30 mm; y = 350 · sin 20° + 250 · sin 80° = 119.71 + 246.20 = 365.91 mm.

Exercise 2. Same arm, with θ1 = 90° and θ2 = −90°. Where is the TCP located? Please also draw a sketch.
Solution

θ1 + θ2 = 0°. x = 350 · 0 + 250 · 1 = 250 mm; y = 350 · 1 + 250 · 0 = 350 mm. The first arm is vertical, and the second is horizontal to the right: the TCP is at (250; 350).

Exercise 3. A planar arm has L1 = L2 = 300 mm. Find the two solutions for moving the TCP to (400; 200) mm.
Solution

cos θ2 = (160,000 + 40,000 − 90,000 − 90,000) / (2 × 300 × 300) = 20,000 / 180,000 = 0.1111; θ2 = ± 83.62°, sin θ2 = ± 0.99381. φ = atan2(200; 400) = 26.57°; L1 + L2 cos θ2 = 333.33; L2 sin θ2 = ± 298.14; ψ = ± 41.81°. Low elbow: θ1 = 26.57° − 41.81° = −15.25°, θ2 = 83.62°. High elbow: θ1 = 26.57° + 41.81° = 68.38°, θ2 = −83.62°.

Exercise 4. A horizontal lever has L1 = 500 mm and L2 = 350 mm. Which of the following points are reached: A (700; 500), B (100; 100), C (600; −200)?
Solution

The crown ranges from 150 to 850 mm. A: r = √(490,000 + 250,000) = 860.2 mm, too far. B: r = 141.4 mm, too close. C: r = √(360,000 + 40,000) = 632.5 mm, achievable (if the stops allow it).

Exercise 5. Calculate the theoretical area of the work space of the arm from Exercise 4, in m².
Solution

A = π · (0,85² − 0,15²) = 3,1416 · (0,7225 − 0,0225) = 3,1416 · 0,70 = 2,20 m².

Exercise 6. Ø50 suction cups operate at a vacuum of 0.6 bar. How much force does a single suction cup provide? How many are needed to lift a 20-kg workpiece vertically at 4 m/s², with a safety factor of 2?
Solution

A = 3.1416 · 50² / 4 = 1963.5 mm²; F = 0.06 · 1963.5 = 117.8 N. Fr = 20 · (9.81 + 4) · 2 = 552.4 N. n = 552.4 / 117.8 = 4.69 → 5 suction cups (in practice, 6, arranged symmetrically).

Exercise 7. Axis 1 of a robot rotates at 150 °/s, and the TCP is 1.5 m from the axis. What is the speed of the TCP, in m/s and km/h?
Solution

ω = 150 · 3.1416 / 180 = 2.618 rad/s; v = 2.618 · 1.5 = 3.93 m/s = 3.93 · 3.6 = 14.1 km/h.

Exercise 8. Using the guidelines in paragraph 51.12, what is the minimum distance at which a 14-mm barrier must be installed if the total stopping time is 0.22 s?
Solution

C = 0; S = 2000 × 0.22 = 440 mm, which is less than 500: K is kept at 2000. S = 440 mm.

Exercise 9. Same formulas, 20 mm barrier, and total stop time of 0.35 s.
Solution

C = 8 · (20 − 14) = 48 mm. With K = 2000: S = 700 + 48 = 748 mm, which is greater than 500. With K = 1600: S = 560 + 48 = 608 mm, which is not less than 500: S = 608 mm.

Exercise 10. A 14-mm barrier can be located no closer than 450 mm from the hazardous area. The barrier responds in 20 ms, and the safety PLC responds in 12 ms. What is the maximum machine stop time?
Solution

T ≤ 450 / 2000 = 0.225 s; after subtracting the devices: 0.225 − 0.020 − 0.012 = 0.193 s, or 193 ms.

Exercise 11. A 0.1 kg screw was left on the spindle, 120 mm from the axis, which is spinning at 2000 rpm. At what speed and with what energy is it launched? What force would be needed to keep it stationary there?
Solution

ω = 2 · 3.1416 · 2000 / 60 = 209.44 rad/s; v = 209.44 · 0.12 = 25.13 m/s; E = 0.5 · 0.1 · 25.13² = 31.6 J; F = 0.1 · 209.44² · 0.12 = 526 N. No support can withstand such a force: the screw comes loose as soon as the spindle accelerates.

Exercise 12. On an island, the lathes machine a workpiece in 60 seconds, and the robot stops the machine for 20 seconds at each change. How many workpieces are produced in 7.5 hours? And what if, with a double collet, the dwell time is reduced to 8 seconds?
Solution

7.5 h = 27,000 s. Cycle time 80 s: 27,000 / 80 = 337.5 → 337 workpieces. 68-second cycle: 27,000 / 68 = 397.1 → 397 workpieces, 60 more.

Exercise 13. A robot’s TCP moves at 1.5 m/s; the controller reacts in 0.06 s and then brakes at 8 m/s². How much space is needed to come to a stop?
Solution

Reaction: 1.5 × 0.06 = 0.09 m; braking distance: 1.5² / (2 × 8) = 2.25 / 16 = 0.141 m; total: approximately 0.23 m.

Exercise 14. A coworker asks you to help him clear chips from inside the lathe “on the fly”—with the spindle running slowly, gloves on, and the door open—while holding down the safety switch. What do you say, and why?
Solution

No. Chips should be removed while the machine is stopped, using a hook or a brush; gloves near a spinning spindle can get caught and pull your hand inside; the open-door mode is for setup, not for cleaning. Stop the spindle, clean it, close the door, and start up again.

📘
To continue studying. This chapter marks the end of the textbook, but your studies are not over. The appendices contain the formulae from throughout the book (A), general tables (B), Greek letters and symbols (C), the glossary (D), and the solutions to the exercises (E): keep them handy, and redo the exercises from the chapters where you felt less confident. Then move on to the machine: with the CNC Code simulator, you can write and test lathe and milling machine programs, view the toolpaths, make mistakes without breaking anything, and understand why. Review safety procedures every time you enter the workshop: you learn mechanics one chapter at a time, but you only have ten fingers. Good luck with your work.