# 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 # --------------------------------------------------------------------------