CAM program tools
Everything between the toolpaths and the G-code file: names, work offsets, stops, probing, copies and programs. Every copy and every probe move is checked against the part before it is posted.
What the program tools do
Toolpaths say how the tool moves. The program tools decide what goes into the G-code file around them: the program name and number, which work offsets are machined, where the machine stops, where the probe measures, which operations are copied and which operations go into which file.
They are on the MANAGE tab (Program and Probing groups) and on the POST tab (NC programs…). The Post process settings are in the setup panel. Every tool has a "?" that opens its section of this guide.

- MANAGE tab
- Manual NC
- Pattern
- Save as template
- Probe WCS
| Tool | Use it to |
|---|---|
| Post process | name and number the program, add a comment, machine several parts with work offsets |
| Manual NC | add a stop, a comment, a dwell, a coolant change, a tool change or your own lines between operations |
| Probe WCS | measure the part with a probe and set the work offset (or check a size) at the start of the program |
| Pattern | copy operations along a line, around a centre, as a mirror image or to other work offsets |
| Save as template | keep a set of operations with their tools and settings and add it to other jobs |
| NC programs… | post chosen operations from one or more setups as one file, with its own number, folder and post properties |
Post process: program name, number and comment
Each setup has a Post process section. What you enter here is written at the top of the program, in the form the post uses (for example O1001 on a Fanuc-style control).
- Select the setup in the CAM tree.

Figure 2. Step 2: the Post process section of the setup - Post process section with its "?"
- Program name/number
- Program comment
- Multiple WCS offsets
- Scroll to Post process. Enter the program name or number and, if you like, a comment such as the part number or the fixture.
- Post the program (POST tab). The name, number and comment are in the first lines.
- Program name/number
- Empty uses the file name. A number is written as the program number where the control expects one (for example O1001); text is written as the program name or as a comment, depending on the post.
- Program comment
- A line of text at the top of the program, written as a comment. Use it for the part, the revision or the fixture.
- Multiple WCS offsets
- Machine the same operations on several parts, each with its own work offset. See the next section.
Multiple WCS offsets: several parts in one program
With several vises or fixtures on the table, every part has its own work offset (G54, G55, ...). Multiple WCS offsets posts the operations of the setup once for every work offset, so one program machines all the parts.
The toolpaths are computed once, on the setup's work offset. The copies are made by the control: only the work offset changes between them, so every copy is exactly the same.
- Set the setup's work offset (for example G54) and make the operations as usual.
- In Post process, tick Multiple WCS offsets. Enter the number of instances and the increment. The line below shows the work offsets that will be used.

Figure 3. Step 2: Multiple WCS offsets switched on - Multiple WCS offsets
- Number of instances
- WCS offset increment
- Operation order
- The work offsets that will be used
- Choose the operation order (see the table and the diagram).
- Post. The program changes the work offset before each copy and goes back to the safe height in between.

Figure 4. Step 4: the posted program machines every part - Program summary
- The G-code: G54, then G55 before the same operations
- Number of instances
- How many parts: 2 to 54.
- WCS offset increment
- 1 uses the next work offset (G54, G55, G56); 2 skips one (G54, G56, G58). After G59 the extended offsets G54.1 P1 to P48 are used.
- Operation order
- In which order the copies are machined. The default keeps the list order for each part.
| Order | What it does |
|---|---|
| Preserve order | All operations on the first part, then all operations on the next part. The safest choice and the default. |
| Order by operation | Each operation on every part before the next operation. Fewer tool changes, more moves between the parts. |
| Order by tool | Neighbouring operations that use the same tool are run on every part before the tool changes. Inside every part the operations keep their list order. |
Order by tool only regroups operations that are next to each other in the list and use the same tool. It never moves an operation ahead of an earlier one on the same part, so rest machining always follows the roughing it depends on. Controls that cannot write a work offset (they only write it as a comment) are refused, because every copy would cut in the same place.
Manual NC: stops, comments and your own lines
A Manual NC line is written into the program between two operations. It sits in the operation list like an operation, and it moves with the operation it follows.
- Select the operation it should follow, then click Manual NC on the MANAGE tab and choose the type. (Nothing selected: it goes after the last operation.)

