|
|
发表于 2014-4-2 11:36:43
|
显示全部楼层
# Post Name : MPGEN5X
8 F+ [! U( p3 g F& l# Product : MILL9 X( e/ ]- A2 g% b& @3 h
# Machine Name : GENERIC FANUC5 E L( X. f& j& E& T
# Control Name : GENERIC FANUC/ ]* e5 Q) H* l- v& ~9 ?4 p, B! z
# Description : GENERIC FANUC 5 AXIS MILL POST
, C+ g& U. c w. T# Associated Post : NONE
7 y7 b# i0 M* o) F' ^0 t: j# Mill/Turn : NO! x4 i! ?9 k$ E6 _, C% t6 F
# 4-axis/Axis subs. : YES
$ G6 K5 Y7 e3 n, T( v4 { n0 h2 r6 ]# 5-axis : YES
: N0 U) B- \" \5 j' r/ y" h; G6 T# Subprograms : NO' R" B# o& h/ {6 T
# Executable : MP V9.002 [' z+ l5 l1 `+ \
#. u# @* L7 `! [/ |( ~+ A
# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO
! B P' D! r/ l6 t, E& Z# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.
K2 Z0 s' |( O#
$ w2 p9 l6 a8 X/ X& a& V, a& ]( x# --------------------------------------------------------------------------
& ~: S9 ?3 W' ]' a# Revision log:
9 L/ g! ^, P( {" ?( R, d1 t# --------------------------------------------------------------------------( V& G4 D2 E P) T
# Programmers Note:2 k& k& m- L! s: y5 {4 _% E
# CNC 12/20/01 - Initial post setup
) x2 B* A2 c3 D- w0 E#
# A; m2 z6 @6 q; x% s7 z# v$ r" Q; y# --------------------------------------------------------------------------7 s; b2 i3 x" D
# Features:
; z( X* N4 ~2 P3 c2 c# --------------------------------------------------------------------------
6 x8 b/ ^) V! {& O+ [# This post supports Generic 5 axis milling.* ]* b6 J# O0 d' S
# It is designed to support the features of Mastercam Mill V9.0/ D- f5 L" [5 j w5 U
#
# D. l" R7 F: Z; {6 z# Following Misc. Integers are used:
4 f( Z6 v/ R* i5 J* |3 J#
5 {- W$ e2 P2 @; @# mi2 - Absolute or Incremental positioning at top level' o( e, K8 W3 A$ g0 q
# 0 = absolute2 k$ x% {' B0 T0 f+ P+ W
# 1 = incremental5 I9 V+ a, Y, o3 _/ k0 N" {- X
#: Y) p8 z! L5 u& P
# mi3 - Select G28 or G30 reference point return.; E3 O6 w- v/ C, x) a
# 0 = G28, 1 = G30- o5 L4 S' I. x* n
#
2 V( `! ^" ?+ j/ R# mi4 - Start initial primary rotary axis bias
$ I2 H- {+ |$ V% J8 ~2 |# +/-999 represents start as close to limit as possible2 z9 g2 {* n! R. D* B
# Integer represents number of 180 degree shifts for non-nutating
1 g* J& v8 ~ }0 f, `. A# machine or 360 degree shifts for nutating machine
! _! d' m3 e8 ?/ H) I. l# -999 = Low, 0 = Default, 999 = Hi& p7 v- H0 _) Z. B3 `6 k- w S
#
" D/ V5 ]! Z! I# mi5 - Start initial secondary rotary axis bias
% r! H& h: L, H4 n" u( f# +/-999 represents start as close to limit as possible' R+ S1 d# g1 r/ q" k5 z# A4 t/ L4 \
# Integer represents number of 360 degree shifts
1 x* r$ i* z q# -999 = Low, 0 = Default, 999 = Hi6 i( M- a9 }5 h9 H3 d
#
4 ]) `: J! f- |- U: k3 u" f4 g$ l# mi6 - Add work shift position for rotation center programming0 I( d0 S0 p4 `% d- e8 g
# 0 = Output relative to work origin (toolplane)/ M" L, h0 `3 Q/ C+ j1 _; w( X- ]
# 1 = Output relative to WCS origin (axis shifts)* m1 `4 e# \& J% v: U% p
#
8 f k) P2 m& z; t! a* Y( [# mi7 - Enable retract to and from linear limits. Disable for4 d6 \5 [+ D# k) F& |- r
# internal work to prevent part collisions.
" q6 @" u# h& F, g7 W; d. F# 0 = Disable, 1 = Enable
: o- X; T+ y1 ?#4 N6 }8 R0 T0 G9 R! l
# mi8 - Safe retract/approach at toolchange.+ O; i, Q' K* N- K
# The tool retracts/approachs to limits from last path to current0 I$ D" C. Z) [/ V$ ^0 u9 Y
# path or after/before a toolchange1 d3 j$ y" u" Z" n
# (limits must be enabled, see 'use_stck_typ')
8 e& q2 S+ t9 I# 0 = Disable all toolchange retract/approach+ p+ h }4 q6 A6 ?% L
# 1 = Enable null toolchange retract/approach only
/ _3 A: y, q5 J$ l) q7 J# 2 = Enable toolchange retract/approach only( s! W) R, T. e' d* ]6 t
# 3 = Enable both toolchange retract/approach8 \* ~! @! X' }- _5 V/ C
#
7 P, F8 D8 J( k* P# mi9 - Nutating bias calculation.
( ~) p& D: O1 W# 0 = Calculate angle bias to original vector - ~4 ?9 m6 e1 I. k7 U
# 1 = Bias to positive! M1 k7 S6 D. R9 o& V. D+ D
# 2 = Bias to negative
8 l9 X% }4 P9 j, _9 _; `8 E#
2 T- s$ }6 V7 B) d4 f# mr1 - Retract/approach clearance distance at tool reposition: K' h' p9 s$ z- \) f, C
#2 l2 h( D; @0 C; s2 u# g0 k( H# C) W
# mr2 - Right angle head toolpath conversion (not with nutating machine type).8 M5 A; f6 _) C4 v0 Z
# Right angle rotates secondary axis by degrees- b8 b Y/ m+ t: d T
# The head may only be rotated perpendicular to the secondary axis' ~4 [3 R) w3 d& T4 q
# 0 = Off, Enter angle for amount of head rotation (RA = +/- 90)
0 K8 y1 s1 g2 s, W- f- c, R! p' r#2 O) G% I9 \8 g2 u8 q0 Q& A
# mr3 - Mill Plus G74 toolchange X axis home position4 b% J4 r8 _- B5 v4 ?. ~9 X
#6 M1 q! ~" W v
# mr4 - Mill Plus G74 toolchange Y axis home position
' B) B% u4 @! @2 U) W#
X( n3 }8 h1 h" r; J( [# mr5 - Mill Plus G74 toolchange Z axis home position! p) q1 |$ C# ?
#+ r* c1 k7 ]& Y5 {0 ?$ Z( s
#Canned text:' s$ B3 ?: t" |& n. K
# Entering cantext on a contour point from within Mastercam allows the# W2 Z% P& T4 |$ }( ]; ]" k& j( l
# following functions to enable/disable.
( P7 J, i& Q% G/ e# Cantext value:
2 N: a* ?( }1 w# 1 = Stop = output the "M00" stop code/ \( I5 }) X3 k/ X7 G
# 2 = Ostop = output the "M01" optional stop code* ^' ?* S" S, N$ }' c& C& q- H
# 3 = Bld on = turn on block delete codes in NC lines" m( I- ]' [/ G" z6 P
# 4 = bLd off = turn off block delete codes in NC lines
& _7 E. C7 U6 P+ f8 q: [#3 ^# h, M1 C+ @6 s
#Layout:
2 {% E* c& E! ], `# The term "Reference View" refers to the coordinate system associated( a: t6 W* u0 A
# with the Top view (Alt-F9, the upper gnomon of the three displayed).' w' B& B8 @/ V4 h8 @% J) C
#
* v* E; ?1 V! a T9 t$ d' k#3 Axis Rotary (Polar)
" e4 T2 W, G6 n, y0 z$ e2 F# Polar positioning is offered in Mastercam 3 axis toolpaths through the 1 _1 M1 U8 K$ g. V8 M
# rotary axis options dialog.& V0 Q6 o$ n+ v( [6 }
#
# L% i% O2 W# D; M+ X1 e w#Axis Substitution:4 a( {+ o8 i: a
# Use the Rotary axis substitution by drawing the geometry flattened
" i% w H! [ B) }. [/ l# from the cylinder.
+ g3 L6 C' w& A" ?% D! Y9 ~#
; B- [1 d [' y; t7 f1 e/ v; u#Canned Cycle Drilling with Mill Plus:
8 w5 H; r& P5 U7 |# The drilling cycle for the Mill Plus requires that a position is defined+ \4 |/ U8 \/ A
# where the part surface is expected. This information must be passed to; p' b. [" Y# r8 g: V: F2 o
# the post by creating drill cycles in the following manner:3 l/ G E7 J' p! Q" o5 Y% M
# The difference of the top of stock location and the reference hieght is' m% M: k _! x% {3 W! ]$ O
# taken from the drill cycle definition (Gcode 81) and applied to repeat5 ], Y7 }: @9 l4 w) z" q: Y$ h
# drill positions.
( C, u. p; q- [; d7 e) l! Q- ?#
; J- Y$ A' g5 @" i, V1 a. F#Toolchange retracts:
$ L& ~9 v. A& ~9 C# Mi8 is used to control retracts at tool changes and null toolchanges.% B8 l$ p) D' O: [$ b l, g
# Mi8 for tool changes applies to the approach to the part to the retract
; l% E4 Z; T) f: ]) _4 y# from the part at the next toolchange (unless changed in a null tool
8 Z& b; M' U% d" o$ P5 x# change). Null toolchange control at a null toolchange uses the current! M1 \$ {: e# O* ~ x
# setting and previous setting of mi8. Through a null toolchange, the
9 m) r$ a0 ^1 s0 b% X/ H% [" K# setting of mi8 at the retract applies to the approach.5 B# P# s+ P& o( Q2 K. O% N( h
#- m& { S# l! v# F$ e( f7 B. M
#Additional Notes:
H. X9 K( N9 x8 `8 q# 1) G54 calls are generated where the work offset entry (workofs) are6 H0 g0 |3 G5 p9 X, ]: y
# 0 = G54, 1 = G55, etc. This post only uses work offsets.
: U8 c, J2 H! O7 _, Y# 2) Metric is applied from the NCI met_tool variable.
6 E; ~! `5 ~: z- |& A/ e# 3) Incremental mode calculates motion from home position at toolchanges.2 o3 V, ]# Z& U1 p. [
# The home position is used to define the last position of the tool Q- v9 v7 V7 N1 p4 i
# for all toolchanges. , r* h+ c( p* B' H4 y; R! h3 W2 H
# 4) The variable 'absinc' is pre-defined, set mi2 (Misc. Integer) for
" _9 l5 [; @) w+ v# the absolute/incremental program output.
. Q( H2 c2 D3 n5 g1 @, d) n! K# 5) Always avoid machining to the center of rotation with rotary axis!7 v; O L5 b. `
# 6) Set the NCI precision to 7 places precision minimum in Mastercam. Set the0 ^0 I# z9 R% @
# 'Tool vecter length' in 5 axis tool paths as 1 unit minimum, longer is better
/ f4 ], W* f. |% J6 }4 J& W6 j# to avoid rounding problems (output precision deviations). 7 w4 Y( m+ V7 h% ]0 H. a$ O* ?
# 7) The tool length is taken from the overall length entered with the tool8 |1 l: n* z* v9 t+ F" M- V2 i
# definition in Mastercam.5 h+ L- x* o' @9 U; i% r0 N% w' S
#! q" s) V* x. ]
#Axis Offsetting: |
|