|
|
发表于 2014-4-2 11:36:43
|
显示全部楼层
# Post Name : MPGEN5X1 q+ l8 X' z- {0 K' W8 I2 K
# Product : MILL1 {) F2 k6 b0 r# L
# Machine Name : GENERIC FANUC
& r0 k1 W0 n# i) @; l- e# Control Name : GENERIC FANUC0 g5 ?& Q' z1 T) A, W
# Description : GENERIC FANUC 5 AXIS MILL POST
% g3 v- j* M; a1 e- v; y0 ]9 s, r# Associated Post : NONE; {) N( ?$ }! J+ B3 e" |
# Mill/Turn : NO. {( L' R# n6 C3 a
# 4-axis/Axis subs. : YES) [6 t4 h' [- S4 c2 W2 ?* A& e. D
# 5-axis : YES7 Z7 E6 x' u, {0 O' A/ E+ ]1 t9 N5 q
# Subprograms : NO" ]9 i& Y8 h% |3 D# K! S1 T, M
# Executable : MP V9.00. |4 M" d! _# M6 t
#
; a) ]2 k- k- W# |( `/ e9 z# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO
% i# F% [: p5 |# _* w6 [+ c0 l# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.
1 a/ i: g& a. x+ e8 Y#0 m V: f$ o* ?- b6 [) i0 O
# --------------------------------------------------------------------------. Q) y- U7 G: w0 L. L
# Revision log:
, T& b) g0 V2 ?' u( [8 c& m# --------------------------------------------------------------------------
% D9 z5 c d2 N; O0 e6 a+ S9 P& k# Programmers Note:: \( D3 ~) t& V7 W+ g0 C
# CNC 12/20/01 - Initial post setup
0 v# ]# ?8 u# z! f4 Z" b* [#
% k, E) P% I7 |" N* _# --------------------------------------------------------------------------
) b9 E* K" T# C+ ^) s4 n) `# Features: $ e$ W0 C) F; S1 q4 W0 X2 l
# --------------------------------------------------------------------------
, ^, y: Q) Q+ a: F- F# This post supports Generic 5 axis milling.
/ L, W/ d3 V" u$ [* Q# It is designed to support the features of Mastercam Mill V9.0$ s$ `% h2 A) W: M3 A U$ V! l
#. s% z2 x6 z9 T3 d* T) H# _
# Following Misc. Integers are used:
( {0 w5 w9 x+ L3 l#
; N* n# v6 a a9 Q" n/ G# mi2 - Absolute or Incremental positioning at top level
3 c! ]: P1 }4 c, E7 I# 0 = absolute6 s/ q6 V) {3 G
# 1 = incremental
" A0 Q; ~$ I, Q# z#9 z9 c* K. k" c" b& P9 o
# mi3 - Select G28 or G30 reference point return.$ k: C5 H% e" a3 ]4 M3 l( ?
# 0 = G28, 1 = G30; j+ E* \ s( |/ C4 r/ K" j( N* H
#
3 f" ^- D8 R n, P i# mi4 - Start initial primary rotary axis bias$ V, l+ x, `6 l- N* I
# +/-999 represents start as close to limit as possible! ^1 C# Z t, {8 x& t# L
# Integer represents number of 180 degree shifts for non-nutating
: \1 k- w. O/ \& O+ ~# machine or 360 degree shifts for nutating machine
# v% H% t0 |6 T- G4 o. f# _# -999 = Low, 0 = Default, 999 = Hi) j; J- f, {6 p
#
# O/ b3 S$ H3 p0 Q5 _. y# f& e# mi5 - Start initial secondary rotary axis bias
5 R2 V P; Q6 Y1 y( R- _ W# +/-999 represents start as close to limit as possible! j% P* `5 F; k4 {, ^, t0 N+ q
# Integer represents number of 360 degree shifts
* {% \0 r# r0 j1 n5 P- X4 ~# -999 = Low, 0 = Default, 999 = Hi/ q2 j( B$ m& O. M3 b7 P( v
#" R0 X- U! u5 z8 c6 i" I5 d
# mi6 - Add work shift position for rotation center programming. b# m' e& o, B& [$ f
# 0 = Output relative to work origin (toolplane)) F6 ~9 K. n7 Z% Z+ T
# 1 = Output relative to WCS origin (axis shifts)0 W7 S; E/ y8 |/ e) L
#% N- N, S6 I* a" I* D- f8 ^
# mi7 - Enable retract to and from linear limits. Disable for
- w% Q" E$ S/ B# internal work to prevent part collisions.
3 p+ P: {- Y2 @5 }& F# 0 = Disable, 1 = Enable; k, m6 ^$ G- [! A' V* E" r
#
6 F5 U1 U6 f* ^# mi8 - Safe retract/approach at toolchange.0 ^3 {+ Z1 g2 F; d7 G& K
# The tool retracts/approachs to limits from last path to current7 W. Z- l* k3 k# F& G
# path or after/before a toolchange
% E) A& |$ B8 {& \( ^+ q! Y# (limits must be enabled, see 'use_stck_typ')
6 C# U, j' Q5 @; ~( U# 0 = Disable all toolchange retract/approach
2 X* n) k, ?- \% p) e1 k# 1 = Enable null toolchange retract/approach only
l( E6 l5 p* i9 Q# 2 = Enable toolchange retract/approach only
7 t; r% l7 Y9 [, D# 3 = Enable both toolchange retract/approach, M( }/ R! _0 Z: f9 U
#
+ q F" } Y- |( n6 P# mi9 - Nutating bias calculation.
8 z* N% ^0 w3 a& J& p9 [3 F0 |# 0 = Calculate angle bias to original vector
% x# c8 I1 A2 N( `# 1 = Bias to positive
4 q4 E" M# Z; C" t# 2 = Bias to negative+ U1 E. @0 B) ]5 c" z0 Q0 u
#
( @1 g" v4 I9 {# L5 u; D: b# mr1 - Retract/approach clearance distance at tool reposition
* T: ]$ y) W. D# D. d, s) r#. _0 ~8 a3 `6 ]; e
# mr2 - Right angle head toolpath conversion (not with nutating machine type).4 l* z8 ~, e' ]! N4 I5 }/ @5 W7 |- ]
# Right angle rotates secondary axis by degrees* G0 W2 l2 W1 Q
# The head may only be rotated perpendicular to the secondary axis
* [. W0 H$ f" x0 \# 0 = Off, Enter angle for amount of head rotation (RA = +/- 90)
) _+ y6 l" J2 X" t7 g9 h8 b, _( ~#+ ~4 e' B; m) r4 O$ M2 [
# mr3 - Mill Plus G74 toolchange X axis home position5 F% e5 B! ^: M% `$ k
#. b" G A! t& { c8 W: _
# mr4 - Mill Plus G74 toolchange Y axis home position2 A+ t- f2 b2 A$ n9 z; |- N
# I0 S3 a ]2 [9 z2 g
# mr5 - Mill Plus G74 toolchange Z axis home position1 k9 i, _8 t' {7 h" O
#9 O. o: K+ V& N0 B
#Canned text:
2 y" K! I! |# D% v# Entering cantext on a contour point from within Mastercam allows the
6 d$ }, y$ j2 j8 b* s0 w) ?3 W' M+ |# following functions to enable/disable.' {8 {/ ~% _4 r9 ]$ C" P
# Cantext value:0 W" J8 [7 A4 A0 o7 M% F
# 1 = Stop = output the "M00" stop code
. H, u4 b& A. |! L+ G2 [% M# w# 2 = Ostop = output the "M01" optional stop code
' F; H, g2 C i4 p* I# 3 = Bld on = turn on block delete codes in NC lines% t2 J7 Q$ f( c3 y) E4 O" W
# 4 = bLd off = turn off block delete codes in NC lines
( {( u5 D0 ^6 t1 e#1 ~, g0 a& {# {' m1 s* _0 D5 G
#Layout:" J% _+ h& n- H# m
# The term "Reference View" refers to the coordinate system associated/ @0 V( h' {. A4 W2 j! A+ k
# with the Top view (Alt-F9, the upper gnomon of the three displayed).# O9 o6 C( @: u# }: K' H
#% D8 W/ ~7 f0 O9 R! F! H* f9 C
#3 Axis Rotary (Polar)
2 d. G6 M# G$ D, T# Polar positioning is offered in Mastercam 3 axis toolpaths through the 3 r; z6 V$ o9 a# ^$ [
# rotary axis options dialog.
( ^1 n1 }1 G: R" M$ Y- V6 Q#9 `. [$ o1 P; E8 b& w$ Z
#Axis Substitution:! E: s) Y8 ^7 Y' h- L: r9 L
# Use the Rotary axis substitution by drawing the geometry flattened
9 t' @; W0 [, o% D1 q- N2 r5 B# from the cylinder.
& S- j- r! [' t" {! }#
0 a9 e5 r9 r* v$ ]8 g3 W: S3 X) V#Canned Cycle Drilling with Mill Plus:
, b( j `: H T; J# The drilling cycle for the Mill Plus requires that a position is defined
! W, h; b3 b. `: [6 \) L" ^$ _# where the part surface is expected. This information must be passed to5 h+ Q+ v/ S. t: f
# the post by creating drill cycles in the following manner:
1 D% U$ J( @4 Q! C$ U# The difference of the top of stock location and the reference hieght is9 H5 A5 ?+ w6 g. K: N
# taken from the drill cycle definition (Gcode 81) and applied to repeat+ Q6 w4 b( a& i) {
# drill positions.* ]" i' l L" L5 f" t1 h) I6 i$ t
#0 w: p9 }% ]& o
#Toolchange retracts:
% J- d( r9 V+ G, d& ~ a# Mi8 is used to control retracts at tool changes and null toolchanges.0 D4 ^% x$ p: l7 |. A9 V. b7 r
# Mi8 for tool changes applies to the approach to the part to the retract& I1 H5 T- G* ]" C9 ]3 ]2 \3 p H
# from the part at the next toolchange (unless changed in a null tool2 |! d# c! C' y8 {0 Y; O% D
# change). Null toolchange control at a null toolchange uses the current3 w" K+ ^. l( e2 v- i- ^" _! E
# setting and previous setting of mi8. Through a null toolchange, the
, f' R* o a' f. z# setting of mi8 at the retract applies to the approach.
# z5 q6 @5 P' b6 r% |: Y#
( {; D& Q" h: v8 l4 D- Q#Additional Notes:7 J b- C8 ^0 V
# 1) G54 calls are generated where the work offset entry (workofs) are) [# p R! Y; h2 x
# 0 = G54, 1 = G55, etc. This post only uses work offsets. C. E9 E4 m5 Z- {
# 2) Metric is applied from the NCI met_tool variable.: D5 a7 I5 `- N# z
# 3) Incremental mode calculates motion from home position at toolchanges.
+ G: J( r. D' R! }# The home position is used to define the last position of the tool
9 l$ s& o! F3 u0 b# m3 U# for all toolchanges.
: e' X5 r5 d% k! M! s# 4) The variable 'absinc' is pre-defined, set mi2 (Misc. Integer) for7 T0 d3 J% L# b- M O5 V; ?/ s
# the absolute/incremental program output.) Z' L W4 ~ H# q
# 5) Always avoid machining to the center of rotation with rotary axis!% ]2 u! j3 e9 r. `8 Q
# 6) Set the NCI precision to 7 places precision minimum in Mastercam. Set the- A) v- m( F; l4 t. z$ }
# 'Tool vecter length' in 5 axis tool paths as 1 unit minimum, longer is better
: G, g8 b* s" y# to avoid rounding problems (output precision deviations).
O5 b" [* Z( @! \* ?# 7) The tool length is taken from the overall length entered with the tool
. i! h9 q' ]7 ?7 h# definition in Mastercam.8 q2 \) ]( h, U$ ]* h: x# h
#2 q0 m+ X* f+ w
#Axis Offsetting: |
|