Figure 5. Step 1: Manual NC added after the selected operation - Manual NC button
- The new line in the operation list
- Its panel
- Fill in its panel. The message is written as a comment, so the operator sees why the machine stopped.

Figure 6. Step 2: the type and the message of a Manual NC line - Type
- Message (written as a comment)
- Its place in the list
- Post. The line is written in the form the post uses for the type.
| Type | What is written |
|---|---|
| Comment | A comment line, for example "Check the clamp". |
| Stop (M0) | The program stop of the post (M0 on most controls), with the message before it. The spindle and coolant stop; the operator restarts. |
| Optional stop (M1) | The optional stop (M1): the machine stops only when the operator has switched optional stop on. |
| Dwell | A pause of the given number of seconds (G4 on most controls). |
| Force tool change | The next operation writes the full tool change sequence again, even when it uses the same tool: retract, tool change, length offset. |
| Pass through | Your lines, written exactly as typed, without any check. |
| Coolant | The coolant code the post uses for the chosen mode (flood, mist, air, through spindle or off). |
| Measure tool | The tool measuring cycle set in the NC program's post properties (for example a tool setter cycle). Without one, posting stops and says so. |

- Type: Pass through
- The lines
- The safety note
Pass through is written without any check. WindFire cannot know what your lines do: make sure they are right for this machine and leave it in a safe state (spindle, coolant, position, modal codes).
Probing: set the work offset or check a size
Probe WCS measures the part with a touch probe and writes the result into a work offset, so the program machines the part where it really is. Probe geometry measures a size or position and compares it with the tolerance, without changing the work offset.
Probing is posted with the standard inspection macros (G65 P9810 protected move, P9811 single surface, P9812 bore / boss, P9814 pocket / web) that Fanuc-style controls use. For controls without them, posting stops with the reason.
- Click Probe WCS on the MANAGE tab. Choose what to measure and enter the probe tool number and the stylus ball.

Figure 8. Step 1: a Probe WCS line and its settings - Measure
- Probe tool number
- Clearance height (Z)
- Start X
- Start Z (protected move)
- Work offset to update
- Enter the clearance height and the start point above the feature (program coordinates, from the work origin), then the nominal size where asked.
- For a size check use Probe geometry instead, with a tolerance and, if you like, printed results.

Figure 9. Step 3: Probe geometry checks a size instead of setting the work offset - Measure
- Tolerance
- Print results
- Probe tool number
- The tool number of the probe in the machine. A probe from the tool library is chosen when there is one.
- Stylus ball diameter
- The diameter of the probe tip. It is used for the collision check of the approach.
- Clearance height (Z)
- The height the probe reaches with a rapid move before it starts the protected move.
- Start X
- Where the probe starts, in program coordinates. Start X, Start Y and Start Z together are the start point.
- Start Z (protected move)
- The probe moves down to this height with a protected move: it stops if it touches anything on the way.
- Work offset to update
- Which work offset gets the measured position. G54 to G59 can be updated.
| Measure | What it does |
|---|---|
| Single surface X | One face in X: sets X of the work offset. |
| Single surface Y | One face in Y: sets Y. |
| Single surface Z | The top face: sets Z. |
| Bore | The centre of a hole from its wall: sets X and Y. |
| Boss | The centre of a boss from outside: sets X and Y. |
| Pocket X (slot) | The centre of a slot between two walls in X. |
| Pocket Y (slot) | The centre of a slot in Y. |
| Web X | The centre of a web (a rib) in X, from outside. |
| Web Y | The centre of a web in Y. |
The path down to the start point is checked against the part before posting: a start point inside the part stops posting. Check that the probe is calibrated and that your control has the inspection macros before you run the program.
Patterns: copy operations
A pattern machines the same operations again at other places. The copies are made from the toolpaths you already have, so a hole pattern does not need a new drilling operation for every hole.
- Select the operations (Ctrl / Cmd + click in the list), then click Pattern on the MANAGE tab. Choose the type and its settings; the copies show in the view.

