|
|
发表于 2014-4-2 11:36:43
|
显示全部楼层
# Post Name : MPGEN5X
# ?/ m4 T' b5 b# u2 k) A# Product : MILL/ V& {( X/ _7 _
# Machine Name : GENERIC FANUC) p% O5 \$ g% \4 V
# Control Name : GENERIC FANUC' D: y# Z% s3 g: t1 W" ^
# Description : GENERIC FANUC 5 AXIS MILL POST# p/ b1 w* _4 p- z; W
# Associated Post : NONE4 `) Z0 j0 Q& X% S) Z( L
# Mill/Turn : NO
. g1 E2 V7 b+ r3 l1 m/ u& K# 4-axis/Axis subs. : YES
6 K4 z* E$ T7 j9 M# 5-axis : YES
* b& k" E: ^8 o/ e8 C# Subprograms : NO" ^8 X# i; j9 ?" j
# Executable : MP V9.009 k5 R+ }& N( x) r/ s* R! _
## x) `' J* ]3 Z2 x
# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO9 [/ @) y6 |5 R& Z( T
# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.
7 F1 z; ~. s- S; P1 q#
7 e% q& D" ^7 P# k! i# --------------------------------------------------------------------------+ j. M* J% d( C
# Revision log:
/ {9 t: P. V- Y3 A2 V9 Y# --------------------------------------------------------------------------
$ l4 p8 A% {, w# Programmers Note:1 [4 a7 m( h# X9 z6 [# r' H
# CNC 12/20/01 - Initial post setup) R. Y. [$ [8 w% } s; @
#% S- p. s% c. [7 e% B$ W0 K
# --------------------------------------------------------------------------# c* D; J" @ x- e7 K
# Features: & m1 i a- f% B/ h7 i8 i( l
# --------------------------------------------------------------------------
?) R0 S5 r- T* C7 [( u# This post supports Generic 5 axis milling.! B# K4 J* h( e6 d
# It is designed to support the features of Mastercam Mill V9.0& p2 w2 C3 Z& c
#
2 I9 V: R8 C1 v: ^# Following Misc. Integers are used:, Q" }9 D+ G) @9 \/ k+ M
#( G1 u+ f% a8 c6 e* B7 z- T4 [2 h
# mi2 - Absolute or Incremental positioning at top level
' I& k/ @/ v" Z1 p: M# 0 = absolute
8 I: [; Q5 r0 `9 o# k2 J# 1 = incremental
. [3 y- W( g0 Q3 j* T% j m#. t1 h/ ~: ^8 q* A
# mi3 - Select G28 or G30 reference point return.
1 G- z& Q" v# p5 A# 0 = G28, 1 = G30; }7 V# e1 b5 d
#: S ?" r" S5 |$ e
# mi4 - Start initial primary rotary axis bias: [, J! I; H/ n. P3 J
# +/-999 represents start as close to limit as possible& H% C6 c7 \# b2 B. |) B
# Integer represents number of 180 degree shifts for non-nutating: h- g, \' x7 ?+ Q
# machine or 360 degree shifts for nutating machine
8 F% ` ]7 |, U; q/ _$ O# -999 = Low, 0 = Default, 999 = Hi
4 x- _1 U, O5 v7 g6 i+ y0 U#
b5 m3 q% \& a, t8 V3 @' P% J X# mi5 - Start initial secondary rotary axis bias2 I: _7 v: m- O
# +/-999 represents start as close to limit as possible
1 } h' ^3 T* f. C. R$ R2 r% K# Integer represents number of 360 degree shifts
) S' s, `8 P& Q- G9 j. S# -999 = Low, 0 = Default, 999 = Hi1 h1 b! x9 V/ O7 j, Q" r" b
#
" `0 e0 Z: q0 S( I h# mi6 - Add work shift position for rotation center programming
% F4 \! p# E. b# 0 = Output relative to work origin (toolplane)" ~4 y- o8 }$ Q4 I R8 o/ j) _
# 1 = Output relative to WCS origin (axis shifts)
8 X5 `0 z5 G" ], {! V, ~! ^6 B$ J" K1 v#( g: ^* u" X/ ?
# mi7 - Enable retract to and from linear limits. Disable for
6 G% R( W r3 Q' G" L$ m# internal work to prevent part collisions.. P; ?4 O: k$ B; Q' i. s
# 0 = Disable, 1 = Enable6 f% { N2 [- m3 N3 G
#: x3 O1 e- x6 x# W1 x* F; `
# mi8 - Safe retract/approach at toolchange.( B) V A! G/ Q. _* u& U5 _- D% ^2 l; e
# The tool retracts/approachs to limits from last path to current
) j3 F" t- O$ u# path or after/before a toolchange
1 Y7 a6 Z% q r& O7 M# (limits must be enabled, see 'use_stck_typ')7 V7 u* Q9 U. Z9 \6 h3 v) K& {
# 0 = Disable all toolchange retract/approach
# A) l% X4 f8 B2 k/ }& ]# 1 = Enable null toolchange retract/approach only
. w+ B: x- `3 H( e# 2 = Enable toolchange retract/approach only
) q s; D# i/ Y% P& g. K# 3 = Enable both toolchange retract/approach! M" E& Y( p: P& z
#2 C' w+ j0 O3 K7 J+ p+ S0 O
# mi9 - Nutating bias calculation.0 d6 s8 G: ]. _. u1 ~/ u! C
# 0 = Calculate angle bias to original vector & \& r2 K: U! L% k5 M
# 1 = Bias to positive Q; `" w" v. d( n7 L- s
# 2 = Bias to negative. H. I1 g' P) m$ M: H) r3 e. R' c
#
% S" b% H& R9 D" K2 X# mr1 - Retract/approach clearance distance at tool reposition
: s0 L) j/ N( k( P) D0 U#9 N4 s/ X- k8 j! \& N3 e
# mr2 - Right angle head toolpath conversion (not with nutating machine type).5 f. e1 s1 k/ Y* H3 {! H! C
# Right angle rotates secondary axis by degrees
8 d/ O% J$ g' i( h% B# The head may only be rotated perpendicular to the secondary axis0 a0 c6 M, `& P
# 0 = Off, Enter angle for amount of head rotation (RA = +/- 90)
& _) |3 o3 v4 ~9 Z% {8 b#, t/ l w* l5 y% u! Q5 U9 ~
# mr3 - Mill Plus G74 toolchange X axis home position
' x" e3 G- y2 x1 R#
& H8 x+ O" h& o- V# mr4 - Mill Plus G74 toolchange Y axis home position7 m9 Q6 Q' g5 C7 F1 V
#
- E+ V4 z' K0 C7 |( Q( }3 a# mr5 - Mill Plus G74 toolchange Z axis home position) P/ I' w$ M# w3 V$ q! Z
#
# n4 V& [) y. r- C#Canned text:
+ @; P: L, O1 ^& V# Entering cantext on a contour point from within Mastercam allows the
0 { ]3 x0 h3 V; G8 k# c4 \# following functions to enable/disable.; o0 y2 ?" Z6 M! Q5 _
# Cantext value:2 v2 }- X9 L4 q6 c$ s
# 1 = Stop = output the "M00" stop code
w* ?2 ^, \; K) [# 2 = Ostop = output the "M01" optional stop code
$ y, f2 }' z- q! ~9 X2 U* ]# 3 = Bld on = turn on block delete codes in NC lines g. W/ Z0 c9 u: f
# 4 = bLd off = turn off block delete codes in NC lines
/ K* _! R9 }0 }#
7 T" A0 C- h1 f/ U. s6 D- x#Layout:
$ v" C& n, @' H0 v# |# The term "Reference View" refers to the coordinate system associated
6 z* T, a% {, c5 \- _7 N# with the Top view (Alt-F9, the upper gnomon of the three displayed).
0 v$ s1 D. r3 m) g$ c T3 N#: g* A3 F6 K. X* a }1 r
#3 Axis Rotary (Polar) p' S( Z$ s1 t) V2 r
# Polar positioning is offered in Mastercam 3 axis toolpaths through the
{, l% ~* ?, z/ `) K7 }# rotary axis options dialog.
% Y; ]2 r( L6 `#
3 E2 ~! B8 l2 y#Axis Substitution:
. q. j6 W+ A2 r0 @5 `# m" s# Use the Rotary axis substitution by drawing the geometry flattened
( h- \& L5 f( T" K0 ^# z# u5 L0 z {# from the cylinder.# j# r4 M' o A9 i
#* E+ ? V% j0 r6 W. {" K
#Canned Cycle Drilling with Mill Plus:
, w; |( e5 S! {1 ?1 T9 H: \# The drilling cycle for the Mill Plus requires that a position is defined! `6 f* u4 Z% w/ E; s& @- k8 M
# where the part surface is expected. This information must be passed to
* t5 e& i6 K! b7 Y5 e$ e# the post by creating drill cycles in the following manner:
% N8 y8 F; p$ P' p7 N+ p4 ]# The difference of the top of stock location and the reference hieght is
2 j6 O; [ v2 K8 U# taken from the drill cycle definition (Gcode 81) and applied to repeat3 ?* O* ` B0 @
# drill positions.
g7 A5 A& S |# {7 |8 W: R5 @#
$ }6 V0 |3 {( ]! T& ]#Toolchange retracts:% y R$ ^ [/ z# h% r5 e$ P
# Mi8 is used to control retracts at tool changes and null toolchanges.. Z- ~& Z# z: h) h9 ?
# Mi8 for tool changes applies to the approach to the part to the retract
4 G6 ?" s1 z+ |% k" E0 J* x* }# from the part at the next toolchange (unless changed in a null tool
6 R x5 i% h0 l# change). Null toolchange control at a null toolchange uses the current
: b) a% c2 O6 F+ Q! C( {! R# setting and previous setting of mi8. Through a null toolchange, the. _( L% C0 Z' N. _% O. c
# setting of mi8 at the retract applies to the approach.
# c H$ q7 k! }. \( f) a+ g#
# g% S! t# L5 m$ B0 O! B#Additional Notes:
6 [& Y" A3 S) ?: ]; [# 1) G54 calls are generated where the work offset entry (workofs) are6 H) z6 i7 v. H# ^: l- m+ I
# 0 = G54, 1 = G55, etc. This post only uses work offsets.7 R4 Y2 L6 l( W$ ]
# 2) Metric is applied from the NCI met_tool variable.
5 U$ B7 S( E& x4 H# 3) Incremental mode calculates motion from home position at toolchanges./ h/ Y/ E# [0 L! A, k4 S+ j+ p
# The home position is used to define the last position of the tool
# o$ o1 r% W3 X) }9 p3 j9 g# for all toolchanges.
Q' N& ^# c" J& h" C, g# 4) The variable 'absinc' is pre-defined, set mi2 (Misc. Integer) for
1 l$ A+ W; b6 f" L# the absolute/incremental program output.) s" p2 ]6 A7 W3 Y; u0 F) l& u2 F
# 5) Always avoid machining to the center of rotation with rotary axis!
8 L# K* E. C# l/ J4 b% V. e( z# 6) Set the NCI precision to 7 places precision minimum in Mastercam. Set the$ @# v/ V+ o- [' {8 T- l9 j5 A
# 'Tool vecter length' in 5 axis tool paths as 1 unit minimum, longer is better# k0 t5 \1 m$ M9 s, D! i9 Y+ _
# to avoid rounding problems (output precision deviations). $ g$ m6 N& W$ n
# 7) The tool length is taken from the overall length entered with the tool
: d# I7 w. U, L/ X% q# O# definition in Mastercam.
- j ~# ], N& ?, {% m#
; q( l1 s! _/ n6 ]2 {( f T7 F#Axis Offsetting: |
|