英语吧 关注:1,569,525贴子:11,437,070
  • 2回复贴,共1

求英语大神帮忙翻译,一段CAM机械编程软件后处理

只看楼主收藏回复

# Post Name : MPWMTS-H# Product : WIRE# Machine Name : MITSUBISHI# Control Name : H-SERIES# Description : MITSUBISHI H SEERIES POST# 4-axis/Axis subs. : YES# 5-axis : NO# Executable : MPWIRE v9.10## WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.## --------------------------------------------------------------------------# Revision log:# ------------------------------------------------------------------------# Programmers Note:# CNC 01/12/01 - Initial post setup V8.1# CNC 01/08/02 - Initial post update for V9.0# CNC 02/20/02 - Added 'F'eedrate outputs# CNC 07/20/02 - Added checks for Point Move oper. (opcode=214)# Added 'M91' (adaptive control OFF) prior to 'M21' cut wire# CNC 07/30/02 - Fixed comments# CNC 02/04/03 - Initial post update for V9.1## ---------------#| FEATURES: |# ------------------------------------------------------------------------#Misc. Reals & Misc. Integers:## mi1-Work coordinate system # 0 thru 3 = G92 with the X, Y start position.# 4 thru 9 = The WCS of G54 thru G59 respectively at each contour.# Subprograms automatically increments WCS starting from the# initial setting.## mi2-Sets main program format, 0 = absolute, 1 = incremental.# The initial setting is effective for the entire program.## mi3-Sets sub program format, 0 = absolute, 1 = incremental.# The initial setting is effective for the entire program.## Mi4-Selects wire feed automatic or manual, 0 = auto, 1 = manual.## Mi5-Selects for wire break at reposition between contours, 0 = break,# 1 = no break at the end of the current contour, 2 = break at sub number# change but not if the sub number is the same.##General conditions:# The start position is assumed the rapid point before the thread position# for the first contour pass only. Select the start and thread position as# the same or set the auto start position on to ignore the start position. # The start position and thread position are the same after the first contour# pass.# The current NCI motion line contains the wire taper and corner type applied# to the current motion. Select corner and taper angle changes at the point# representing the end of motion for element to be modified.# Subprograms are generated by directing rapid motion to the main and feed# motion to the sub. Be careful in creating toolpaths so information is # written to the program area desired.##Post specific conditions:# Corner type for constant and sharp uses the Q address and upper radius# method.# Z values are entered in the parameter pages for the XY/UV height and# trimplanes. Lower and upper guide are represented by the trimplanes.##POST flags and function:# Subflag - -1 = rapid motion at the start of the tool path# 0 = rapid motion at the end of the tool path# 1 = linear and circular motion in the tool path for sub output# Reposflag - 0 = no motion from the last pass to the current pass# 1 = motion between passes, break wire and move# 2 = motion between passes, do not break wire and move# G92flag - 0 = absolute main / absolute sub# 1 = absolute main / incremental sub# 2 = incremental main / absolute sub# 3 = incremental main / incremental sub# Tanflag - 0 = No motion or start/end of contour# 1 = Current move is tangent to next move# 2 = Current move intersects next move## This post buffers 2D contours prior to output. The buffer is read and the# 'tanflag' is set. The buffer is read and examined at the output to # determine corner and taper conditions.## END_HEADER$#


