WindFire CAMWindFire ERP Open CAM

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.

No section matches your search.

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.

The MANAGE tab with the Program and Probing groups
Figure 1. The MANAGE tab with the Program and Probing groups
  1. MANAGE tab
  2. Manual NC
  3. Pattern
  4. Save as template
  5. Probe WCS
ToolUse it to
Post processname and number the program, add a comment, machine several parts with work offsets
Manual NCadd a stop, a comment, a dwell, a coolant change, a tool change or your own lines between operations
Probe WCSmeasure the part with a probe and set the work offset (or check a size) at the start of the program
Patterncopy operations along a line, around a centre, as a mirror image or to other work offsets
Save as templatekeep 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).

  1. Select the setup in the CAM tree.
    Step 2: the Post process section of the setup
    Figure 2. Step 2: the Post process section of the setup
    1. Post process section with its "?"
    2. Program name/number
    3. Program comment
    4. Multiple WCS offsets
  2. Scroll to Post process. Enter the program name or number and, if you like, a comment such as the part number or the fixture.
  3. 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.

  1. Set the setup's work offset (for example G54) and make the operations as usual.
  2. 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.
    Step 2: Multiple WCS offsets switched on
    Figure 3. Step 2: Multiple WCS offsets switched on
    1. Multiple WCS offsets
    2. Number of instances
    3. WCS offset increment
    4. Operation order
    5. The work offsets that will be used
  3. Choose the operation order (see the table and the diagram).
  4. Post. The program changes the work offset before each copy and goes back to the safe height in between.
    Step 4: the posted program machines every part
    Figure 4. Step 4: the posted program machines every part
    1. Program summary
    2. 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.
Preserve orderA G54B G54C G54A G55B G55C G55 Order by operationA G54A G55B G54B G55C G54C G55 Order by toolA G54B G54A G55B G55C G54C G55 A = roughing (T1), B = rest machining (T1), C = drilling (T2); G54 / G55 = the two partsB always comes after A on the same partOrder by tool: 2 tool changes instead of 4 with Preserve order
The three operation orders for two work offsets
OrderWhat it does
Preserve orderAll operations on the first part, then all operations on the next part. The safest choice and the default.
Order by operationEach operation on every part before the next operation. Fewer tool changes, more moves between the parts.
Order by toolNeighbouring 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.

  1. 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.)
    Step 1: Manual NC added after the selected operation
    Figure 5. Step 1: Manual NC added after the selected operation
    1. Manual NC button
    2. The new line in the operation list
    3. Its panel
  2. Fill in its panel. The message is written as a comment, so the operator sees why the machine stopped.
    Step 2: the type and the message of a Manual NC line
    Figure 6. Step 2: the type and the message of a Manual NC line
    1. Type
    2. Message (written as a comment)
    3. Its place in the list
  3. Post. The line is written in the form the post uses for the type.
TypeWhat is written
CommentA 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.
DwellA pause of the given number of seconds (G4 on most controls).
Force tool changeThe next operation writes the full tool change sequence again, even when it uses the same tool: retract, tool change, length offset.
Pass throughYour lines, written exactly as typed, without any check.
CoolantThe coolant code the post uses for the chosen mode (flood, mist, air, through spindle or off).
Measure toolThe tool measuring cycle set in the NC program's post properties (for example a tool setter cycle). Without one, posting stops and says so.
Pass through: lines written exactly as typed
Figure 7. Pass through: lines written exactly as typed
  1. Type: Pass through
  2. The lines
  3. 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.

Part Clearance height Protected move Start point Measuring move Measured surfaceThe protected path is checked against the part before posting.
Probe WCS: rapid to the clearance height, protected move to the start point, measuring move to the face
  1. Click Probe WCS on the MANAGE tab. Choose what to measure and enter the probe tool number and the stylus ball.
    Step 1: a Probe WCS line and its settings
    Figure 8. Step 1: a Probe WCS line and its settings
    1. Measure
    2. Probe tool number
    3. Clearance height (Z)
    4. Start X
    5. Start Z (protected move)
    6. Work offset to update
  2. Enter the clearance height and the start point above the feature (program coordinates, from the work origin), then the nominal size where asked.
  3. For a size check use Probe geometry instead, with a tolerance and, if you like, printed results.
    Step 3: Probe geometry checks a size instead of setting the work offset
    Figure 9. Step 3: Probe geometry checks a size instead of setting the work offset
    1. Measure
    2. Tolerance
    3. 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.