Figure 10. Step 1: a linear pattern of a pocket, with its copies in the view - Pattern type
- Operations
- Number of instances
- Spacing
- The copies in the 3D view
- Choose the operation order: all operations per copy, or each operation on every copy.
- Post. Every copy is checked against the part like any toolpath: a copy that would cut the part stops posting, with the copy and the place named.

Figure 11. Step 3: a copy that would cut the part stops posting - The reason, with the copy number and the place
| Type | What it does |
|---|---|
| Linear pattern | Copies along a line: number of instances, spacing and the direction angle from X. |
| Circular pattern | Copies around a centre: number of instances, the centre and the total angle (360° spreads them all the way round). |
| Mirror pattern | A mirror image across a plane (YZ or XZ) at a position. A mirrored copy cuts in the opposite direction: climb milling becomes conventional. |
| Duplicate pattern | Copies at offsets you list (X, Y), or the same moves under other work offsets. |

- Pattern type
- Centre X
- Total angle
- The copies in the 3D view
- Operations
- The operations the pattern copies. They must be next to each other in the list.
- Number of instances
- How many in total, the original included.
- Spacing
- The distance between two copies.
- Direction angle (from X)
- 0° copies along +X, 90° along +Y.
- Total angle
- The angle the copies are spread over.
- Copies by
- Offsets (X, Y) moves the toolpath; Work offsets keeps it and changes the work offset.

- Copies by
- Work offsets
- Operation order
Operations with rotary moves cannot be patterned. To machine several fixtures with the same operations, Multiple WCS offsets in Post process is usually simpler than a duplicate pattern.
Operation templates
A template keeps operations with their tools and all their settings, but not their geometry. Use it for work you repeat: a standard chamfer and deburr, a drilling sequence, the finishing of a family of parts.
- Select the operations and click Save as template. Give it a name and check the operations to keep. Templates are kept in this browser and can be exported as a file.

Figure 14. Step 1: Save as template - Template name
- The operations to keep
- Save template
- In another job, click From template and add the template to the setup. The tools are added to the tool list when they are missing. Pick the geometry of the new operations where they need it.

Figure 15. Step 2: From template - A saved template
- Add it to this setup
- Import a template file
NC programs: files with their own number, folder and post properties
An NC program posts chosen operations from one or more setups as one file. It has its own name, program number, comment, output folder, post and post properties, so the same CAM file can make, for example, a program for the first operation and another for the second.
- Click NC programs… on the POST tab and add an NC program. Enter its name and number and choose the output folder and the post. Add the operations and put them in order.

Figure 16. Step 1: the NC programs dialog - The NC programs of this file
- Name
- Program number
- Output folder
- Post processor
- The operations, in posting order
- Open Post properties to change settings for this program only (line numbers, comments, stop codes, probing). ↺ goes back to the post's own value. Then post the NC program.

