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.
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.
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.
How many degrees of freedom do these robots have, and are they sufficient for the job?
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.
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.
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.
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).
| Type | Joints | Workspace | Typical Uses |
|---|---|---|---|
| Anthropomorphic | 6 R | hollow sphere | machine loading, welding, painting, palletizing |
| SCARA | 3 R + 1 P | crown cylinder | assembly, top-loading, rapid cycles |
| Cartesian, portal | 3 P (+ rotations) | parallelepiped | top-loading lathes, long travels, multiple machines in a file |
| Delta | 3 parallel resistors (+ 1 resistor) | cylinder with a domed bottom | Fast picking from a conveyor belt, packaging |
| Cobot | 6 o 7 R | hollow sphere, smaller | I 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.
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.
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.
The same arm, with θ1 = 60° and θ2 = −90° (the elbow bends clockwise).
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:
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.
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.
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).
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.
Again, with L1 = 400 mm and L2 = 300 mm, check points P2 (650; 300) and P3 (50; 50).
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).
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.
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).
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.
| Type | Capacity (kg) | Reach (m) | Repeatability (± mm) |
|---|---|---|---|
| Small anthropomorphic figure | 3-12 | 0,5-1,4 | 0,02-0,04 |
| Medium and Large Anthropomorphs | 20-500 | 1,6-3,5 | 0,04-0,10 |
| SCARA | 1-20 | 0,2-1,0 | 0,01-0,03 |
| Cartesian, portal | 5-500 | travels of up to tens of meters | 0,05-0,10 |
| Delta | 0,5-8 | diameter 0.5–1.6 | 0,02-0,10 |
| Cobot | 3-20 | 0,5-1,8 | 0,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.
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?
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.
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.
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.
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?
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?
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).
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).
| Signal | From → to | Meaning |
|---|---|---|
| Cycle complete, machine ready | CNC → robot | Workpiece in place, spindle stopped, door open: the robot can enter |
| Robot Out of Range | robot → CNC | The arm is outside the car: the door can be closed |
| Close jaws / Open jaws | robot → CNC | The robot has placed the workpiece in position, or it has picked it up and wants to remove it |
| Closed / Open Jaws | CNC → robot | feedback from the spindle cylinder sensor |
| Cycle start | robot → CNC | The new workpiece is secured, the robot is out—let's get started |
| Alarm, Stop | all ↔ all | Whoever 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.
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?
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.
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.
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.
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.
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:
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.
Hand-detection barrier, resolution 30 mm; total stop time 0.3 s.
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?
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...(SiemensLIMS) must always be entered beforeG96; 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).
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.)
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?
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.
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?
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:
| Family | Shape | Colors | Meaning |
|---|---|---|---|
| Prohibition | circle | red border and bar, white background, black symbol | You must not do that |
| Warning | triangle | yellow background, black border and symbol | Warning: There is a danger |
| Statute of Limitations | circle | blue background, white symbol | It must be done; requirement (PPE) |
| Rescue | square or rectangle | green background, white symbol | exits, emergency rooms, escape routes |
| Fire Safety | square or rectangle | red background, white symbol | fire 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? | Formula | Units |
|---|---|---|
| Direct kinematics, x | x = L1 cos θ1 + L2 cos(θ1 + θ2) | mm |
| Direct kinematics, y | y = L1 sin θ1 + L2 sin(θ1 + θ2) | mm |
| Inverse kinematics, elbow | so θ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 + L2 | mm |
| Area of the horizontal arm | A = π · [(L1 + L2)² − (L1 − L2)²] | mm² |
| TCP Speed for Axis Rotation | v = ω · r | m/s |
| Force of a suction cup | F = Δp · π · d² / 4 | N |
| Force applied to the suction cups | Fr = m · (g + a) · S | N |
| Force per finger, friction grip | F = m · (g + a) · S / (n · μ) | N |
| Safety Distance (Approximate) | S = K · T + C, where C = 8 · (d − 14) | mm |
| Permissible stop time | T ≤ (S − C) / K | s |
| Energy of a Projected Workpiece | E = ½ · m · (ω · r)² | J |
| Stop distance | s = 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.
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.
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).
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°.
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).
Solution
A = π · (0,85² − 0,15²) = 3,1416 · (0,7225 − 0,0225) = 3,1416 · 0,70 = 2,20 m².
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).
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.
Solution
C = 0; S = 2000 × 0.22 = 440 mm, which is less than 500: K is kept at 2000. S = 440 mm.
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.
Solution
T ≤ 450 / 2000 = 0.225 s; after subtracting the devices: 0.225 − 0.020 − 0.012 = 0.193 s, or 193 ms.
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.
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.
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.
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.