MeasureWhat it does
Single surface XOne face in X: sets X of the work offset.
Single surface YOne face in Y: sets Y.
Single surface ZThe top face: sets Z.
BoreThe centre of a hole from its wall: sets X and Y.
BossThe 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 XThe centre of a web (a rib) in X, from outside.
Web YThe 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.

LinearCircularMirrorDuplicateOrange = the original operation, blue = the copies
The four pattern types
  1. 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.
    Step 1: a linear pattern of a pocket, with its copies in the view
    Figure 10. Step 1: a linear pattern of a pocket, with its copies in the view
    1. Pattern type
    2. Operations
    3. Number of instances
    4. Spacing
    5. The copies in the 3D view
  2. Choose the operation order: all operations per copy, or each operation on every copy.
  3. 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.
    Step 3: a copy that would cut the part stops posting
    Figure 11. Step 3: a copy that would cut the part stops posting
    1. The reason, with the copy number and the place
TypeWhat it does
Linear patternCopies along a line: number of instances, spacing and the direction angle from X.
Circular patternCopies around a centre: number of instances, the centre and the total angle (360° spreads them all the way round).
Mirror patternA mirror image across a plane (YZ or XZ) at a position. A mirrored copy cuts in the opposite direction: climb milling becomes conventional.
Duplicate patternCopies at offsets you list (X, Y), or the same moves under other work offsets.
A circular pattern around a centre
Figure 12. A circular pattern around a centre
  1. Pattern type
  2. Centre X
  3. Total angle
  4. 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.
Duplicate pattern by work offsets
Figure 13. Duplicate pattern by work offsets
  1. Copies by
  2. Work offsets
  3. 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.

  1. 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.
    Step 1: Save as template
    Figure 14. Step 1: Save as template
    1. Template name
    2. The operations to keep
    3. Save template
  2. 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.
    Step 2: From template
    Figure 15. Step 2: From template
    1. A saved template
    2. Add it to this setup
    3. 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.

  1. 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.
    Step 1: the NC programs dialog
    Figure 16. Step 1: the NC programs dialog
    1. The NC programs of this file
    2. Name
    3. Program number
    4. Output folder
    5. Post processor
    6. The operations, in posting order
  2. 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.
    Step 2: post properties for this NC program only
    Figure 17. Step 2: post properties for this NC program only
    1. Post properties
    2. 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

SettingWhat 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" commentAdds a comment that says the program was posted by WindFire CAM.
Stock size commentAdds the stock size as a comment.
Tool list commentsLists the tools at the top of the program as comments.
Line numbersWrites N numbers on the lines.
First line numberThe first N number.
Line number stepThe step between N numbers.
Comments in capitalsWrites comments in capitals (some controls show only capitals).
Longest comment (0 = no limit)Cuts comments to this length; 0 keeps them whole.
Stop codeThe code a Manual NC stop writes (M0 by default).
Optional stop codeThe code an optional stop writes (M1 by default).
Tool measuring cycleThe tool measuring cycle a Manual NC "Measure tool" writes. Empty: posting stops if the program asks for it.
Probing cyclesWhich probing cycles are written. No probing: probing lines stop posting.
Probe on codeThe code that switches the probe on before probing (empty when the control does not need one).
Probe off codeThe 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.

  1. 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.
    Example step 1: two vises, G54 and G55
    Figure 18. Example step 1: two vises, G54 and G55
    1. The operations
    2. Post process with two instances
  2. Tick Multiple WCS offsets, 2 instances, increment 1, order Preserve order. The line shows G54, G55.
  3. Select the last operation, click Manual NC and choose Stop (M0). Message: "Check the parts".
    Example step 3: a stop to turn the parts over
    Figure 19. Example step 3: a stop to turn the parts over
    1. The stop in the list
    2. Type: Stop (M0)
  4. Click Probe WCS: measure Single surface Z, start point over the middle of the part, 5 mm above its top. Work offset G54.
  5. Post. Nothing is blocked: the probe path and both parts are checked.
  6. 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.
    Example step 6: the posted program
    Figure 20. Example step 6: the posted program
    1. Program summary
    2. 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.

MessageWhat 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.

Related topics