XY Linear Modules: Workpiece Coordinates, Rotation and Translation
November 5, 2026 · 6 min read
A part drawing can use a different origin and orientation from the machine’s XY coordinate frame. Define that relationship before interpreting target points. A coordinate transformation changes the description of those points; it does not physically rotate the module or establish the installed machine’s accuracy.
Identify the workpiece and machine frames separately
For an inspection pattern, fixture or processing contour, name the frame in which each point is defined. Record the machine reference, workpiece origin and observation point. A pair of numbers without its frame can identify the wrong physical location even when its units are correct.
The model here uses two ideal orthogonal Cartesian frames in one plane, with the same distance unit, scale and handedness. Define θ as the angle from machine +X toward workpiece +X, positive counterclockwise when viewed from the common +Z side. Workpiece +Y follows the same right-handed convention.
These assumptions exclude mirroring, scale differences, perspective and out-of-plane tilt. Image pixel coordinates need their own calibrated relationship to physical distance and direction; a camera image is not automatically this workpiece frame.
Map a point using a defined origin and orientation
Let (x0, y0) be the workpiece origin expressed in machine coordinates. A workpiece point (xw, yw) has machine coordinates:
xm = x0 + xw cos θ − yw sin θ
ym = y0 + xw sin θ + yw cos θ
The workpiece +X unit direction is (cos θ, sin θ) in the machine frame; its +Y direction is (−sin θ, cos θ). The equations combine those two directions and add the origin. They describe this specific workpiece-to-machine point mapping.
For a displacement vector between points, rotate the vector without adding the origin. For an absolute point, the origin is required. Do not treat those two operations as interchangeable or infer a controller’s parameter order from the equations. Coordinate-frame definitions, contour rotation about a centre and chained transforms can use different conventions.
Check an offset rectangular pattern
Assume a workpiece origin at machine (100, 50) mm and θ = +30°. Consider the four corners of a 20 mm by 10 mm workpiece-coordinate rectangle. These invented coordinates illustrate geometry, not module travel, positioning performance or an actual fixture.
On narrow screens, scroll the table horizontally to read all columns.
| Workpiece point (xw, yw) | Machine xm | Machine ym |
|---|---|---|
| (0, 0) mm | 100.000 mm. | 50.000 mm. |
| (20, 0) mm | 117.321 mm. | 60.000 mm. |
| (0, 10) mm | 95.000 mm. | 58.660 mm. |
| (20, 10) mm | 112.321 mm. | 68.660 mm. |
For the last point, xm = 100 + 20 cos 30° − 10 sin 30° ≈ 112.3205 mm. Its distance from the workpiece origin remains √(20² + 10²) ≈ 22.3607 mm. A rigid rotation and translation preserve that distance; displayed rounding is not an accuracy specification.
To check the inverse, first subtract the origin: Δx = xm − x0 and Δy = ym − y0. Then xw = Δx cos θ + Δy sin θ and yw = −Δx sin θ + Δy cos θ. Applying this to the unrounded last point returns (20, 10) mm.
Review transformed travel and the installed geometry
The example rectangle occupies machine X from 95.000 to approximately 117.3205 mm and machine Y from 50.000 to approximately 68.6603 mm. Its workpiece dimensions alone therefore do not describe the individual machine-coordinate ranges.
Review the transformed path against the actual usable axis positions, tool and fixture clearances, and the complete moving assembly. The four corners bound this ideal filled rectangle under a rigid planar mapping; arbitrary curved paths, tool envelopes and other geometry need their own evaluation. This arithmetic is not a collision or travel-limit validation.
A transformed path also needs the intended coordinated motion and per-axis operating checks. The XY path guide addresses that separate motion requirement. Confirm where any existing work offset or transformation already acts so the same relationship is not applied twice.
Keep nominal frame mapping separate from installed squareness and tool-offset effects and position-data scaling. A rigid frame rotation does not correct arbitrary mechanical errors or an unidentified distance scale.
Retain the frame definition with independent verification
- Frames: names, units, handedness, positive axes, origin and angle definition.
- Mapping: direction, point versus vector treatment and any other active offset, scaling or transform.
- Registration: source of the origin/orientation, fixture or reference features and setup revision.
- Verification: independent check points across the working region, observation method, residuals and agreed acceptance.
- Travel: transformed path, actual axis ranges, tooling/fixture envelope and responsible integration review.
Confirm the proposed XY arrangement using the single-axis module information as a component starting point. No workpiece-registration function, controller transformation feature or geometric accuracy is established by that mechanical listing.
