1、# *# *-*# * POST PROCESSOR INTENDED FOR VERSION 6 BETA TESTING *# * *# * D O N O T D I S T R I B U T E ! ! *# - #| REVISION LOG |# -# Programmers Note:# CNC 8/15/2005 - grt - Updated for Mill Version 6 #| FEATURES: |# Users Note:# Following Misc_Reals & Misc_Integers are used:# mi1 - Work coordinate
2、 system # 0 = Reference return is generated and G92 with the # X, Y and Z home positions at file head.# 1 thru 3 = Reference return is generated and G92 with the # X, Y and Z home positions at each tool.# 4 thru 9 = The WCS of G54 thru G59 respectively at each tool.# Options / Usage:# It is recommen
3、ded to start and end cutter compensation on a linear move.# Rotary axis assumes a Z plunge at feed into part, position of the# substituted axis at absolute zero position and the retraction from path # by the post call to the G28 machine Z home position.# -# DEBUG/PROGRAM SWITCHES, debugging and prog
4、ram switchesbug1 : 1 # 1 = Output post to screen, 2 = output leader to screenbug2 : 0 # Append postline labels, non-zero is column position? bug3 : 0 # Append whatline no. to each NC line?bug4 : 0 # Append NCI line no. to each NC line?whatno : yes # Do not perform whatline branches?strtool_v7 : 2 #U
5、se Version 7 toolname, 1= path components, 2=stringget_1004 : 1 #Find gcode 1004 with getnextop?rpd_typ_v7 : 1 #Use Version 7 style contour flags?arcoutput : 2 # 0 = IJK, 1 = R no sign, 2 = R signed neg. over 180breakarcs : 0 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcsstagetool : 0 # 0
6、= Do not pre-stage tools, 1 = Stage toolsuse_gear : no # Set to yes to output gear range codes# FORMAT STATEMENTS - n=nonmodal, l=leading, t=trailing, i=inc, d=deltafs 1 0.3 #Decimal, absolute, 4 placefs 2 0.4d #Decimal, deltafs 3 1 0 #Integer, not leadingfs 4 2 0l #Integer, two leadingfs 5 3 0l #In
7、teger, three leadingfs 6 4 0l #Integer, four leadingfs 7 0.1 #Decimal, absolute, 1 placefs 8 0.2 #Decimal, absolute, 2 placefs 9 0.3 #Decimal, absolute, 3 placefs 10 0 4t #No decimal, absolute, four trailingfs 11 0.4t #Decimal, absolute, four trailing# FORMAT ASSIGNMENTS# Axis output formats - Linea
8、rfmt X 1 x # X axis positionfmt Y 1 y # Y axis positionfmt Z 1 z # Z axis positionfmt X 1 xr # X rapid position from tool changefmt Y 1 yr # Y rapid position from tool changefmt Z 1 zr # Z rapid position from tool changefmt X 1 xh # X home positionfmt Y 1 yh # Y home positionfmt Z 1 zh # Z home posi
9、tion# Axis output formats - Circularfmt I 2 i # Arc center description in Xfmt J 2 j # Arc center description in Yfmt K 2 k # Arc center description in Zfmt R 1 arcrad # Arc Radiusfmt R- 1 arcradm # Arc Radius over 180 degree sweep# Axis output formats - Rotary substitutionfmt A 9 xs # Linear to rot
10、ary calculation of Xfmt B 9 ys # Linear to rotary calculation of Y# Program & Sequence number formatfmt O 6 progno # Program numberfmt N 3 n # Sequence nos.# Tool formatfmt T 3 t # Tool Nofmt T 3 first_tool# First Tool Used (bldnxtool: yes)fmt T 3 next_tool # Next Tool Used (bldnxtool:fmt D 3 tloffn
11、o # Diameter Offset Nofmt H 3 tlngno # Length Offset Nofmt T 1 tnote # Note formatD- 1 toffnote # Note formatH- 1 tlngnote # Note formatDia- 2 tldia # Note format# Spindle Speeds & Feedrate output formatsfmt S 6 speed # Spindle Speedfmt F 8 fr # Feedratefmt F 7 frdeg # Feedrate for rotaryfmt M 3 gea
12、r # Gear range# Drill variable formatsfmt G 3 drillref # Initial / Reference Toggle (G98/G99)fmt P 10 dwell # Dwellfmt Z 1 initht # Initial Heightfmt R 1 refht # Reference Heightfmt Z 1 depth # Depthfmt Q 2 peck1 # First peck increment (positive)fmt 1 peck2 # Second or last peck (positive)fmt 1 peck
13、clr # Safety distancefmt 1 retr # Retract heightfmt F 8 frplunge # Plunge feedrate in drill cycles# Miscellaneous output formatsfmt M 5 ssrange # Spindle Speed Rangefmt C 4 coolant # Coolant# INITIALIZE - initialize system variables and define user variablesqtoolpln : no # MP386 - Enable tool plane
14、optionqtoolopt : no # MP386 - Enable tool optimizationarctype : 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=yeshelix_arc : 0 #Support helix arc output, 0=no, 1=all planes, 2=XY plane onlybldnxtool : yes # Build next tool tableldrcode :
15、65 # Leader character dec. equiv. (fleader outputs code)ncldr : 20 # No. of leader characters (fleader outputs code)nobrk : no # Omit breakup of x/y & z rapid movesomitcrlf : no # Omit CR/LFomitrefht : no # Dont use reference height on first non-canned Z moveomitseq : yes # Omit sequence no.omitz :
16、no # Omit first Z movement for non-canned-cyclesprogname : 1 # Use uppercase for program namescalex : 1.0 # Scaling of .NCI at input - x,y,z,i,j,kscaley :scalez :seqmax : 9999 # Max. sequence no.skipmotest: no # Skip motion test in linearspaces : 1 # No. of spaces to add between fieldstooltable : 1
17、# Read for tool table and pwrtt absswp : 0 # Absolute sweepdrlgsel : -1 # Drill Select Initializemaxfrdeg : 9999 # Limit for feed in deg/minabsinc : 0 # Absolute/Incremental toggle for modality tcnt : 0 # Count the number of tool changesadelta : 0 # Calculation for deg/minldelta :zdelta :alzdelta :f
18、rdelta :frdegcalc :circum :rotstrt : 1 # Flag for first rotary positionnewglobal : 1 # Error Check (Leave this variable set to 1)# FORMULAS - global formulasssrange = mi3 # Gear Range Selectspeed = abs ( ss ) # Absolute spindle speedarcradm = arcrad # Negative arcradspdlsel = fsg3(ss) # Spindle on s
19、elector based on pos. or neg. ss# CANNED CYCLES - select long or short codeusecandrill : yes # Use canned cycle for drillusecanpeck : yes # Use canned cycle for Peckusecanchip : yes # Use canned cycle for Chip Breakusecantap : yes # Use canned cycle for Tapusecanbore1 : yes # Use canned cycle for Bo
20、re1usecanbore2 : yes # Use canned cycle for Bore2usecanmisc1 : yes # Use canned cycle for Misc1usecanmisc2 : yes # Use canned cycle for Misc2# Lookup table definitions - for math functions FLOOK and FRANGEflktbl 1 3 # Lookup table definitions - table no. - no. entries 40 1000 # Low gear range 41 2500 # Med gear range 42 5000 # Hi gear range# Strings - String labels must start with s - they are not pre-assigned# -
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1