CAM Studio
A CAM Studio tab turns parts of a document into G-code programs for a CNC machine: a milling machine, a CNC router, a laser cutter, a plasma cutter or a waterjet. To make one, click + in the tab bar and choose Create CAM Studio.
The toolbar runs left to right in the order of the work, and each button becomes available once the step before it is done:
- Insert the part to machine, and its workholding and stock if they are modelled.
- Create a job for the part, a machine for the job, then a setup.
- Create a tool, then a toolpath for each cut the tool makes.
- Preview the toolpaths, then post the setup to G-code.
The panel on the left has two lists. Jobs shows each job with its machine and its setups, and under each setup its tools, toolpaths and work planes in the order they run. Components lists the inserted parts, workholding and stock, each with the version it is taken at (or workspace).
- Click a row to select it; Ctrl+click adds to the selection. Clicking a job also makes it the active job, shown in bold: the view shows its stock and toolpaths, and the toolbar works on it.
- Double-click a row to edit it.
- Right-click a row for its menu. Besides the toolbar’s actions it has Duplicate, Suppress (leaves a job, setup or operation out without deleting it), Hide and Delete, and for an operation Move up, Move down, and Move to or Copy to another setup.
- Delete deletes the selected rows.
- The eye on a toolpath, work plane or component row hides it in the view.
A toolpath’s row ends with its machining time once it is calculated, and otherwise with not calculated, out of date, calculating… or failed. A red row failed, or its toolpath runs into something: hover it to see why. ⚠ marks a toolpath with warnings.
In the view, the active job’s toolpaths are drawn over the parts: rapids red, cuts blue, plunges and ramps green, leads cyan, links yellow, retracts purple and beam cuts orange. The selected toolpath is drawn wider, and one that is out of date is grey. Each setup’s work coordinate system shows as a triad (X red, Y green, Z blue).
The dialogs open as a card in the view. ✓ accepts and × cancels; while something is
missing, ✓ is disabled and the dialog says what is wrong. Number fields take units and
expressions (6*2, 1/4 in, 30 deg); a length without a unit is in mm. Every change is one
undo step.
Insert part, workholding and stock
Insert brings parts of a Part Studio into the CAM Studio as components. The button’s menu has Insert part for what is machined, Insert workholding for what holds it (a vice, clamps) and Insert stock for a modelled blank.
- Insert as: Part, Workholding or Stock, as chosen in the menu.
- Document: This document, or another of your documents that has a version.
- Part Studio and Reference: Workspace (follows edits) follows every edit; a version keeps the part as it is.
- Parts: tick the parts to insert. Each becomes a row under Components.
Parts from another document always come in at a Version. A configured Part Studio taken at its workspace also shows its Configuration inputs.
Stock components are drawn see-through. Double-click a component to change its Name, what it is Used as and its configuration. A component taken at a version has Update to the latest version in its right-click menu.
Create job
A job says what is machined and from what: the bodies to cut, their stock and the workholding around them. Each job has its own machine and setups, and a CAM Studio can hold several jobs.
- Job name.
- Bodies (all parts when empty): click parts in the view to machine only those; click one again to take it out.
- Stock type: a Box or Cylinder around the bodies, grown by the offsets below it, or User defined for an inserted stock component.
- Stock direction: World, or the model axis the stock’s Z lies along.
- Workholding bodies: click the inserted workholding, so the run is checked against it.
The button is available once a part is inserted. A new job’s box stock is 2 mm larger than the bodies on each side in X and Y and 1 mm higher, with nothing added below; a cylinder has a Radial offset and the two Z offsets. The dialog shows the stock’s size under the offsets.
Create machine
The machine is what the active job’s programs are written for: its kind, travel and rates, its controller and how its G-code is written. Take one from the catalogue, or use an assembly set up with the Machine Builder.
- Machine from: Catalogue or From assembly.
- Machine: a catalogue machine: mills, CNC routers, lasers, plasma tables or a waterjet, each with its controller.
- Travel and rates: X travel, Y travel, Z travel, Rapid rate and Fastest feed.
- Post settings: the program’s output unit, sequence numbers, arcs, decimal places, retracts and comments.
The catalogue has generic machines with Fanuc, Haas-style, LinuxCNC, GRBL and Mach3/Mach4 controllers. Group by machine type sorts the list by kind instead of by name. Mills and routers also have Fastest spindle, Automatic tool changer and Indexing rotary axes (3+2), with its Largest tilt and Rotary axes; where the controller has them, Fixed cycles chooses which drilling and tapping cycles are written as canned cycles. A machine with rotary axes has a Rotary axes in the program group, with Tool centre point control, Tilted work planes and Feed on rotary moves among its settings.
With From assembly, choose the Assembly: one of this document’s that its Machine Builder has set up, or one of another document at a Version (a frozen copy). The dialog shows the machine’s axes and controller and what stands in its way, and Open Machine Builder goes to the assembly to change them.
A job has one machine: once it is set, the button edits it. The machine’s kind decides which tools and toolpath patterns the job offers.
Create setup
A setup is one way of holding the work on the machine: its place on the table and its work coordinate system, with the tools, toolpaths and work planes used in it. Each setup is posted as one program.
- Setup name and Program number (1001 for a job’s first).
- Machine mating: where the work sits on the table: Automatic centres the stock’s bottom on it, Manual moves it by offsets.
- Work plane origin: World, Component box point, Stock box point or Manual.
- Tool axis (Z) and X direction: a model axis, or Normal of a picked face for Z.
- Override datum: Automatic, or G54 to G59.
A box point is set by Position X, Position Y and Position Z, each Minimum, Middle or Maximum; a new setup’s origin is the top centre of the stock. Show work coordinate system draws the setup’s triad in the view.
The machine mating is used by the simulation and to check that the run stays inside the machine’s travel. Its third choice, A frame on the machine’s mount, is for work held where the mount is not a flat table under it, such as a chuck on a rotary axis: picking the Face that sits on the mount puts the frame’s origin at the face’s centre with Z into the part, and the origin and directions can also be typed.
On a laser cutter, plasma cutter or waterjet the sheet lies flat: keep the setup’s Z along +Z.
Create tool
A tool is the cutter that the toolpaths listed below it in the setup use, with its size, its cutting data and its number in the machine. Take it from the tool library or define it in the dialog.
- From the tool library: choose a Tool; Machining type narrows the list.
- Cutter type and its dimensions, such as Diameter and Cutting length; a beam has a Kerf width.
- Cutting data: Worked out for a material fills in the speeds, feeds and steps; a value you type makes it Set by hand.
- Holder: for the collision checks and the simulation.
- Assembly number (T): the tool’s number in the program.
The tool goes after the selected operation, or at the end of the selected setup; with neither selected, at the end of the active job’s last setup. The cutter types offered are the machine’s: end, ball, bull, chamfer, taper, face, tapered ball, lollipop and barrel mills, form tools, drills, thread taps and thread mills on a mill or router; a laser, a plasma torch or a waterjet nozzle on the cutting machines. A form tool’s outline is entered as points under Profile.
Worked-out cutting data is a starting point for a carbide cutter in the chosen material, held within the machine’s fastest spindle and feed. A beam’s own settings are under Beam: its Pierce delay, a laser’s Power, Air assist and Passes, and a plasma torch’s Pierce height, Cut height and Torch height control.
Import tool library… adds the tools of a library file (JSON) to the studio’s library, and Export tool library… writes the library to the export folder.
Create toolpath
A toolpath is one machining operation: a pattern cut with the tool listed above it in the setup. The dialog draws the toolpath in the view as you change it, and ✓ calculates it.
- Type: what drives the toolpath: Edges, Faces, Bodies or Holes.
- Pattern: how it cuts. The list has the patterns the tool and the machine can run.
- The pick list below: click the edges, faces or holes to machine in the view.
- The tabs Tool path, Link, Axis, Collision and Misc hold the rest; a beam has Beam in place of Axis and Collision.
| Type | Pattern | What it cuts |
|---|---|---|
| Edges | 2-axis profile | Along the picked edges, or round the part’s outline, in depth passes, with tabs and leads. |
| Edges | 2-axis chamfer | Breaks edges with a chamfer mill. |
| Edges | Engrave | Follows the picked edges at a depth. |
| Edges | Cut | Cuts through with a beam, the kerf allowed for. |
| Edges | Etch | Marks along edges with a beam. |
| Faces | Face | Flat passes over the stock’s top, or over picked flat faces. |
| Faces | 2-axis rough | Clears pockets and round bosses, level by level. |
| Faces | Flatlands | Finishes horizontal floors. |
| Faces | Fill | Hatches the picked faces with a laser. |
| Faces | Swarf | Cuts ruled walls with the side of the tool, leaning with them. Needs two rotary axes. |
| Bodies | Rough | Removes the bulk of the stock round any shape, level by level. |
| Bodies | Adaptive clearing | Roughs at a constant sideways load on the tool. |
| Bodies | Parallel | Straight passes side by side over the surfaces. |
| Bodies | Constant Z | Passes at constant heights round the steep walls. |
| Bodies | Scallop | Rings an even step apart over the shallow surfaces. |
| Bodies | Spiral | One spiral out from the middle over the surfaces. |
| Bodies | Pencil | Along the inside corners and fillets tighter than the tool. |
| Bodies | Rotary | Finishes round a rotary axis: a spiral, lines, rings or a thread. Needs a rotary axis. |
| Bodies | Rotary rough | Roughs round a rotary axis, in levels of radius. Needs a rotary axis. |
| Holes | Drill | Drilling, peck drilling, chip break and tapping cycles. |
| Holes | Bore | Mills holes on a helix with an end mill. |
| Holes | Thread mill | Cuts threads on a helix with a thread mill. |
A new toolpath goes where a new tool would: after the selected operation, or at the end of the selected setup. Most pick lists can stay empty: the placeholder says what is machined then (the part’s outline, the stock’s top, all the faces, the holes the cycle selects). Engrave needs edges and Fill needs faces.
The Tool path tab also has the stock to leave, Step down and Step over, the cutting direction, the Heights between which it cuts, the Speeds, and what is written with it under Posting (Coolant, Stop before (M0), a Comment). The roughing patterns have Rest machining, which cuts only what the operations above left. Start from template applies a template saved earlier with Save as template on the Misc tab.
- Link: the clearance above the stock, how the tool crosses gaps, its first entry (Plunge or Ramp) and the leads in and out.
- Axis: the tool’s axis: Work plane Z, or Normal of a picked face (3+2) to cut at a tilt. On a machine with rotary axes, Parallel, Scallop, Spiral and Pencil can also lean the tool as they cut: Normal to the surface, Away from a point, Toward a point or Through a line.
- Collision: Check the shank and holder against the part, with a clearance for each; where they would hit, Retract leaves the moves out and Warn keeps them and lists them.
- Misc: the Cut tolerance, Smooth corners, and a Repeat of the toolpath in a line or round a centre.
- Beam: Power, Passes, and for Cut the microjoints that hold a part in the sheet and a slower feed for small holes.
Warnings from the calculation are listed at the foot of the dialog.
Create work plane
A work plane is another coordinate system within a setup: the toolpaths listed below it are calculated and posted in it instead of in the setup’s own. It starts as a copy of the setup’s work coordinate system.
- Name.
- Work plane origin, Tool axis (Z) and X direction, as for a setup.
- Type: Absolute is a fixed datum on the control (G54…), Dynamic a temporary frame the control defines (G68.2), and None writes the setup’s coordinates.
- Override datum: the datum written, or Automatic for the next free one.
- Show work coordinate system draws its triad in the view.
The work plane goes after the selected operation, or at the end of the selected setup, and holds for the toolpaths below it up to the next work plane.
Regenerate the selected toolpaths
Regenerate calculates toolpaths again. With toolpaths, a setup or a job selected it calculates theirs; with none selected, every toolpath of the active job that is not up to date.
- A toolpath is out of date when what it was calculated from has changed since: the part, the stock, its tool, its setup or its own settings.
- Toolpaths are calculated in the background: the row reads calculating…, then its time.
- A setup’s or job’s suppressed toolpaths are left out.
Accepting a toolpath’s dialog calculates that toolpath, so Regenerate is for what changed under it. Results are kept with what they were calculated from: after an undo, the toolpath of the earlier state shows at once. The right-click menu has Regenerate operation on a toolpath and Regenerate all toolpaths on a setup or job.
Preview operation
Preview operation plays the selected toolpath, or all the toolpaths of a setup, over the stock from a bar at the bottom of the view. It has three modes: Back plot, Verify and Simulate.
- Back plot moves the tool along the toolpath: what is done in colour, the rest grey.
- Verify shows the stock as the tool leaves it, with gouges in red.
- Simulate is Verify with the collisions it finds, and can Pause on collision.
- Run, Step back, Step next, Go to end and Reset move through the program, as does dragging the timeline.
- Tool, Toolpath and Part show or hide each in the view.
Speed sets how fast the run plays. With a job selected, or nothing, the preview plays the first setup of the job. The toolpaths before the ones played are cut first, so the stock starts as they leave it. If a toolpath is not calculated yet, the preview starts its calculation and asks you to preview again when it is done.
The line under the timeline shows the time, the operation, the feed and the tool’s position. At the end of the run, Verify and Simulate say what they found there: how much was removed, gouges and how deep, what is left on the part, and the collisions. A collision is a rapid into the stock or the part, the tool into the workholding, or the shank or holder meeting the stock or the part.
When the job’s machine comes from an assembly, it moves with the run, a second line shows where its axes are, and the bar has a Machine check and Relative to (Part or Machine). Simulate also pauses where an axis leaves its travel and where the machine runs into itself or the work; the parts that collide are drawn red.
Post the setup to G-code
Post writes a setup’s toolpaths as a G-code program for the job’s machine. With toolpaths of one setup selected it posts those; otherwise all those of the selected setup, or of the active job’s first.
- Program number and File name, which starts as the job’s and setup’s names.
- Output units: Millimetres or Inches.
- Setup sheet: writes an HTML setup sheet beside the program.
- Folder, with Browse… to choose another.
- Post writes the files and says where.
The dialog also names the machine and its post, lists the operations in the program and shows
its first lines. The file’s extension follows the controller: .nc for Fanuc and Haas-style,
.ngc for LinuxCNC, .gcode for GRBL and .tap for Mach3/Mach4. A changed program number is
kept in the setup.
Notes in red say what to know before running the program, such as the work offsets to set. If the run collides with something or goes beyond the machine’s travel, the dialog lists where, and posts only once Post anyway: I’ve checked where it runs on the machine is ticked.
If a toolpath is not calculated yet, Post starts its calculation and asks you to post again when it is done.
Show or hide the active job’s stock
Shows or hides the stock of the active job in the view. The stock is drawn see-through round the parts it is cut from; it is shown to begin with.
- A box or cylinder stock follows the job’s bodies and offsets as they change.
- While a preview is in Verify or Simulate, the cut stock is shown in its place.
- The setting is the view’s: it is not saved in the document.
Show or hide the machine
Shows or hides the job’s machine in the view. The button is available when the machine comes from an assembly: the assembly’s parts are then drawn round the work.
- Without a preview the machine stands at home, under the selected setup or else the job’s first.
- During a preview its axes follow the run, and its magazine turns to the pocket of the tool in the spindle.
- The instances of its enclosure are drawn see-through.
- The preview bar’s Machine check does the same.
The machine’s parts cannot be selected in the CAM Studio, and zooming to fit leaves them out.
Keep the machine still
Chooses what stays still in the view while a preview moves a machine that comes from an assembly. Lit, the machine stands still and the work moves with its table, as seen standing at the machine; unlit, the part stays still and the machine moves round it.
- It is lit to begin with.
- The preview bar’s Relative to is the same choice: Machine or Part.
- The button is available only when the job’s machine comes from an assembly.
While a dialog is open, and with the machine hidden, the parts are drawn where they are modelled, so picks land on them.
Machine Builder
The Machine Builder sets an assembly up as a machine a CAM Studio can use: you say where the tool and the work go on, and it reads the axes from the mates between them. Open it with the Machine Builder button at the right edge of an assembly’s view.
- Mounts: click Tool mount and pick a point on the spindle’s nose, then Table mount and a point on the table.
- Axes: a row for each mate that moves the tool or the table, with its name and a slider to jog it.
- Actuators, Tool change, Enclosure and Controller set up the rest.
- Issues says what still keeps it from being a machine.
- ✓ saves the machine.
A mount’s Z must point out of the spindle (toward the work) or out of the table; the flip button beside a mount turns it round, and each mount shows as a triad in the view. The axes appear once both mounts are set.
An axis row shows whether it moves the Tool or the Table, its name in a program (X, Y, Z, A, B, C…), whether it is linear or rotary, and its mate; hovering the row highlights the mate’s instances. The button at its end reverses the axis, so it counts the other way. Expanding a row gives Set zero here, its Home (with Set home here), its travel in Travel from and Travel to or From the mate’s limits, Continuous for a rotary axis without stops, and its Rapid rate and Fastest feed.
Jogging moves the machine in the view only: nothing in the document changes. Home in the footer jogs every axis to its home, and Reset pose puts the assembly back as the document has it.
- Actuators: the other mates that can move, such as a door or a tool magazine. Add as actuator gives one a name and a slider, and Add position here names the place it is jogged to.
- Tool change: Set from current takes the place the axes are jogged to as the tool change position. Magazine names the actuator that carries the tools, and Add pocket here (or From its positions) gives each tool number its place on it.
- Enclosure: select guards, doors and covers in the view, then Add selection: the CAM Studio draws them see-through.
- Controller: the catalogue machine the controller starts from, its Controller family, spindle, tool changer and post settings, as in a CAM Studio’s machine dialog.
- Issues: errors keep the assembly from being a machine; warnings say what the machine leaves out. Click one to select the mates and instances it is about.
✓ is available once something has changed; it saves the machine as one undo step, and the panel stays open. Closing the panel without ✓ drops the changes. Once a machine is saved, the footer also has a button that removes it, which makes the assembly an ordinary one again.
To use the machine, open a CAM Studio’s Create machine and set Machine from to From assembly.