|
|
发表于 2014-4-2 11:36:43
|
显示全部楼层
# Post Name : MPGEN5X1 G, |/ U# d0 K& z
# Product : MILL* B0 s% \. b! ^( c7 d+ }
# Machine Name : GENERIC FANUC! J! Q% i& u" N
# Control Name : GENERIC FANUC
0 r( X% V* K/ j' _# Description : GENERIC FANUC 5 AXIS MILL POST7 D0 t0 O7 d Y' y
# Associated Post : NONE
1 Q0 Y# c& G4 a# Mill/Turn : NO( V/ J. u9 p1 a$ z$ E) j1 i9 Q
# 4-axis/Axis subs. : YES2 P& Q) \7 O l& Y ?, }' M
# 5-axis : YES
# X( j& C9 Y1 c& V* L3 ~# Subprograms : NO
$ K5 c7 m" W8 p9 a! M6 s( [* { y# Executable : MP V9.004 @6 R& q4 Z, A; p2 q
#
. ?7 Z- w, Y( i. A# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO7 i6 V" l2 `! v
# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.
" D9 a# S6 @; ?# h' X- n#
) P5 I. }* t: b# --------------------------------------------------------------------------9 S: s. o4 M0 R# N6 B
# Revision log:
# Y% Q- o0 f$ e3 M# K( k* R# --------------------------------------------------------------------------
( t" Z. r( y2 N! o! }! i# Programmers Note:
, Z/ D$ A9 [9 b- {3 I# CNC 12/20/01 - Initial post setup5 u9 S/ Q. }3 Q2 [
#
8 P7 q9 S4 _0 Y( M# --------------------------------------------------------------------------
2 w5 V* `" z1 W& w# Features: # c" J: U% o; ^0 V7 w0 ]5 Y: ~
# --------------------------------------------------------------------------
- }- ]+ n0 J8 m" l4 }# This post supports Generic 5 axis milling.' d3 S" f, w6 Z- x* q
# It is designed to support the features of Mastercam Mill V9.0+ H# p7 B F2 O) i! ]
#3 E! j6 J' z& L5 V6 ~ L: A3 T- K% f8 l
# Following Misc. Integers are used:$ `! x0 U1 k+ \! a/ {
#
e+ `. P2 E9 e0 O, R# mi2 - Absolute or Incremental positioning at top level% Y8 ?5 j5 _9 S7 ~4 Q H
# 0 = absolute' K u/ _% s+ t5 ~* w
# 1 = incremental9 ]( d6 S* z1 L& Z+ H2 P
#. ~: l4 D% M6 o& x1 O E0 A8 m ?
# mi3 - Select G28 or G30 reference point return.1 @- W* y$ j8 B
# 0 = G28, 1 = G30
' p, B5 e/ D3 i2 X) l8 {' P#
# X& L, N" ]* A3 y/ a9 h# mi4 - Start initial primary rotary axis bias
: y* Y4 K! v. {# +/-999 represents start as close to limit as possible
1 G) r2 A: c/ ]* ~0 J# Integer represents number of 180 degree shifts for non-nutating
" u q+ F6 H/ ~9 i2 F1 w# machine or 360 degree shifts for nutating machine
& u5 A' D; C5 F: D* }# -999 = Low, 0 = Default, 999 = Hi
, H0 [' l' j4 f6 S1 L#0 k' J6 W) a8 k% u6 {: K/ y
# mi5 - Start initial secondary rotary axis bias
: Y! V* d" u2 o/ q* y# +/-999 represents start as close to limit as possible
0 l" [3 x! Y( o# Integer represents number of 360 degree shifts
1 ?6 M- ]* U% w$ x' T% M# -999 = Low, 0 = Default, 999 = Hi
) T6 i+ i; [& ~* ] Q! Y#
& r' f0 T" ~8 s6 T# S/ W, w( v! I# mi6 - Add work shift position for rotation center programming" R0 r" _0 k1 w
# 0 = Output relative to work origin (toolplane)
. B9 N0 o3 G$ i# s( N- c; F$ {# 1 = Output relative to WCS origin (axis shifts)( c* P' ~, Z1 d' R2 _. j j% N m% z
#
, B+ `1 y* q4 X! P# mi7 - Enable retract to and from linear limits. Disable for5 j0 k- R ]2 G. h$ ]
# internal work to prevent part collisions.
& |) t+ C: G, T# 0 = Disable, 1 = Enable
8 C& V$ R7 v1 }% Q! `1 z) S& A2 h6 E5 h$ {#
$ p4 C: T% c) B$ {# mi8 - Safe retract/approach at toolchange.
, [& e. A% E. A7 V$ ]( ?# The tool retracts/approachs to limits from last path to current
% Y% L& |, }+ F+ N9 k& e# path or after/before a toolchange
6 u0 R, ?0 j4 v2 \/ p2 F# (limits must be enabled, see 'use_stck_typ')
4 O3 l) k) g7 R& E4 g! _$ |# 0 = Disable all toolchange retract/approach
% c: ?) i6 {7 K" r# 1 = Enable null toolchange retract/approach only
1 U3 P5 W! b: E8 E# 2 = Enable toolchange retract/approach only" N7 b( R6 [5 e1 x8 M+ {' R
# 3 = Enable both toolchange retract/approach8 Z1 `6 O: }) b+ V& ~2 ?
#
' N8 o, T8 f; c2 M3 w# ]# mi9 - Nutating bias calculation.
# l9 ?& Q9 X6 j8 b: m- \; ^# 0 = Calculate angle bias to original vector
: d4 G4 H/ s2 I- o# 1 = Bias to positive- ]' R d( b: T0 `
# 2 = Bias to negative
3 K! y) _( X8 e( p4 }#
$ W G" C- Q/ e8 Z8 ?) b# mr1 - Retract/approach clearance distance at tool reposition
6 G+ E% J- K* C# U- v#
" g' A( Q B6 o L8 b6 L7 m3 N# mr2 - Right angle head toolpath conversion (not with nutating machine type).
3 h6 Z% p# v- z# U# Right angle rotates secondary axis by degrees8 l3 M, ?9 |' w7 L; v9 [
# The head may only be rotated perpendicular to the secondary axis/ P7 G" ]5 w8 X
# 0 = Off, Enter angle for amount of head rotation (RA = +/- 90)( B5 d4 x2 y3 B6 o" R
#2 ]3 z$ d9 O: R$ z/ O
# mr3 - Mill Plus G74 toolchange X axis home position* z" X$ q, n0 b' M
#+ q9 @3 _1 ~% q0 v3 W+ I+ e
# mr4 - Mill Plus G74 toolchange Y axis home position
: F4 h! t) ?, F5 Q/ ]- j#
+ u- l2 m# k: U* U& j9 C/ w, c# mr5 - Mill Plus G74 toolchange Z axis home position
, ^! C7 F$ g; a1 C/ p! y7 d0 m5 g0 _#
2 H# p* _& u! |! h& y+ P- v5 L" `#Canned text:
! p/ K# Q' l8 o; ?" z+ V8 ]/ M+ R2 J# Entering cantext on a contour point from within Mastercam allows the# L* p! D& E$ L1 p' s
# following functions to enable/disable.
. r8 E S; k8 {# Cantext value:
1 B* k! P: v L9 x a6 B2 o4 M# 1 = Stop = output the "M00" stop code" ?' H( V" f: Y+ ^9 d1 r/ U
# 2 = Ostop = output the "M01" optional stop code; b. G5 O2 }0 }; w7 y
# 3 = Bld on = turn on block delete codes in NC lines2 W7 x; p1 [- J) g6 A6 Q& y
# 4 = bLd off = turn off block delete codes in NC lines
+ T$ a B V2 c( z#
0 |8 N+ Q& Y3 `) H, S#Layout:4 H9 x7 o% W( N5 G
# The term "Reference View" refers to the coordinate system associated
" W1 z9 D: e# _% Q6 C: C; n) @# with the Top view (Alt-F9, the upper gnomon of the three displayed).5 ]5 B! k5 a1 _! K' F6 l" h
#
; d- F( y. S" y7 e0 N5 a#3 Axis Rotary (Polar): F0 f; f) ?; q& Z" S4 h
# Polar positioning is offered in Mastercam 3 axis toolpaths through the . O$ ^. N0 O3 F+ u( v
# rotary axis options dialog.
0 O! s. t( ~8 d5 F/ [8 J/ \7 [#
# `7 w& O5 ]$ P/ `$ L2 ]% c0 y0 A#Axis Substitution:
3 i; J, {2 t7 q# l# Use the Rotary axis substitution by drawing the geometry flattened( L" H% X/ J$ V' Y) `
# from the cylinder. d, A$ K1 ~- u. K% t
#$ `6 t/ _* l' N" y6 b
#Canned Cycle Drilling with Mill Plus:: \) v2 X5 a2 t, ]
# The drilling cycle for the Mill Plus requires that a position is defined l# n1 d f% K, f+ X4 y& D! V% ?
# where the part surface is expected. This information must be passed to9 M3 u) k8 t7 p( L3 e
# the post by creating drill cycles in the following manner:
7 G& x# n7 ]4 U2 x2 R# The difference of the top of stock location and the reference hieght is
* D4 A1 D8 G9 [- q! s# taken from the drill cycle definition (Gcode 81) and applied to repeat
! C8 U; e: Q0 D: ^; s. P# L5 H- Z+ b# drill positions.* C: W# k5 R3 ]5 |* z
#5 O7 l9 ~! s7 v
#Toolchange retracts: q( D% q! f o3 x$ e" a D
# Mi8 is used to control retracts at tool changes and null toolchanges.
- j1 W% E( P2 ]* `8 g4 ~7 ]0 P# Mi8 for tool changes applies to the approach to the part to the retract
7 N& }% H* h" t' o z# from the part at the next toolchange (unless changed in a null tool9 |+ E5 R6 k: b; ~$ e. y
# change). Null toolchange control at a null toolchange uses the current
, q$ ]$ s$ ]% n# i8 S# setting and previous setting of mi8. Through a null toolchange, the; ~4 U0 r1 b, O G6 P {8 ^( j
# setting of mi8 at the retract applies to the approach.
( F- h: d/ e0 e5 L#' {* B* s E7 r0 T
#Additional Notes:
+ }9 @' }2 W! u0 @; d2 @* S, U: q# 1) G54 calls are generated where the work offset entry (workofs) are
0 [; e% N$ L2 L( O! @$ @+ Q# 0 = G54, 1 = G55, etc. This post only uses work offsets.1 ~+ n* o/ {, j! E
# 2) Metric is applied from the NCI met_tool variable.
- N7 c! o8 f6 k2 C& t/ \9 v# 3) Incremental mode calculates motion from home position at toolchanges.
5 ?+ a! k6 H; |+ x' W: |" b# The home position is used to define the last position of the tool
" j; x: `4 x% y" s# for all toolchanges. 0 {, {7 [' O- L# B& M, g
# 4) The variable 'absinc' is pre-defined, set mi2 (Misc. Integer) for
5 I3 q, p U; P% |! M% N# the absolute/incremental program output.2 V8 u# Z* m- N, l" }& [8 _8 }
# 5) Always avoid machining to the center of rotation with rotary axis!! t/ k# R0 D- `# p4 L
# 6) Set the NCI precision to 7 places precision minimum in Mastercam. Set the
- ]. P" U. p* t4 x: X# 'Tool vecter length' in 5 axis tool paths as 1 unit minimum, longer is better
& y: o& ~' `) n6 e0 m( K# to avoid rounding problems (output precision deviations).
2 B* E. z" m, H3 l# 7) The tool length is taken from the overall length entered with the tool
( I+ R1 f7 _9 q( k8 D. n* X, t# definition in Mastercam.& V' W- ~" g/ o- M7 u
#
3 u& f7 h: z6 ] l* u! [#Axis Offsetting: |
|