You have a 12-station table that must advance 30°, stay put and not give when you push it, driven by a motor that turns continuously. A barrel-cam indexer solves all three with two parts: a drum with a raised rib and a turret with a circle of rollers. On each turn, the S-shaped section of the rib advances the turret one step and the straight section locks it for the rest of the turn. To size one you choose the step, the index angle and the motion law; the drum diameter then follows from the pressure angle.

A worm that stops
The drum is a barrel cam (also called a cylindrical cam): a cylinder with a raised rib. The turret, or index plate, carries a circle of follower rollers. The part of the drum's turn in which the rib advances the turret one step is the index; the rest, in which it holds the turret locked, is the dwell. How far the table moves when you push it during the dwell is the backlash. You will find barrel-cam indexers in the rotary tables of assembly and packaging machines, in tool changers and in feeders; printed, in stepping turntables for photography or scanning, carousels, kinetic sculptures and toys.
The drum axis crosses the turret axis at right angles without intersecting it. The rollers sit on the face of the turret, their axes parallel to the turret's, spaced on a circle of radius Rt. The drum axis runs tangent to that circle at the midpoint between the two rollers that hold the dwell; there the turret is at ψ = 0. Near that point the rollers move along a line that is practically straight and parallel to the drum axis.
A barrel-cam indexer is a worm with zero lead in the dwell that puts all of its advance into the index section. In an ordinary worm (Worm drives) the thread advances one pitch per turn, uniformly. Here the rib is a single turn of thread in two sections. In the dwell section it runs circumferentially: it keeps its axial position and pushes nothing. In the index section it is helical and advances one roller pitch axially. That is why the two ends of the rib sit side by side, offset by one pitch.
Rib and groove are not the same thing. The rib is the relief that pushes. The groove is the gap a roller runs in beside the rib. With a one-turn rib, that gap has a wall on both sides only where the two ends overlap: that is the groove the handover roller passes through. Over the rest of the turn, the drum core is exposed on either side of the rib.
Why it locks by form. In the dwell, two consecutive rollers straddle the rib, one on each side. If you try to turn the turret, one of them pushes against a rib face that is perpendicular to the drum axis. The resulting force is purely axial: it has no lever arm about the drum axis, so it cannot turn the drum. The drum's thrust bearing takes it. There is no spring or detent to overcome: to move the turret you would have to break the rib or the mount. The price is that all of the drum's axial play shows up at the turret.
Why one roller is not enough. A roller trapped in a groove that closes round the drum returns to its starting point every turn. That is a reciprocating barrel cam (Cams and followers), not an indexer. To keep advancing, the rib has to pass between rollers and hand over. At the start of each index, the tip of the S section enters behind the trailing roller of the pair that was holding; that is the roller the rib pushes, and at the end of the step it and the roller behind it straddle the rib. Each index, a different pair does the holding.
With one index section, the turret advances one step (360°/n) per drum turn. With k index sections (k starts) it advances k steps, and the mean ratio is n:k.
The family has two industrial relatives. The globoidal cam, or roller-gear cam, has an hourglass-shaped drum, with the rollers set radially on the rim of the turret: more rollers are in contact, and preload is set by adjusting the center distance. The parallel-cam indexer uses two conjugate disc cams on parallel shafts. The cylindrical drum is the easiest to print, and it is the one developed here.
Index angle and motion law
The index angle β is the part of the drum turn during which the turret moves. The dwell is what remains: 360° − β. In a Geneva drive, n sets the fraction of each turn spent moving (0.5 − 1/n: with n = 12, 150° per turn). Here you choose β independently of n.
You also choose the motion law, the turret rotation ψ as a function of the drum rotation θ. The same laws as for a disc cam apply, with h = 360°/n as the rise:
| Law | Peak velocity (× hω/β) | Peak acceleration (× hω²/β²) | Ends |
|---|---|---|---|
| Constant lead (fixed-pitch helix) | 1.000 | infinite | a knock at every start and stop |
| Harmonic | 1.571 | 4.935 | step in acceleration |
| Cycloidal | 2.000 | 6.283 | zero acceleration; the default choice |
| Modified sine | 1.760 | 5.528 | zero acceleration; the industry's favorite |
The cycloidal law starts and stops at zero acceleration, with no step. Modified sine lowers both peak velocity and peak acceleration, at the cost of considerably more jerk (about 70 × hω³/β³ versus 40 for cycloidal). Harmonic gives a step in acceleration at the ends. Constant lead is a fixed-pitch helix: it is what you get if you draw the index section with a helical sweep, and it gives infinite acceleration at the start and the end. Avoid it.
Do not expect lower peak acceleration than with a Geneva. For the same 45° step and the same 135° of motion, an 8-slot Geneva reaches 0.70 ω² and the cycloidal law 6.283 × 0.785 / 2.356² = 0.89 ω². The drum's advantage lies elsewhere: it starts and stops without a step (the Geneva starts with an acceleration jump of ω²·tan(180°/n)), it lets you choose β, it locks without a separate locking disc, and it can reach zero backlash with preload.
Pressure angle. The axial position of the roller along the drum is x = Rt·sin ψ. If r is the contact radius on the drum, tan φ = (dx/dθ)/r. The maximum of dx/dθ comes mid-index, with the pushing roller at ψ ≈ 0, and is Rt·Cv·(2π/n)/β, with β in radians and Cv the peak-velocity coefficient from the table. Keep φ ≤ 30°. The turret turns on bearings and does not jam in a guide the way a translating follower does, so the physical limit is higher; the 30° leaves margin for friction in a printed part. That gives the minimum drum radius, r ≥ (dx/dθ)max / tan 30°. For the example below (n = 12, Rt = 50, cycloidal):
| β | 90° | 120° | 180° | 270° |
|---|---|---|---|---|
| Minimum r (mm) | 57.7 | 43.3 | 28.9 | 19.2 |
A shorter index makes a fatter drum. The pressure angle also changes along the roller: near the root of the rib the radius is smaller and the helix steeper, so check φ at the smallest contact radius.
The arc of the rollers. The rollers move on a circle, not a line. A roller at angle ψ from the tangent point moves e = Rt·(1 − cos ψ) away from the plane of the drum axis, and loses r − √(r² − e²) of contact depth. In the example, with r = 32 and a 3 mm high rib:
- The pushing roller goes from −15° to +15°: it moves out at most 1.70 mm and loses 0.045 mm. Negligible.
- The trailing roller only brakes the turret in the deceleration half, between −30° and −15°: it moves out up to 6.70 mm and loses 0.71 mm of the 3.
- A roller at 45° moves out 14.6 mm and would lose 3.5 mm: it no longer touches the rib.
The rule of thumb: the braking roller, at the start of deceleration (ψ = −360°/n), should lose no more than a third of the rib height: e²/(2r) ≤ h/3, with e = Rt·(1 − cos(360°/n)). With these proportions that holds for n ≥ 12; with n = 10 the braking roller already loses 1.4 mm of 3. With fewer stations you need a much bigger drum or a taller rib, and at that point a globoidal cam or a Geneva drive is the better choice.
Worked example: a 12-station table
Requirements: 12 stations (30° per step), a gearmotor at 30 rpm, 1 s of motion and 1 s of dwell per step (β = 180°), and a Ø120 × 5 mm PLA plate carrying four 20 g loads 50 mm from the center.
1. Rollers. Twelve 623 bearings (3 × 10 × 4) on M3 screws, on a circle of radius Rt = 50 mm. The chord between neighboring rollers is 2·Rt·sin(180°/n) = 25.88 mm. Bearings roll instead of sliding, and their diameter does not wear.
2. Rib width in the dwell. Chord minus roller diameter minus two clearances: 25.88 − 10 − 2 × 0.20 = 15.48 mm. 0.20 mm per side is a sliding-fit clearance on a modern bedslinger (0.15 on an enclosed CoreXY, 0.25 to 0.30 on a legacy bedslinger); measure yours with Real printed clearances. This is the one dimension that sets the backlash: tune it with a coupon.
3. Drum. A 3 mm high rib for a 4 mm wide bearing: that leaves 1 mm between the roller face and the core. Core at r = 30.5, crest at r = 33.5 (Ø67) and mean contact at r = 32.
4. Pressure angle. With the cycloidal law, dx/dθ max = 50 × 2 × 0.524 / π = 16.7 mm/rad. That gives φ = 28.7° at the root of the rib, 27.5° at mid-height and 26.5° at the crest: under 30°, but with little margin. If you want margin, use modified sine: 14.7 mm/rad and 25.7° at the root.
5. Dynamics. ω = π rad/s. The turret's peak angular acceleration is Ca·(2π/n)·ω²/β², with Ca the peak-acceleration coefficient from the table: 3.29 rad/s² with cycloidal and 2.89 with modified sine. The total inertia is J ≈ 4.0·10⁻⁴ kg·m²: the plate (about 70 g) contributes 1.26·10⁻⁴, rollers and screws about 0.8·10⁻⁴ and the loads 2.0·10⁻⁴. The inertia torque is about 1.3 N·mm, negligible. The turret's peak speed is 1/3 of the drum's with cycloidal, against 0.35 for a 12-slot Geneva. At 30 rpm, what sizes the motor is friction and starting, not inertia (Choosing a motor).
6. The case that sizes it: holding. Someone pushes the table with 1 N·m during the dwell. The roller in contact sits 15° from the tangent point and takes 1000 / (50 × cos 15°) = 20.7 N, all of it axial on the drum. With a Ø10 steel roller and 3 mm of line contact, the Hertz pressure is p ≈ √(F·E′/(π·w·R)). With a PLA drum (design E 2.5 GPa, E′ ≈ 2.8 GPa) it comes to about 35 MPa; in PETG (E′ ≈ 1.8 GPa, as in Cams and followers), about 28 MPa. That is fine for a push, not for a permanent load: for sustained load use PC, ASA or a fiber-filled grade; PLA and PETG are fine for a light load with no heat (Creep and fatigue). The drum's thrust bearing has to take those 20 N without play.
7. Generating the rib. The rib is whatever the rollers do not sweep away. Never draw the curve with hand-placed arcs: shape error is acceleration you did not plan for. Start from a 3 mm high band on the core, one turn long, p wide (p is the axial spacing between rollers) and centered on the rib's centerline: straight in the dwell and shifted according to the law in the index. Then, for each drum angle θ, place every roller in contact (a cylinder of radius 5 + s) at its position relative to the drum and subtract it from the band. You place the roller with two rotations: ψ(θ) about the turret axis and −θ about the drum axis. That way the arc of the rollers and the loss of depth take care of themselves. If you start from a solid ring instead of the band, the subtraction leaves several turns of rib, like a thread, and the extra turns work against rollers at 45° or more that no longer make proper contact: trim the result to the one working turn.
The sweep step leaves a scallop of height ℓ²/(8·r_c), where ℓ is the cutter's travel relative to the drum between two positions (at the peak of the index, about 0.63 mm per degree, because the rotation and the axial shift add up) and r_c its radius: with 1° drum steps, 0.01 mm; with 2°, 0.04 mm; with 3°, 0.09 mm. Use 2°: that is well below the ±0.1 mm scatter of the print. The dwell needs no sweep, because its faces are flat and perpendicular to the axis.
8. Roller entry. Put a 0.5 mm chamfer on the ends of the rib, where a roller first makes contact. Without the chamfer, the sharp edge catches the incoming roller.
Printing it
Print the drum with its axis horizontal. The rib faces become vertical walls in the dwell; in the index they lean by at most the helix angle (under 30°). The working faces need no support. Only the rib crest and the core in the bottom third need it, and neither of them does any work (Orientation and overhangs, Support settings). Where the two ends of the rib overlap, the floor of the handover groove bridges between them.
With the axis vertical, the underside of the rib in the dwell would be a 3 mm ceiling, a 90° overhang. The index faces would show layer steps (Designing out supports).
If you would rather avoid the support, split the drum in two halves along a plane containing the axis, print them cut face down on the bed and locate them with dowel pins. The price is a step at the joint, which the roller feels if the halves do not match.
Print the turret flat on the bed (Layer orientation for mechanisms). The roller screw holes end up vertical and come out round; correct their diameter as in Why holes print small. Fix the M3s with heat-set inserts or self-tapping screws (Designing for heat-set inserts, Self-tapping screws in plastic). Each hole's XY position has ±0.1 mm of scatter, and that error goes straight into the position of each station.
Keep the seam off the rib faces (Where the seam goes). PLA for a drum that works indoors; PETG if it sees heat or impacts (Which plastic for which mechanism). Grease the rib with PTFE grease (Friction and wear): across the 3 mm of contact, the rib's surface speed varies by 9 % between r = 30.5 and r = 33.5 mm, and a cylindrical roller, which rolls at one speed only, skids at the ends and wears the rib in bands. That is why you want short contact.
Mount the drum on a steel shaft with two bearings and no axial play, using shoulders or shims (Seating bearings and bushings, Fixing a part to a shaft).
What precision it gives
The backlash, measured as turret rotation, is Δψ = 2s / (Rt·cos(180°/n)). Here is the budget for the example, with the displacement at the plate's rim 60 mm from the center:
| Source | Value | Turret rotation | At 60 mm |
|---|---|---|---|
| Rib clearance | s = 0.15 per side | 0.36° | 0.37 mm |
| Rib clearance | s = 0.20 per side | 0.47° | 0.50 mm |
| Rib clearance | s = 0.25 per side | 0.59° | 0.62 mm |
| Drum axial play | 0.1 mm | 0.12° | 0.12 mm |
| Position of a roller hole | ±0.1 mm | ±0.12°, different at each station | ±0.12 mm |
Keep accuracy and repeatability apart (Accuracy, precision and repeatability). Each station comes back to almost the same place: repeatability depends on the backlash and the bearings. But two consecutive stations do not sit exactly 30° apart, because accuracy depends on where the turret holes ended up. With clearance, a printed indexer is no more accurate than a printed Geneva (about 0.43° of backlash in the example in that article). Its advantage is that the backlash depends on a single dimension, and you can bring it close to zero.
Zero backlash. The width with no clearance is the roller spacing minus their diameter: 15.88 mm in the example. With ±0.1 mm of scatter you will not hit it in the model; you find it with the coupon, and because the bearings roll, a slight preload does not bind the way a sliding pin would. Industry does exactly this: rollers preloaded against the rib and dwells with two or three rollers in contact. But in PLA the preload is lost over time to creep, and unlike a globoidal cam, a cylindrical drum has no center distance you can readjust. Expect the backlash to come back.
When not to use it
Below 12 stations with a drum this size, the braking roller loses contact: use a Geneva drive, or a globoidal cam if you need form locking. If a nudge-by-nudge advance without form locking will do, a Star wheel indexer is simpler, and if a gear with missing teeth suits you, see Mutilated gears. To step forward from a reciprocating motion, Ratchet and pawl. With a stepper or a servo, the electronics set the position and you need no indexing mechanism at all; on the other hand, a stepper has to find a reference at start-up, and neither holds by form without power (Choosing a motor).
When it fails
| Symptom | Cause | Fix |
|---|---|---|
| The plate rocks in the dwell | Rib too narrow, or drum axial play | Width coupon; drum bearings with shoulders or shims |
| It jams mid-index, the motor slows or stalls | High pressure angle (small drum or short β) or rib too wide | More β, more radius or modified sine; tune the width |
| A knock at the start of each step | Constant-lead law (helical sweep) or harmonic | Cycloidal or modified sine, generated in steps |
| A catch as a roller meets the rib | Sharp edge at the rib end, or a roller out of place | 0.5 mm chamfer; check the hole circle |
| Large backlash only at the end of the index | The braking roller moves too far from the drum axis (too few stations) | More stations, a bigger drum or a taller rib |
| Some stations land right and others do not | Position error in the turret holes (printer XY scale or squareness) | Calibrate XY scale and squareness, measure and correct the model, or print the holes undersize and drill them through a jig; do not narrow the rib to hide it |
| Stepped or rough rib faces | Drum printed with its axis vertical | Axis horizontal, or two halves |
| Worn bands on the rib after hours of running | Printed rollers that slide, or skid from the speed difference across the rib height | Bearings as rollers, grease, PETG |
| The plate has shifted after days under load | Creep at the contact | Do not leave a permanent load on the rib; add a separate locking pin |
How to test it
- Rib coupon. Before the drum, print a 60° piece of dwell rib in six widths: from 15.40 to 15.90 mm in 0.10 steps (and 0.05 near the top if you want to fine-tune). Mount a turret arm with two bearings spaced at the real chord. Keep the widest one that turns by hand without binding (Test coupons, Iterate and measure).
- Backlash per station. With the assembly built, put a pointer on the plate against a printed scale, or a dial indicator at 60 mm. Push the plate both ways at each of the 12 stations and note the backlash. Also note each station's error relative to the first.
- Cycles. Run 1000 steps with a counter and measure the backlash again. If it has grown, the rib is wearing or creep has eaten the preload (Testing a mechanism before you trust it).
See also
- Cams and followers: motion laws and radius of curvature, worked out in full.
- Geneva drive: the slotted indexer, simpler when there are few stations.
- Worm drives: the uniform-lead thread this rib is a special case of.
- Test coupons: how to tune the one dimension that sets the backlash with small parts.
