mastrcam 5轴后处理

更新时间:2023-07-25 20:35:34 阅读: 评论:0

# Post Name          : MPGEN5X
# Product            : MILL
# Machine Name        : GENERIC FANUC
# Control Name        : GENERIC FANUC
# Description        : GENERIC FANUC 5 AXIS MILL POST
# Associated Post    : NONE
# Mill/Turn          : NO
# 4-axis/Axis subs.  : YES
# 5-axis              : YES
# Subprograms        : NO
# Executable          : MP V9.00
#
# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO
# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.
#
# --------------------------------------------------------------------------
# Revision log:
# --------------------------------------------------------------------------
# Programmers Note:
# CNC 12/20/01  -  Initial post tup
#
# --------------------------------------------------------------------------
# Features:   
# --------------------------------------------------------------------------
# This post supports Generic 5 axis milling.
# It is designed to support the features of Mastercam Mill V9.0
#
# Following Misc. Integers are ud:
#
# mi2 - Absolute or Incremental positioning at top level
#        0 = absolute
#        1 = incremental
#
# mi3 - Select G28 or G30 reference point return.
#        0 = G28, 1 = G30
#
# mi4 - Start initial primary rotary axis bias词汇量英语
#      +/-999 reprents start as clo to limit as possible
宋鱼水#      Integer reprents number of 180 degree shifts for non-nutating
#      machine or 360 degree shifts for nutating machine
#        -999 = Low, 0 = Default, 999 = Hi
#
# mi5 - Start initial condary rotary axis bias
#      +/-999 reprents start as clo to limit as possible
#      Integer reprents number of 360 degree shifts
#        -999 = Low, 0 = Default, 999 = Hi
#
# mi6 - Add work shift position for rotation center programming
#        0 =  Output relative to work origin (toolplane)
#        1 =  Output relative to WCS origin (axis shifts)
#
# mi7 - Enable retract to and from linear limits.  Disable for
#      internal work to prevent part collisions.
#        0 = Disable, 1 = Enable
#
# mi8 - Safe retract/approach at toolchange.
#      The tool retracts/approachs to limits from last path to current
#      path or after/before a toolchange
#      (limits must be enabled, e 'u_stck_typ')
#        0 = Disable all toolchange retract/approach
#        1 = Enable null toolchange retract/approach only
#        2 = Enable toolchange retract/approach only
#        3 = Enable both toolchange retract/approach
#
# mi9 - Nutating bias calculation.
#        0 = Calculate angle bias to original vector
#        1 = Bias to positive
#        2 = Bias to negative
#
# mr1 - Retract/approach clearance distance at tool reposition
#
# mr2 - Right angle head toolpath conversion (not with nutating machine type).
#      Right angle rotates condary axis by degrees
#      The head may only be rotated perpendicular to the condary axis
#      0 = Off, Ente
r angle for amount of head rotation (RA = +/- 90)
#
# mr3 - Mill Plus G74 toolchange X axis home position
#
# mr4 - Mill Plus G74 toolchange Y axis home position
#
# mr5 - Mill Plus G74 toolchange Z axis home position
#
#Canned text:
#    Entering cantext on a contour point from within Mastercam allows the
#    following functions to enable/disable.
#    Cantext value:
#    1 = Stop = output the "M00" stop code
#    2 = Ostop =  output the "M01" optional stop code
#    3 = Bld on = turn on block delete codes in NC lines
#    4 = bLd off = turn off block delete codes in NC lines
#
#Layout:
# The term "Reference View" refers to the coordinate system associated
# with the Top view (Alt-F9, the upper gnomon of the three displayed).
#
#3 Axis Rotary (Polar)
# Polar positioning is offered in Mastercam 3 axis toolpaths through the
# rotary axis options dialog.
#
#Axis Substitution:
# U the Rotary axis substitution by drawing the geometry flattened
# from the cylinder.
#
#Canned Cycle Drilling with Mill Plus:
# The drilling cycle for the Mill Plus requires that a position is defined
# where the part surface is expected.  This information must be pasd to
# the post by creating drill cycles in the following manner:
# The difference of the top of stock location and the reference hieght is
# taken from the drill cycle definition (Gcode 81) and applied to repeat
# drill positions.
#
#Toolchange retracts:
# Mi8 is ud to control retracts at tool changes and null toolchanges.
# Mi8 for tool changes applies to the approach to the part to the retract
# from the part at the next toolchange (unless changed in a null tool
# change).  Null toolchange control at a null toolchange us the current
# tting and previous tting of mi8.  Through a null toolchange, the
# tting of mi8 at the retract applies to the approach.
#
#Additional Notes:
# 1) G54 calls are generated where the work offt entry (workofs) are
#    0 = G54, 1 = G55, etc. This post only us work offts.o经理
# 2) Metric is applied from the NCI met_tool variable.
# 3) Incremental mode calculates motion from home position at toolchanges.
#    The home position is ud to define the last position of the tool
#    for all toolchanges. 
# 4) The variable 'absinc' is pre-defined, t mi2 (Misc. Integer) for
#    the absolute/incremental program output.
# 5) Always avoid machining to the center of rotation with rotary axis!
# 6) Set the NCI precision to 7 places precision minimum in Mastercam.  Set the
#    'Tool vecter length' in 5 axis tool paths as 1 unit minimum, longer is better
#    to avoid rounding problems (output precision deviations).
# 7) The tool length is taken from the overall length entered with the tool
#    definition in Mastercam.
#
#Axis Offtting:
科学论文格式
# This post is designed to support axis offt and zero shifts to handle
# cas where 1) the primary and condary axis do not interct and
# 2) where the program zero poi
nt is not t at the primary and condary
# axis interction.  Always lect the WCS origin to be the zero point
# relative to the machine model when creating toolpaths in Mastercam.
# The zero point should be lected as the primary and condary
# axis interctions whenever possible.
# When mi6 is off, the assumption is made that the zero position is
# t in the control at a datum.  This is disabled in all cas for
# 5 axis toolpaths (including polar and axis substitution).
# The offts are t relative to the machine ba matrix (matb1-matb9).
# The machine zero point must be on the primary or condary axis and
# the shift (saxisx, saxisy, saxisz) describes where the rotation is 
# relative to the zero point.
#Table/Table configuration:
# All 3 axis offts are supported.
#
#Table/Head configuration (only primary table/condary head):
# Axis offts are supported on primary axis.
#
#Head/Head configuration:
# All 3 axis offts are supported for non-nutating machines.
# Only the primary to condary axis offt is supported for nutating machines.
#
#Subprograms:
# Note: Subprograms are not enabled.
#
# --------------------------------------------------------------------------
#Constants
# --------------------------------------------------------------------------
m_one      : -1    #Define constant
zero        : 0    #Define constant
one        : 1    #Define constant
two        : 2    #Define constant
three      : 3    #Define constant
four        : 4    #Define constant
five        : 5    #Define constant
six        : 6    #Define constant
arc45      : 45    #Define constant
arc90      : 90    #Define constant
arc180      : 180  #Define constant
arc360      : 360  #Define constant
c9d        : 999  #Define constant
c9k        : 9999  #Define constant
# --------------------------------------------------------------------------
# Debugging and Factory Set Program Switches 
# --------------------------------------------------------------------------
fastmode    : 1    #Posting speed optimizition
bug1        : 2    #0=No display, 1=Generic list box, 2=Editor
bug2        : 30    #Append postline labels, non-zero is column position?
bug3        : 0    #Append whatline no. to each NC line?
bug4        : 1    #Append NCI line no. to each NC line?
whatno      : yes  #Do not perform whatline branches? (leave as yes)
#MP executable process controls
get_1004    : 1    #Find gcode 1004 with getnextop?
rpd_typ_v7  : 0    #U Version 7 style contour flags/processing?
strtool_v7  : 2    #U Version 7+ toolname?
tlchng_aft  : 2    #Delay call to toolchange until move line
cant_tlchng : 1    #Ignore cantext entry on move with tlchng_aft
newglobal  : 1    #Error checking for global variables
getnextop  : 1    #Build the next variable table
nobrk      : yes  #Omit breakup of x, y & z rapid moves
no_updprv  : yes  #Post exclusively maintains previ
百宝箱鼠标连点器
ous
#Tolerances
ltol        : .002  #Length tolerance for arccheck = 1
vtol        : .0001 #System tolerance
ltol_m      : .05  #Length tolerance for arccheck = 1, metric
vtol_m      : .0025 #System tolerance, metric
#Arc output ttings
breakarcs  : 0    #Break arcs, 0 = no, 1 = quadrants, 2 = 180 arcs
arcoutput  : 0    #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180
arctype    : 2    #Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.
do_full_arc : 1    #Allow full circle output? 0=no, 1=yes
helix_arc  : 1    #Support helix arc output, 0=no, 1=all planes, 2=XY plane only
arccheck    : 1    #Check for small arcs, convert to linear
atol        : .01  #Angularity tolerance for arccheck = 2
#Program control
stagetool  : 0    #0 = Do not pre-stage tools, 1 = Stage tools
progname    : 1    #U upperca for program name
sub_level  : -2    #Enable automatic subprogram support (do not enable)
sub_q_typ : 1    #Enable subprogram quence number ret at sub call
#Work offts
workofs    : -1    #Initialize work offt
force_wcs  : yes  #Force WCS output at every toolchange?
u_frst_wcs: yes  #U only the first WCS read and ignore all others in NCI
#Spindle control ttings
u_gear    : 0    #Output gear lection code, 0=no, 1=yes
max_speed  : 10000 #Maximum spindle speed
min_speed  : 50    #Minimum spindle speed
#Feed control ttings
#Mill Plus us A40, B40, C40 instead of inver
convert_rpd : 0    #Convert rapid to rapid feed
u_fr      : 2    #Output feedrate
#0 - programmed feedrate
#1 - inver feedrate
#2 - inver feedrate on 5 axis continuous
#3 - inver feedrate on motion with rotary
inv_fd_typ  : 0    #Calculate feed location options
#0 - inver feed at tip
海城市教育局#1 - min-max on flute length
#2 - tip to pivot on tool length
#3 - min-max on flute length to pivot on tool length
rot_feed    : 0    #Rapid rotary motion only feed options
#0 - convert to G0 rapid
#1 - apply rapid feedrate
maxfeedpm  : 500  #Limit for feed in inch/min
maxfeedpm_m : 10000 #Limit for feed in mm/min
maxfrinv    : 999.99#Limit for feed inver time
fix_fr      : 1    #If feedrate is zero, apply the values
deffeedpm  : 1.0  #Default for zero feed in inch/min
deffeedpm_m : 25.0  #Default for zero feed in mm/min
deffrinv    : 500.0 #Default for zero feed inver time
#Enable canned drill cycle switches, prv_ is ud to restore original
peckacel    : 0    #Fractional percent to reduce peck2 : no
ucandrill : yes  #U canned cycle for drill
ucanpeck  : yes  #U canned cycle for Peck
ucanchip  : yes  #U canned cycle for Chip Break
ucantap  : yes  #U canned cycle for Tap
ucanbore1 : yes  #U canned cycle for Bore1
ucanb
ore2 : yes  #U canned cycle for Bore2
ucanmisc1 : yes  #U canned cycle for Misc1
ucanmisc2 : yes  #U canned cycle for Misc2
#Sequence numbers
omitq    : yes  #Omit quence no.
qmax      : 9999  #Max. quence no.
#Output formatting
mill_plus  : 0    #Output for the nutating machine mill plus G codes
spaces      : 1    #No. of spaces to add between fields
pang_output : 0    #Angle output options, primary
sang_output : 0    #Angle output options, condary
#0 = Normal angle output
#1 = Signed absolute output, 0 - 360
#2 = Implied shortest direction absolute output, 0 - 360
# --------------------------------------------------------------------------
# 5 Axis Rotary Settings
# --------------------------------------------------------------------------
#Assign axis address
str_pri_axis "C"
str_c_axis "B"
str_dum_axis "A"
#Mill Plus, Assign feedrate axis address
str_pri_f40  "C40="
str_c_f40  "B40="
#Mill Plus, toolplane angle position strings
str_n_a_axis "A5="
str_n_b_axis "B5="
str_n_c_axis "C5="
#Machine rotary routine ttings
mtype      : 0    #Machine type (Define ba and rotation plane below)
#0 = Table/Table
#1 = Tilt Head/Table
#2 = Head/Head
#3 = Nutator Table/Table
#4 = Nutator Tilt Head/Table
#5 = Nutator Head/Head
奇迹笨小孩观后感
head_is_c : 1    #Set with mtype 1 and 4 to indicate head is on condary
#Preferred tup is pri. zero matches c. zero/direction
#Zero machine and determine the planes perp. to axis rotations
#The plane combinations are valid:
#Primary plane  XY  XZ  YZ
#Secondary or    XZ  XY  XY
#Secondary      YZ  YZ  XZ
#Primary axis angle description (in machine ba terms)
#With nutating (mtype 3-5) the nutating axis must be the XY plane
rotaxis1 = vecy  #Zero     
rotdir1  = vecx  #Direction 
#Secondary axis angle description (in machine ba terms)
#With nutating (mtype 3-5) the nutating axis and this plane normal
#are aligned to calculate the condary angle
rotaxis2 = vecz  #Zero       
rotdir2  = vecx  #Direction 
#NOTE: mill_plus and mtype > 2 (nutating), the dealer must match the
#      above ttings below.  The must match initial ttings!!!
p_nut_restore    #Postblock, restores original axis ttings
result = updgbl(rotaxis1, vecy) #Zero
result = updgbl(rotdir1, vecx)  #Direction
result = updgbl(rotaxis2, vecz) #Zero
result = updgbl(rotdir2, vecx)  #Direction
#Nutating machine (mtype 3-5) describe the plane that the nutated axis
公文格式模板#lays in,  this is the plane perpendicular to the primary axis and
#condary axis
nut_ang_pri : -45    #Nutating head condary axis angle from machine Z positive
#Tool length, typically for head/head machine, both t to zero disables
#Applied to the tool le

本文发布于:2023-07-25 20:35:34,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1116975.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:鼠标   观后感   模板   海城市   连点   笨小孩   格式
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图