1楼2013-08-13 19:24回复
    # DEBUG/PROGRAM SWITCHES, debugging and program switches# --------------------------------------------------------------------------fastmode : yes # Enable Quick Post Processing, (set to no for debug)bug1 : 1 # 0=No display, 1=Generic list box, 2=Editorbug2 : 40 # Append postline labels, no. is column position, neg. is all 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?
    strtool_v7 : 2 # Use Version 7 toolname, 1= path components, 2=stringrpd_typ_v7 : 1 # Use Version 7 style contour flags?get_1004 : 1 # Find gcode 1004 with getnextop?
    arcoutput : 0 # 0 = IJ, 1 = R no sign, 2 = R signed neg. over 180 (2d only)nosubs : no # Do not support sub programs?breakarcs : 0 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcs
    thd_wire : yes # Thread and cut wire for single contourreport : no # Output absolute to incremental final position comparison
    # --------------------------------------------------------------------------# Format Statements - i=incr, n=nonmodal, l=leave ldg, t=leave trlg, d=delta# --------------------------------------------------------------------------fs 1 1.4 # Absolute motionfs 2 1.4d # Circular motionfs 3 1.4i # Incremental motionfs 4 1.3 # Absolute motionfs 5 1.3i # Incremental motionfs 6 1 0 # Integerfs 7 2 0 # Integerfs 8 4 0 # Integerfs 9 1.4t # Misc.fs 10 1.4lt # Misc.fs 11 1.3 # Feedrate
    # --------------------------------------------------------------------------# FORMAT ASSIGNMENTS# --------------------------------------------------------------------------# Axis output formats - Linear# --------------------------------------------------------------------------fmt X 1 xout # X position abs. output fmt Y 1 yout # Y position abs. output fmt 1 xa # X position abs. calc. fmt 1 ya # Y position abs. calc. fmt X 2 xi # X position inc. output fmt Y 2 yi # Y position inc. output fmt X 1 x20 # X 20's position abs. fmt Y 1 y20 # Y 20's position abs. fmt U 1 u30 # U 30's position abs. fmt V 1 v30 # V 30's position abs. fmt U 3 ud30 # U 30's position delta fmt V 3 vd30 # V 30's position delta fmt U 2 ui30 # U 30's position inc. fmt V 2 vi30 # V 30's position inc. fmt X 1 substartxout # Absolute X start position for sub fmt Y 1 substartyout # Absolute Y start position for sub fmt 9 xtotal # X totalsfmt 9 ytotal # Y totals
    # --------------------------------------------------------------------------# Axis output formats - Circular# --------------------------------------------------------------------------fmt I 2 iout # I position output fmt J 2 jout # J position output fmt 2 i # I position calc. fmt 2 j # J position calc. fmt I 2 i20 # I 20's position abs. fmt J 2 j20 # J 20's position abs. fmt K 1 k30 # K 30's position abs. fmt L 1 l30 # L 30's position abs. fmt K 2 kd30 # K 30's position delta fmt L 2 ld30 # L 30's position delta fmt K 2 ki30 # K 30's position inc. fmt L 2 li30 # L 30's position inc. fmt R 1 arcrad # Arc radius fmt R- 1 arcradm # Arc Radius over 180 degree sweepfmt Q 1 arcradu # Arc Radius for constant corner G24
    # --------------------------------------------------------------------------# Program & Sequence number format# --------------------------------------------------------------------------fmt L 8 progno # Program number fmt L 8 subprogno # Subroutine number head of filefmt L 8 subno # Subroutine call number fmt N 8 n # Sequence number
    # --------------------------------------------------------------------------# Wire format# --------------------------------------------------------------------------fmt E 8 ccode # Condition code fmt H 7 offset # Wire diameter offset fmt A 1 wtout # Wire angle fmt Q 1 tcrout # Wire radius offset fmt M 7 poweron # Power on fmt M 7 poweroff # Power off fmt G 7 g_wcs # WCS for subsfmt P 7 p_wcs # WCS for subsfmt 10 xyheight # XY part planefmt 10 uvheight # UV part planefmt 10 trimplane1 # XY guide planefmt 10 trimplane2 # UV guide planefmt 10 z2ht # Feed planefmt F 11 fr # Feedrate
    # --------------------------------------------------------------------------# INITIALIZE - initialize system variables and define user variables# --------------------------------------------------------------------------arctype : 2 # Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.do_full_arc : 0 # Allow full circle output? 0=no, 1=yesgetnextop : yes # Get 'next' variables? yes/noomitseq : no # Omit sequence numbers?progname : yes # Output upper case in program namescalex : 1.0 # Scale factor for X scaley : 1.0 # Scale factor for Y scalez : 1.0 # Scale factor for Z seqmax : 9999 # Max. sequence numberspaces : 1 # Spaces between addresssubprg : yes # Open subprogram file? yes/notooltable : yes # Call tool table postlines? yes/noqrtyp : 2 # Calculate UV in 4 axis as, 0=inc., 1=wq,wr, 2=abs. # --------------------------------------------------------------------------# INITIALIZE - post flags# --------------------------------------------------------------------------aiflag : 0 # G90/G91 abs/inc code subflag : 0 # Sub program postline active subtflg : 0 # Sub program type active flag reposflag : 0 # Test for axes motion subrepflag: 0 # Subtype 2 repetition control strtflag : 0 # Start position control uvoutflag : 0 # Sub program postline active m99writ : 0 # Flag if the M99 was written uv30flg : 0 # Flag for upper format kl30flg : 0 # Flag for upper format g92flag : 0 # Flag for G92 comflag : 0 # Comment flagqradflg : 0 # Q upper radius flagtanflag : 0 # Tangent or intersection flagmtypeflag : 0 # Gcode combination switchpedmflg : 0 # Pedm counter/flagwtgcod : 0 # Wire taper G-code flag tcrplus : .01 # Additional radius for Sharp corner type wirein : 0 # Wire threaded flag
    # --------------------------------------------------------------------------# INITIALIZE - constants# --------------------------------------------------------------------------zero : 0 # Zeroone : 1 # Onetwo : 2 # Twotest_tol : .0002 # Tolerance for tangent or intersection
    # --------------------------------------------------------------------------# INITIALIZE - saved values# --------------------------------------------------------------------------subnsv : 0 # Sequence number save for main seqninit : 0 # Sequence number sub initial savwc1 : 0 # Save buffer informationsavrc1 : 0 # Save buffer informationsavgcode : 0 # Save buffer informationsavxa : 0 # Save buffer informationsavya : 0 # Save buffer informationsavxi : 0 # Save buffer informationsavyi : 0 # Save buffer informationsavxc : 0 # Save buffer informationsavyc : 0 # Save buffer informationsavtanflag: 0 # Save buffer informationsavsubno : 0 # Save buffer information
    # --------------------------------------------------------------------------# INITIALIZE - controls and misc.# --------------------------------------------------------------------------g20 : 0 # 20's G-code selector g30 : 0 # 30's G-code selector deltg92x : 0 # Delta X start position for sub deltg92y : 0 # Delta Y start position for sub prvx : 0 # Previous X position prvy : 0 # Previous Y position xrap : 0 # X thread position yrap : 0 # Y thread position substartx : 0 # Constant for X start position for sub substarty : 0 # Constant for Y start position for sub wirethd : 0 # Thread wire auto/man from mi4 wirethd2 : 0 # Thread wire auto/man override passcnt : 0 # Count the passestest : 0 # And/or test valuetest2 : 0 # And/or test valuetest3 : 0 # And/or test valueg92outf : 0 # G92 test valueg92delt : 0 # G92 test value for the delta absolute shiftst_nomot : 0 # Start of profile with no XY motion flagmot : 0 # Motion XY flageq_val : 0 # Value for ratio comparisonabsswp : 0 # Absolute sweepxtotal : 0 # Incremental position counterytotal : 0 # Incremental position countercompflg : 0 # Compensation flagmainaif : 0 # Main absolute\incremental flagsubaif : 0 # Sub absolute\incremental flagg54_wcs : 0 # Sub program with WCSwcc : 0 # Circular corner typewcl : 0 # Linear corner typencom : 0 # number of comments written to buffer # --------------------------------------------------------------------------


    2楼2013-08-13 19:26
    回复
      2025-09-10 08:13:09
      广告
      不感兴趣
      开通SVIP免广告
      # --------------------------------------------------------------------------pheader # File header "%"
      psof0 # Start of file for tool zero psof
      psof # Start of file for non-zero tool number seqninit = seqno prvx = startx prvy = starty xtotal = startx ytotal = starty prv_subtyp = 1 g54_wcs = mi1 mainaif = mi2 subaif = mi3 !threadx, !thready g92flag = (mainaif * two) + subaif preset1 preadbuf2 rc1 = one wc1 = one *progno n, pfabsinc n, "Z1 = ", *xyheight n, "Z2 = ", pz2ht n, "Z3 = ", *trimplane2 n, "Z4 = ", *trimplane1 n, "Z5 = ", *uvheight pstarttest if aiflag = zero, pstartpsofa if aiflag = one, pstartpsofi preset2
      ptlchg0 # Null tool change ptlchg ptlchg # Tool change if m99writ = zero, psubeof preset1 subout = zero pstarttest paiflag preadbuf2 rc1 = one wc1 = one if aiflag = zero, pstartposa if aiflag = one, pstartposi preset2
      peof0 # End of file for main peof
      peof # End of file for non-zero tool if m99writ = zero, psubeof subout = zero pbreak n, "M02", e "%" if nchsub > one, " ", e if nchsub > one, " ", e if nchsub > one, mergesub clearsub if report = one, preport


      3楼2013-08-13 19:30
      回复