Figure 17. Step 2: post properties for this NC program only - Post properties
- Each property; ↺ goes back to the post's value
- Program number
- Written as the program number (for example O1001). Empty uses the setup's Post process number.
- Output folder
- Where the file is saved when the browser allows choosing a folder; otherwise it goes to your downloads.
- Post processor
- The post for this program. Empty uses the setup's post. All setups of one NC program must use the same machine.
Post properties
| Setting | What it does |
|---|---|
| % at start and end | % on the first and last line (needed by many controls when the file is sent over a serial line). |
| Program number line (O number) | Writes the program number line (O number). |
| "Posted by" comment | Adds a comment that says the program was posted by WindFire CAM. |
| Stock size comment | Adds the stock size as a comment. |
| Tool list comments | Lists the tools at the top of the program as comments. |
| Line numbers | Writes N numbers on the lines. |
| First line number | The first N number. |
| Line number step | The step between N numbers. |
| Comments in capitals | Writes comments in capitals (some controls show only capitals). |
| Longest comment (0 = no limit) | Cuts comments to this length; 0 keeps them whole. |
| Stop code | The code a Manual NC stop writes (M0 by default). |
| Optional stop code | The code an optional stop writes (M1 by default). |
| Tool measuring cycle | The tool measuring cycle a Manual NC "Measure tool" writes. Empty: posting stops if the program asks for it. |
| Probing cycles | Which probing cycles are written. No probing: probing lines stop posting. |
| Probe on code | The code that switches the probe on before probing (empty when the control does not need one). |
| Probe off code | The code that switches the probe off after probing. |
Worked example: two parts, a stop to turn them over
The demo part, machined in two vises (G54 and G55) on a Fanuc-style mill, with a stop so the operator can check the parts.
- Open CAM with the demo part. Select the setup; in Post process enter 1001 as the program number and "Bracket - 2 vises" as the comment.

Figure 18. Example step 1: two vises, G54 and G55 - The operations
- Post process with two instances
- Tick Multiple WCS offsets, 2 instances, increment 1, order Preserve order. The line shows G54, G55.
- Select the last operation, click Manual NC and choose Stop (M0). Message: "Check the parts".

Figure 19. Example step 3: a stop to turn the parts over - The stop in the list
- Type: Stop (M0)
- Click Probe WCS: measure Single surface Z, start point over the middle of the part, 5 mm above its top. Work offset G54.
- Post. Nothing is blocked: the probe path and both parts are checked.
- The program starts with O1001 and the comment, probes the top face, machines the part in G54, then the same operations in G55, and ends with the stop.

Figure 20. Example step 6: the posted program - Program summary
- Program number, comment, G54 and G55, M0
O1001 (BRACKET - 2 VISES) ... G65 P9810 Z5. G65 P9811 Z0. ... G54 (FACE TOP) ... G55 (FACE TOP) ... (CHECK THE PARTS) M0 ... M30
Warnings and how to fix them
Posting stops when a program would damage the part or the machine, or when the control cannot do what was asked. The message says why.
| Message | What to do |
|---|---|
| This post writes the work offset only as a comment, so every copy would cut in the same place. More than one work offset can not be posted for this control. | Use a post that writes the work offset code (G54 ...), or post the parts as separate programs. |
| The work offsets run past G54.1 P48: use fewer instances or a smaller increment. | Lower the number of instances or the increment. |
| This post has no probing cycles for its control. Probing is posted for Fanuc-style controls with the standard inspection macros (G65 P9810 to P9814). | Use a Fanuc-style post with the inspection macros, or set Probing cycles in the NC program's post properties; otherwise remove the probing line. |
| Probing updates G54 to G59 only. Choose one of those work offsets. | Choose G54 to G59 in Work offset to update. |
| {op}: the probe would hit the part on its way down to the start point. Move the start point or raise its Z. | Move the start point so the probe comes down beside the part, or raise Start Z above the part. |
| {op} (copy {k} of {p}) cuts into the part (up to {d} deep at X{x} Y{y} Z{z}). Change the pattern or the operation. | Change the spacing, the angle or the centre so the copy lands where there is material to cut, or remove that operation from the pattern. |
| {p}: its operations must be next to each other in the list (an operation between them would be moved). | Move the operations so they are next to each other, or make one pattern per group. |
| {p}: operations with rotary moves can not be patterned. | Leave operations with rotary moves out of the pattern. |
| This post has no code for that coolant: choose another, or set it in the post. | Choose another coolant mode, or add the code in the post editor. |
| Pass through: enter the lines to write. | Type the lines, or delete the Pass through line. |
Tips
- Give every Manual NC stop a message: the operator sees it on the control screen.
- Prefer Preserve order for several work offsets unless the tool changes cost real time.
- Keep one NC program per clamping: the operator runs the right file for each side of the part.
- Export templates you depend on: they are kept in this browser only.