wrap — Cylindrical interpolationInterpolation

Wrap a flat developed toolpath onto a cylinder about a rotary axis.

wrap radius <r> [axis x|y|z]   ·   wrap off

Equivalents: Siemens TRACYL · Fanuc G07.1

ParameterTypeDefault
radiusmmreference (surface) radius the developed path wraps onto
axisx|y|zxthe cylinder axis

Author a **flat, developed** toolpath (as if the cylinder were unrolled to a flat sheet) and `wrap` maps it onto the cylinder of the given radius: the coordinate *along* the axis stays axial, the coordinate *around* the cylinder becomes the rotary angle (θ = developed ÷ r), and the cut depth becomes radius (r + z). The 5-axis kinematics simply turn the rotary that carries the work — **no special interpolation mode** (unlike a vendor TRACYL); the tool axis stays radial-outward and the existing RTCP solver does the rest. A straight developed move automatically becomes an **arc** on the cylinder, so the cut follows the surface and never chords inside the cutting radius. `wrap off` returns to Cartesian. ``` developed (flat) wrapped (radius r) ┌───────────────┐ ___ │ →→→→→→→→→ │ wrap → / \ θ = around / r │ │ ( · · · ) axial stays axial └───────────────┘ \ ___ / depth → radius around ─► axial ▲ ```

a groove around a 25 mm cylinder
units mm
wrap radius 25 axis x
g0 x0 y0 z-2
g1 x0 y40 z-2 f300
g1 x60 y40 z-2
g1 x60 y0 z-2
g1 x0 y0 z-2
wrap off

See also: spline · plane

← all commands