PBT mt11060 W
PBT mt11060 W
PBT mt11060 W
Workbook
[Date]
MT11060 Post Builder 3.5
Publication Number
mt11060_w NX 5
Manual History
Manual
Revision
Unigraphics
Version
Version 17.0
Version 18.0
Unigraphics NX
Unigraphics NX 2
NX 3
NX 4
Publication
Date
February 2001
May 2002
February 2003
March 2004
May 2005
July 2006
mt11060_w NX 5
Contents
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. B-3
. B-6
B-10
B-11
B-12
B-13
B-14
B-15
B-16
B-20
B-21
Lesson
Project Description
1-1
Project Description
The following flowchart indicates the process steps to follow for building a
post processor. You will use this flowchart as a guide throughout this project.
1-2
mt11060_w NX 5
Lesson
2-1
An easier approach to collating the data would be filling out a checklist that
would suffice for the majority of the information needed without having to
leaf through the various manuals numerous times. A checklist that can be
used as an aid to post processor development can be found in Appendix A
of this manual.
In this section of the workbook project, you will collect the necessary data
needed to build a post processor for a 3-axis machining center.
Step 1:
Step 2:
NOTE: Due to time constraints, most of the information needed has been
collected. Please fill in areas that are blanked.
The checklist allows you to collect information needed for post processor
development in an orderly and concise manner and can be used as a quick
reference when modifying or checking parameters at some future date.
2-2
mt11060_w NX 5
Lesson
3-1
3-2
mt11060_w NX 5
Step 2:
Step 3:
Note
The file post_commands_test will be used for testing your
post processor.
Step 4:
Using the checklist created from the previous lesson, specify the
units for output and type of machine.
Note
Currently, Post Builder supports 3-axis mills, 4 and 5-axis
machining centers, 2-axis lathes, Wire EDM and mill-turn
centers.
Step 5:
Specify axis travel limits, linear motion step size and traversal
feed rate.
Step 6:
Step 7:
Step 8:
3-3
Lesson
The Program and Tool Path section of the Post Builder allows for creation,
modification and customization of the Event Handlers for all Events which
occur by the use of five functions. These functions, are:
Program allows for the addition, modification and customization of Program
Start Sequences, Operation Start Sequences, Tool Path Sequence including
Machine Control, Motion and Canned Cycle sequences, Operation End
Sequences and Program End Sequences.
G Codes allow for the modification of the actual G code. M Codes allow for
the modification of the actual M code.
Word summary provides a summary of all word addresses and allows the
individual modification of the various elements used in data definition of
the address.
Word sequencing allows the customization of the order of output of words
which comprise a block of N/C data.
Custom Command allows for the addition of user created commands.
4-1
You will now use the Program and Tool Path section of the Post Builder
to modify program start and end, operation start and end and tool path
sequences.
4-2
Step 1:
Step 2:
Step 3:
Step 4:
mt11060_w NX 5
Lesson
Step 2:
Step 3:
Step 4:
Use the tool paths from the part post_commands_test to test and
verify the accuracy of the output.
Step 5:
NOTE: Only the tools used in the program being post processed
will be listed. In order to create the tool list, you MUST add the
command PB_CMD_create_tool_list to either the Start of Program
or the End of Program event marker depending on where the tool
list is to be output in your program. The Shop Doc template file
pb_post_tool_list.tpl residing in the postbuild/pblib/misc directory
is required for this to function.
Step 6:
5-1
Lesson
The N/C Data Definitions section allows for the definition of output formats
for N/C data. Data definitions are broken down into four sub classes. These
sub classes are:
Block which defines the format of the instruction data that appears as output.
Blocks are made up of word elements, each being defined by an address and
variable.
Address which defines the output format and the structure of the words that
comprise the instructions. Parameters associated with address are format,
maximum and minimum values, modality and leading and trailing characters.
Format for data output can be defined as real, integer or character string.
Parameters for Format vary according to the data type selected. Real numbers
are generally used for co-ordinate values; integers are used for registers and
character strings are used for commentary messages and special output.
Other Data Elements allow for the control of sequence number output, the
use of special characters for word separation, end of block and message
start and end codes.
6-1
You will now modify addresses and formats for the UGS Supermill.
Step 1:
Step 2:
6-2
Step 3:
Specify the sequence number start and increment, and any special
characters needed for word separator, end of block, comment start
and end, and decimal points if required.
Step 4:
Step 5:
Use the tool paths from the part post_commands_test to test and
verify the accuracy of the output.
mt11060_w NX 5
Lesson
The Output Settings section allows for the generation and control of output
used in a listing file. Items considered for output are X, Y and Z co-ordinates,
4th and 5th-axis angle and feeds and speeds. You can also control appearance
by specifying page length and width as well as specify the listing file
extension.
7-1
You will now set your listing file output preferences for the UGS Supermill.
Step 1:
Step 2:
Step 3:
Step 4:
Use the tool paths from the part post_commands_test to test the
output of the listing file.
7-2
mt11060_w NX 5
Lesson
Advanced Customization
Step 2:
8-1
Advanced Customization
EVENT spindle_fluctuation
{
UI_LABEL "Spindle Speed Fluctuation"
CATEGORY Mill Drill Lathe
PARAM spindle_speed_detect
{
TYPE o
DEFVAL "Inactive"
OPTIONS "Active","Inactive"
UI_LABEL "Detection Status"
}
}
Add the following custom command:
# custom command to activate the G26 and G25
# spindle speed fluctuation detection mode
#
uplevel #0 {
proc MOM_spindle_fluctuation {} {
global mom_spindle_speed_detect
MOM_set_seq_off
if {$mom_spindle_speed_detect == "ACTIVE" } {
MOM_output_literal "## SPINDLE FLUCTUATION ON ##"
MOM_set_seq_on
MOM_output_literal "G26"
} else {
MOM_output_literal "## SPINDLE FLUCTUATION OFF ##"
MOM_set_seq_on
MOM_output_literal "G25"
}
}
}
Step 4:
Use the tool paths from the part post_commands_test to test and
verify the accuracy of the output.
Tip
Remember to modify an operation and include the User
Defined Event which you just created. Add the new UDE to
both the Start and End post command.
Step 5:
8-2
mt11060_w NX 5
Advanced Customization
Note
Create a new format in NC DATA definitions.
Change the format for the new word to the new 2.1 format
Copy the existing cycle tap block and rename the copy to
cycle_tap_rigid
Step 6:
Create and add the following UDE which sets the various options
for coolant thru the spindle.
Add the following Tcl code to the ude.cdl file
# the following code sets the mom_coolant_mode for
# three levels of thru the spindle coolant.
# The special M code is in the format of:
# Low pressure M51 M100
# Medium pressure M51 M101
# High pressure M51 M103
# This M code is adding to the rapid spindle move
#
EVENT coolant_thru_spindle
{
UI_LABEL "Coolant Thru Spindle"
CATEGORY MILL DRILL
8-3
Advanced Customization
PARAM command_status
{
TYPE o
DEFVAL "Active"
OPTIONS "Active","Inactive"
UI_LABEL "Status"
}
PARAM thru_pressure
{
TYPE o
DEFVAL "Low"
OPTIONS "Low","Medium","High"
UI_LABEL "Thru Spindle Pressure"
}
}
8-4
mt11060_w NX 5
Appendix
A Checklist of Information
This portion of the Appendix contains a checklist that can be used to record
information needed to create a postprocessor.
The checklist which follows has been partially completed to save time. You
will notice that a checkmark precedes some of the boxes. This indicates that
the particular option does exist.
Checklist of information used to create a post processor
Machine Tool Type
Description of machine: UGS Supermill
3-axis mill
4-axis mill
5-axis mill
2-axis lathe
4-axis lathe
Mill / turn center
Wire EDM
Other type
If 4-axis mill 4th axis is;
Positioning
Contouring
Maximum Axis Travels:
X-axis: 39.37 Y-axis: 39.37 Z-axis 19.685
Other:___________________________________________
Word Formats
XYZ:___________
IJK:____________
UVW:___________
A-1
Checklist of Information
Decimal Point :
Yes
No
Drop leading zeros:
Yes
No
Drop trailing zeros:
Yes
No
Minimum resolution for output: .0001 inches
Maximum allowable Sequence Number: 99999
Miscellaneous Defaults
Inch
Metric
Absolute
Incremental
Rapid Position Feed Rate Value: 1575"/min X,Y; 1575"/min Z
Circular Interpolation Parameters
Quadrant Limited
Full Circle
Maximum radius for circular interpolation: 999.9999 inches
Minimum radius for circular interpolation: .010 inches
A-2
mt11060_w NX 5
Checklist of Information
A-3
Checklist of Information
mt11060_w NX 5
Checklist of Information
A-5
Checklist of Information
A-6
mt11060_w NX 5
Checklist of Information
IJK:____________
UVW:___________
A-7
Checklist of Information
Inch
Metric
Absolute
Incremental
Rapid Position Feed Rate Value: _________ X,Y; ___________ Z
Circular Interpolation Parameters
Quadrant Limited
Full Circle
Maximum radius for circular interpolation: _________inches
Minimum radius for circular interpolation: _________inches
Arc center offset designation:
I,J,K is a signed vector, arc start to circle center Inch
I,J,K is a signed vector, circle center to arc start
I,J,K is an unsigned vector, arc start to circle center.
I,J,K is absolute circle center co-ordinates
radius value
Other
Preparatory Functions (G Functions)
G00 Positioning
G01 Linear interpolation
G02 Circular/Helical Interpolation CW
G03 Circular/Helical Interpolation CCW
mt11060_w NX 5
Checklist of Information
A-9
Checklist of Information
mt11060_w NX 5
Checklist of Information
M30 Rewind
M5 1Thru Spindle Coolant System
M100 Low Pressure Thru Spindle Coolant
M101 Medium Pressure Thru Spindle Coolant
M103 High Pressure Thru Spindle Coolant
Character for Rewind Stop Code: _________
A-11
Checklist of Information
A-12
mt11060_w NX 5
Appendix
This portion of the Appendix contains a the technical specification for the
UGS Supermill Machining Center. These specifications will be used to create
the post processor for the project exercises.
The UGS Supermill is a high performance, high speed 3-axis vertical
machining center with an optional indexable head. A 5-axis version for
complex molds and impellers is also available.
The design of the Supermill incorporates a rigid frame and self cooling high
speed spindle that aids in high speed machining applications. The Supermills
modular concept enables its use in numerous applications.
B
UGS Corp., All Rights Reserved
B-1
UGS Supermill
Technical Description
Machine Structure
The Supermill is a standard "bed" type machine, which allows for machine
rigidity and stability. The design of the Supermill allows for excellent
visibility of the actual working area. The bed, table, vertical walls and guides
of the X-axis are comprised of cast iron. The Y and Z guides are manufactured
from precision ground steel.
Machine bed and X, Y, Z axis slides
The machine bed is built from fixed box-shaped structures designed with
transverse baffles for rigidity. This adds to the general stability of the
machine. The machine guideways incorporate rolling bearing mechanisms.
Axis movements are accomplished with recirculating ball screws, driven by
brushless dc motors. The X and Y-axis have direct motor screw couplings;
the Z-axis is belt driven. Glass scales are used for accurate positioning. All
transducers are metal clad and are protected against dust and coolant. They
are also connected to a filtered compressed air system to further aid in the
reduction of contaminants.
Machine temperature control system
In order to minimize thermal drifts and maintain accuracy when machining
for extended periods, heat exchangers are placed in strategic locations. These
heat exchangers dissipate heat to a continuously circulating liquid controlled
by a standalone refrigeration unit.
Machining work area
The machining work area, or work piece table, is made of cast iron, for
thermal stability, and is equipped with T-slots for work piece clamping.
Automatic tool changer
The automatic tool changer is a chain operated device that can store up to 180
tools. Tool selection is bi-directional, that is, the chain will move clockwise or
counterclockwise to the next tool selected, which ever direction is shorter. The
tool changer will automatically detect a tool in a pocket and will also monitor
tool life through software incorporated in the CNC.
Lubrication systems
Key components including slides and spindle are constantly lubricated by
means on an automatic lubricating system regulated by a timing mechanism.
These components are monitored by sensors, which will activate alarms when
lubrication is low.
UGS Corp., All Rights Reserved
B-3
Coolant System
The coolant system dissipates heat generated by cutting through a mixture
of air and non-toxic vegetable oil. The air/oil mixture is regulated by control
valves and a nozzle system which can be directed to the cutting tool and
or work piece. Coolant on and off is controlled by the use of M functions or
manual intervention by the operator.
Drives and axis motors
All drive motors are AC and are brushless. The electronic interface between
the drives and CNC is digital.
Electrical cabinet
The electrical cabinet is self contained and mounted on the left side of the
machine and is equipped with a forced ventilation cooling system. The
cabinet meets all NEMA regulations. The cabinet is also equipped with
meters to monitor total service hours, total spindle hours, contains internal
service lighting and is provided with a 120V AC outlet.
Safety guards
The machine is completely enclosed by safety guards. Two front side sliding
doors allow for easy loading and unloading of work pieces. The doors are
equipped with electromechanical safety locks. The doors can be opened only
after the machine spindle comes to a complete stop. Inspection cycles, such as
probing can be performed with the doors open. Any operation involving the
rotation of the spindle prevents the doors from being opened.
Chip Removal
The design of the machine allows chips to move towards the front of the
machine into a removable chip container. The chip container can be removed
while the machine is operating.
UGS Supermill Computer Numerical Control
Includes the following:
XP Professional operating system
CPU Pentium I 3.500 GHz
19" graphic video terminal
512 MB RAM memory
800 GB hard disk memory
1.44 MB floppy disk drive
Alphanumeric keyboard
Operator remote pushbutton pendent including hand wheel and displays
Ethernet board
Multi-processor CPU architecture
Digital controls for axis drives
Diagnostics and help-on-line.
B
B-4
mt11060_w NX 5
TECHNICAL DATA
Linear axes
Movement
:X
Supermill
1000 mm (39.37")
1000 mm (39.37")
500 mm (19.685")
Z
Positioning accuracy
Max. rapid speed X - Y
Z
Number of tool pockets in changer
Work piece table
Standard table dimensions
Max load on table
Longitudinal T-slots: number
width
Installation requirements
0.005 mm (.0002")
40 m/min (1575"/min)
40 m/min (1575"/min)
180 Maximum
1500 x 1500 mm (59" x 59")
2500 Kg. ( 1140 lbs.)
5
18 mm (.708")
440 V 60 Hz
Power supply
20 psi + 10%
Air supply
Machine weight
12000 kg (5454 lbs.)
Floor space (excluding command panel
3.9 x 3.9 m (12.8 x 12.8 ft)
and spindle cooling device)
Overall height
3.2 m (10.5 ft)
Environmental conditions
from 10 to 40 5C
Temperature
Relative humidity
from 10% to 80%
B
UGS Corp., All Rights Reserved
B-5
Milling Options
The following three milling options are available for the Supermill.
3-Axis Milling 24000 RPM
Includes the following:
High frequency spindle, 220-mm. dia. with air/oil lubricated ceramic ball
bearings and automatic tool clamping/unclamping system.
B
B-6
mt11060_w NX 5
The tool holder clamping on the spindle consists of a mechanical device with
Belleville washers; a pneumatic piston unclamps the tool holder. The spindle
is housed on the vertical slide (Z-axis).
Spindle drive.
Cooling system.
TECHNICAL DATA
Max. spindle rotation speed
Continuous power
Constant power range
Spindle lubrication
Tool holder
Spindle nose-table max distance
Spindle axis machine bed minimum
3-axis milling
24000 RPM
2.4 kW
6000 - 24000 RPM
air-oil
CAT 50
760 mm
230 mm.
B
UGS Corp., All Rights Reserved
B-7
3-Axis milling with indexable head (4th and 5th axis) 30000 RPM
This option allows for tool orientation, which will increase the work area,
reduce tool lengths and increase cutting speeds with spherical tools.
Includes the following:
High frequency spindle, 150 mm. dia. with air/oil lubricated ceramic ball
bearings and automatic tool clamping /unclamping system.
The tool holder clamping on the spindle consists of a mechanical system with
Belleville washers; a pneumatic piston unclamps the tool holder.
TECHNICAL DATA
C-axis movement
C-axis pitch
B-axis movement
B-axis pitch
Max. spindle rotation speed
Continuous power
Constant power range
Spindle lubrication
Tool holder
Spindle nose-table max distance (spindle
in vertical position)
280 -380 mm *
Spindle axis - machine bed min. distance
(*distance differs along with
(spindle in vertical position)
C-axis position)
5-Axis Continuous Milling Option 28000 RPM
This option enables continuous orientation of the tool in the space which
allows for undercut machining, surface contouring, convex surface machining
with standard end mills, tool length reduction and increased cutting speeds
with spherical tools.
mt11060_w NX 5
High frequency spindle 120 mm. dia. with air/oil lubricated ceramic ball
bearings and automatic tool clamping /unclamping system. The tool
holder clamping on the spindle consists of a mechanical system with
Belleville washers; a pneumatic piston unclamps the tool holder.
TECHNICAL DATA
B axis movement
C axis movement
B and C axis max. rotating speed
Max. acceleration
Max. spindle rotating speed
Continuous power
Constant power range
Tool holder
Max. tool dia. in milling
Spindle nose table max. distance
(spindle in vertical position)
Spindle axis - machine bed min. distance
(spindle in vertical position)
B
UGS Corp., All Rights Reserved
B-9
B
B-10
mt11060_w NX 5
Chip Conveyor
CC SM2004
The automatic chip conveyor option allows the continuous removal of chips
and is operated directly by the CNC. This option replaces the standard chip
conveyor.
B
UGS Corp., All Rights Reserved
B-11
B
B-12
mt11060_w NX 5
Measurement options
DPM SM2005 Digital probe measuring system
Included in this option are the following:
B
UGS Corp., All Rights Reserved
B-13
B
B-14
mt11060_w NX 5
B
UGS Corp., All Rights Reserved
B-15
Programming Functions
The following programming functions are standard with the Supermill 2004
CNC controller.
Preparatory Functions (G Function)
Up to three multiple G functions can be included in the same block of
information.
The following G functions are recognized by the Supermill:
G00Rapid Positioning
G01Linear positioning (interpolation) at programmed feed rate
G02Circular/Helical interpolation CW
G03Circular/Helical interpolation CCW
Circular interpolation can be performed in the XY, XZ or YZ plane.
Along with X, Y, Z departures, parallel axis used for interpolation
are I, J, and K. I represents the X axis signed distance from the
start point to the center of the arc; J represents the Y axis
signed distance from the start point to the center of the arc; and K
represents the Z axis signed distance from the start point to the
center of the arc. I, J and K are always the incremental distance.
In place of I, J, or K, R with the appropriate radius value can also
be used. When the arc specified is greater than 180 degrees, the
radius value R is specified with a negative value.
G04 Dwell
G05 High speed machining cycle (optional)
G12.1 Polar co-ordinate interpolation mode (optional)
G13.1 Polar co-ordinate interpolation mode, cancel (optional)
G17 XY plane selection
G18 XZ plane selection
G19 YZ plane selection
G20 Input in inch
G21 Input in metric
G25 Spindle speed fluctuation detection off
mt11060_w NX 5
M03Spindle On CLW
UGS Corp., All Rights Reserved
B-17
M04Spindle On CCLW
M05Spindle Off
M06Tool change
M07Coolant On, Flood
M08Coolant On, Mist
M09Coolant Off
M51Thru Spindle Coolant System
M100Low Pressure Thru Spindle
M101Medium Pressure Thru Spindle
M103High Pressure Thru Spindle
M30Rewind
Spindle Speed Function (S function)
The spindle speed can be controlled by specifying a value following the
address S. Maximum number of digits is five. Spindle speed range is based on
spindle option package. See individual specifications for speed range.
Tool Selection Function (T function)
Tools can be selected on the machine by specifying a 4-digit numerical value
following the T address code. When a move command and a T code are
specified in the same block, simultaneous execution of the move command
and the tool change occurs. Codes specifying tool offset values are grouped
with H codes for tool length offset and D codes for cutter compensation
offset. Maximum values for H codes and D codes are 999. An M06 command
performs the actual tool change.
Feed Functions
The feed function controls the feed rate of the cutting tool.
The Rapid Traverse feed function moves the tool at a rapid traverse rate
when command to position by G00.
The Cutting feed function moves the tool at a programmed cutting feed rate.
Acceleration and deceleration are automatically applied when the tool starts
and ends its movement.
Cutting feed rate is applied by a number following the F word address.
Word Address and decimal point programming
Numerical values can be entered with a decimal point. Decimal points can be
specified for the following addresses:
B
B-18
mt11060_w NX 5
X, Y, Z, I, J, K, U, V, W, B, C, R and F.
Some G codes allow for decimals (Polar co-ordinate interpolation)
Fixed word lengths are as follows:
Inch 3.4 for X, Y, Z, I, J, K, U, V, W, B, C, R
Metric 4.3 for X, Y, Z, I, J, K ,U, V, W, B, C, R
Spindle 5 digits
Feed rate:
Inch 3.4
Metric 4.3
B
UGS Corp., All Rights Reserved
B-19
MILLING ACCESSORIES
Accessories for CAT 50 Tool Holder
Includes the following:
balanced tool holder enabling the clamping of tools with cylindrical shanks.
extended balanced tool holder, enabling the clamping of tools with extended
length cylindrical shanks.
tool holder for Weldon type tools.
Sets of 7 collets (diam. 4 mm, 6 mm, 8 mm, 10 mm, 12 mm, 16 mm, 20 mm).
Sets of 4 collets (diam. 1 mm, 2 mm, 4 mm, 6 mm).
Spanner wrenches for various collets.
Tool holder support for tool assemblies.
Optional Spindles
UGSSM2005/24-24
24 kW- 24000 RPM high frequency spare spindle for 3-axis option.
UGSSM2005/20-30
20 kW - 30000 RPM high frequency spare spindle for indexable head option.
UGSSM2005/6-28
6/7,5 kW - 28.000 RPM high frequency spare spindle for 5-axis option.
B
B-20
mt11060_w NX 5
Services
Installation
Includes machine installation and acceptance at purchasers facilities.
The Supermill requires special foundations per drawing number
SM2005HS-01. These foundations to be built at purchasers expense
according to aforementioned drawing specifications.
Installation of the Supermill can be performed 4 weeks after the foundation
has been poured.
Purchaser provides all necessary pneumatic, power and water supplies.
Training
UGS will provide 40 hours of training, at the Customers site, on the use and
programming of the UGS Supermill CNC controller.
For custom training courses, please contact UGS.
Shops training
Please check Educational Services schedules for the nearest location and
dates Shops classes. Special classes can be arranged on site.
B
UGS Corp., All Rights Reserved
B-21