RhinoCAM2020 PPG Decoded Guide
RhinoCAM2020 PPG Decoded Guide
RhinoCAM2020 PPG Decoded Guide
(PPG) Decoded
RhinoCAM 2020
Published: September 2020
MecSoft Corpotation
© Copyright 1998-2020
RhinoCAM 2020 PPG Decoded Guide
by MecSoft Corporation
User Notes:
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
________________________________
Contents 2
Table of Contents
Quick Start 3
Resource Guide 6
Introduction 7
1 What is
...................................................................................................................................
a Post-Processor? 8
2 What is
...................................................................................................................................
the PPG? 8
3 PPG Variables
...................................................................................................................................
& Macros 9
Index 53
2
3 RhinoCAM 2020 PPG Decoded Guide
Quick Start
RHINOCAM2020
What's New
What's New in RhinoCAM 2020
Watch the What's New in 2020 Webinar!
2. Select a document from the Learning Resources dialog to get started using the
module of your choice.
You can also select the Open Quick Start Files Folder button located at the bottom
of the dialog to open the Quick Start folder where the source files (start and
completed versions) are located.
Related Topics
Find More Resources
Resource Guide
Download this PDF Guide for a list of the available RhinoCAM Resources.
Introduction
This guide provides the basis for understanding how the PPG operates and how you can use it to
customize your posted g-code files. It uses a simple part file example with three toolpath
operations. Each toolpath is illustrated, examined and the resulting G-Code is color coded to the
portion of the PPG that controls it. Each section of the PPG is then explained and examined for
the part file example and its resulting G-Code.
The first half of the complete G-Code file (79 lines) is shown color coded to each PPG section
that controls it.
The portion of the G-Code sample file created for the 2½ Axis Profiling operation is shown.
The following PPG sections affect how the G-Code for this operation is defined:
General
Tool Change
Misc
Motion
Cutter Compensation
Cycles
The 2½ Axis Hole Profiling toolpath has a Clockwise spindle direction and a Convention (Up Cutting) Cut Direction. Two full 360
degree helical motions are created. At the bottom of the hole profile two 180 degree arc motions are defined.
The portion of the G-Code sample file created for the 2½ Axis Hole Profiling operation is
shown.
The following PPG sections affect how the G-Code for this operation is defined:
General
Tool Change
Misc
Motion
Helical/Spiral
Circle
Cycles
The Drill toolpath is set to Deep Drill (G83) and has an Approach Distance of 0.1 and a Step Increment of 0.1. Add Tool tip to Drill
Depth makes the total drill depth 0.32 (shown on the G83 line) when the stock is only 0.25.
The portion of the G-Code sample file created for the Drilling operation is shown.
The following PPG sections affect how the G-Code for this operation is defined:
General
Tool Change
Misc
Motion
Cycles
The General section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
The Start/End section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
Start Up Code
[STOCK_LENGTH_X] MecSoft CAM > MILL > Machining Job > Stock >
Length (L)
[STOCK_LENGTH_Y] MecSoft CAM > MILL > Machining Job > Stock >
Width (W)
[STOCK_LENGTH_Z] MecSoft CAM > MILL > Machining Job > Stock >
Height (H)
End Code
The Tool Change section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
[TOOL_DIA] MecSoft CAM > Tools > Create/Select Tool > Tool Dia.
[TOOL_LENGTH] MecSoft CAM > Tools > Create/Select Tool > Tool Length.
[TOOL_NUM] MecSoft CAM > Tools > Create/Select Tool > Tool Number.
[NEXT_NONMDL_X] The next X coordinate if different than the last (non modal).
Because Coordinate is checked under Model Output in the
General section, coordinates are only displayed if it is
different than the last coordinate value.
[NEXT_NONMDL_Y] The next Y coordinate if different than the last (non modal).
[NEXT_NONMDL_Z] The next Z coordinate if different than the last (non modal).
[TOOL_ADJST_REG] MecSoft CAM > Tools > Create/Select Tool dialog > Adjust
Register. Should be the same as Tool Number.
M6 Tool Change
[TOOL_DIA] MecSoft CAM > Tools > Create/Select Tool > Tool Dia.
[TOOL_LENGTH] MecSoft CAM > Tools > Create/Select Tool > Tool Length.
[TOOL_NUM] MecSoft CAM > Tools > Create/Select Tool > Tool Number.
[WORK_OFFSET_PREFIX] Work Offset Code from the Misc section of the PPG.
[WORK_OFFSET_NUM] MecSoft CAM > Machining Job > Work Zero > Work Offset
Register Number.
[NEXT_NONMDL_X] The next X coordinate if different than the last (non modal).
Because Coordinate is checked under Model Output in the
General section, coordinates are only displayed if it is
different than the last coordinate value.
[NEXT_NONMDL_Y] The next Y coordinate if different than the last (non modal).
[NEXT_NONMDL_Z] The next Z coordinate if different than the last (non modal).
[TOOL_ADJST_REG] MecSoft CAM > Tools > Create/Select Tool dialog > Adjust
Register. Should be the same as Tool Number.
M6 Tool Change
The Setup section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
The Spindle section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
[SPINDLE_SPD] MecSoft CAM > Tools > Create/Select Tool dialog > Feeds & Speeds or
Mop > Feeds & Speeds > Spindle Speed
[SPINDLE_ARC] MecSoft CAM > Tools > Create/Select Tool dialog > Feeds & Speeds or
Mop > Feeds & Speeds > Direction
The Feed Rate section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
The Motion section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
· In the Advanced Cut Parameters tab for the Mop, check the box for Perform Arc Fitting and
enter a value for Fitting tolerance (t). As a rule, this value should be 2 times the value you
entered for Tolerance on the Cut Parameters tab. If you need a tighter tolerance, adjust
these two values together.
Perform Arc Fitting on the Advanced Cut Parameters tab for for 2½ Axis Profiling
The Circle section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
[CIR_PLANE] The Plane Code defined in this section of the PPG (G17=XY Plane,
G18=ZX Plane and G19=YZ Plane)
[G_CODE] The G Code defined in this section of the PPG (G02 for a clockwise arc
and G03 for a counter clockwise arc)
Notes:
1. I, J and K represent the arc center as an offset distance from the arc start. This is because
in the PPG, Arc Center ( I, J, K ) section we have select Vector from Center to Start. If you
want the arc center posted in absolute coordinates, select the Absolute option.
2. Because the plane of the arc is XY, no Z or K values are shown for the arc start and end.
3. The arc start is located on line N017 because it is the end point of the last linear motion.
4. The red boxes are our added annotations and are not part of the G-Code sample.
The Helical/Spiral section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
[CIR_PLANE] The Plane Code defined in this section of the PPG (G17=XY Plane,
G18=ZX Plane and G19=YZ Plane)
[G_CODE] The G Code defined in this section of the PPG (G02 for a clockwise arc
and G03 for a counter clockwise arc)
Notes:
1. Notice that the X, Y start of the helix is one line N046 and the Z start of the helix is on line
N050.
2. Lines N051 and N052 are the two helical motions. Notice that each includes a Z
coordinate value.
3. Line N051 create the first full helix starting a Z0 and ending at Z0.125.
4. Line N052 create the second full helix starting a Z0.125 and ending at Z0.25.
5. Lines N053 and N054 are the two arc motions located at the base of the hole. Together
they form a complete circle which serves as a clean up pass.
The Multi Axis Motion section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
2. In the Cut Parameters tab set Cut Direction to either Climb or Conventional. Do not set it
to Mixed as this will disable Cutter Compensation. In our example we have it set to Climb.
3. Your first cut motion must be linear. In our example, on the Entry/Exit tab of the 2½ Axis
Profiling Mop, Entry Motions is set to Lines & Arcs and the Engage Motion is set to Linear.
Similarly, the Exit Motions is set to Lines & Arcs and the Retract Motion is set to Linear.
Entry/Exit is set to Lines & Arcs with Engage Motion set to Linear
4. In your tool definition make sure the Cutcom Register is set to the same value as the Tool
Number. Tool Number, Adjust Register and Cutcom Register should all be the same value.
5. Make sure to specify the cutter compensation value and the compensation register in your
controller.
The Cutter Compensation section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
[TOOL_CUTCOM_REG] MecSoft CAM > Tools > Create/Select Tool > Properties > Cutcom
Register. Should be the same as the Tool Number.
The Cut Motion Start/End section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
The Cycles > Deep Drill section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
Note: The Cycle Code shown below is actually one line! We separated it into two lines for
presentation purposes. Your G83 cycle code should be all on one line as shown in our part sample
below.
Cycle Code
[G_CODE] This will be the canned cycle code. Our part sample requires the
Deep Drill G83 cycle.
[CYCL_Z-DEPTH] MecSoft CAM > Drill > Cut Parameters > Drill Depth.
[CYCLE_Z+CLEAR] MecSoft CAM > Drill > Cut Parameters > Approach Distance.
[CYCLE_INC] MecSoft CAM > Drill > Cut Parameters > Step Increment.
[CYCLE_IPM] MecSoft CAM > Drill > Feeds & Speeds > Cut (Cf)
Notes:
1. Line N065 is the first deep drill cycle (G83). On this line Z is the Drill Depth of the hole, R
is the Z location of the Approach Distance value and Q is the Step Increment value.
2. Lines N066, N067 and N068 are the three remaining holes in the set. With Optimized
Cycle Output checked, only the change in X and Y are posted.
3. Line N069 cancels the canned cycle (G80).
The Misc section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
Notes:
1. To enable Coolant codes, make sure Coolant is set on the Feeds & Speeds tab of the Mop
(MecSoft CAM > Holes > Drill > Feeds & Speeds > Coolant).
2. Even if you have Coolant set for the Tool (MecSoft CAM > Create/Select Tool > Properties
> Coolant), it could be overwritten in the Feeds & Speeds tab of the Mop so see note #1
also.
The Variables section of the Post-Processor Generator (PPG) dialog for our haas-blog.spm post definition file.
Index -H-
Helical 43
-2- Helical Motions
Sample G-Code 40
2 Axis Hole Profiling 10 Understanding 40
Cut Parameters 19
Posted G-Code
2 Axis Profiling 10
19
-L-
Cut Parameters 16 Learning Resources 3
Posted G-Code 16
-A- -M-
Macros 9
About this Guide 7 Motion
Arc/Circle Example G-Code 36
Sample G-Code 37 Multi Axis Motion 42
Similar to Helix 37
Variables 37
-P-
-C- Post-Processor 8
Post-Processor Generator 8
Cutter Compension Circle 37
Sample G-Code 43 Cut Motion Start/End 46
Variables 43 Cutter Compensation 43
What to do first 43 Cycles 47
What to Know 43 Feed Rate 34
Cycles General 24
Sample Deep Drill Cycle 47 Helical/Spiral 40
Misc 50
-D- Motion 36
Multi Axis Motion 42
Drilling 10 Sample G-Code 24, 25, 28, 32, 34, 36, 37, 40,
Cut Parameters 21 43, 47, 50
Posted G-Code 21 Setup 32
Spindle 32
Start/End 25
-F- Tool Change 28
Variables 52
Feed Rate 32 Post-Processor Generator Dialog 24
Sample G-Code Control 34
Print Media Archive 6
Print Tool List 28
-G-
General
G-Code Control 24, 32
© 2020 MecSoft Corporation
Index 54
-Q-
Quick Start Guides 3
-S-
Sample G-Code
2 Axis Hole Profiling 19
2 Axis Profiling 16
Arc/Circles 37
Cutter Compensation 43
Drill Cycles 47
Drilling 21
File 12
Flood/Mist 50
Helical 40
Tool Change 28
Sample Toolpath 10
Set Post 10
Setup 10
Spindle
Example G-Code 32
Start/End G-Code Control 25
-T-
Tool Change
Example G-Code 28
First Tool Load Macro 28
Print Tool List 28
Tool Change Macro 28
Variables Used 28
-V-
Variables 9