zingilingiling
-
Posts
17 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by zingilingiling
-
-
currently the post processor generates me this programN10 / NOM DU PROGRAMME - TN12 / DATE: 30-07-14 HEURE:11:39N14 / OUTIL:01 DIAMETRE:20.0000 CONTOURNAGE.... )N16 /----------------------------------------------------N18 /----------------------------------------------------N20 G99N22 G40 T1 M6N24 G4 S1200 M3N26 G0 X20. Y-90.N28 Z50.N30 Z10.N32 G1 Z-20. F300.N34 G41 G-1 Y-70.N36 G3 X0. Y-50. R20.N38 G1 X-50.N40 Y50.N42 X50.N44 Y-50.N46 X0.N48 G3 X-20. Y-70. R20.N50 G40 G1 Y-90.N52 Z-10.N54 G0 Z50.N56 G40 T0N58 /ARRET ARROSAGEN60 M9N62 /ARRET BROCHEN64 M5N66 /FIN DE PROGRAMMEN68 M2I want====>N100 /NOM DU PROGRAMME - TN102 /DATE: 30-07-14 HEURE:11:39N104 /OUTIL:01 DIAMETRE:20.0000 CONTOURNAGE.... )N106 /----------------------------------------------------N108 /----------------------------------------------------N110 G99N112 G40 T1 M6N114 G4 S1200 M3N116 G0 X20. Y-90.N118 Z50.N120 Z10.N122 G1 Z-20. F300.N124 G41N126 G-1 Y-70.N128 G3 X0. Y-50. R20.N130 G1 X-50.N132 Y50.N134 X50.N136 Y-50.N138 X0.N140 G3 X-20. Y-70. R20.N142 G40 G1 Y-90.N144 Z-10.N146 G0 Z50.N148 G40 T0N150 /ARRET ARROSAGEN152 M9N154 /ARRET BROCHEN156 M5N158 /FIN DE PROGRAMMEN160 M2I just need that after G41 or G42 there is a "G-1" with the axis movements.Otherwise for linear and circular movements I need a G1 / G2/G3.
-
the post processor or mastercam V9 does not recognize the symbol "$"
-
Post-Processeur combiné de Fraisage et de Tournage Version 9.10 © Copyright 1992-2003 CNC Software, Inc.Traitement du fichier par MPTIGER4 TEST...Caractère incorrect$
-
# Post Name : MPTIGER4# Product : MILL# Machine Name : SHARNOA TIGER 4# Control Name : TIGER 4# Description : SHARNOA TIGER 4 MILL POST# 4-axis/Axis subs. : NO# 5-axis : NO# Subprograms : NO# Executable : MP 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 - Updated for Mill Version 8.1# CNC 01/09/02 - Initial post update for V9.0# CNC 02/04/03 - Initial post update for V9.1## ---------------#| FEATURES: |# ------------------------------------------------------------------------# Users Note:## Following Misc_Reals & Misc_Integers are used:## mi1 - Work coordinate 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.###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### Options / Usage:# It is recommended 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.## END_HEADER$## --------------------------------------------------------------------------# DEBUG/PROGRAM SWITCHES, debugging and program switches# --------------------------------------------------------------------------fastmode : yes # Optimize processing time (set to no for debugging)bug1 : 1 # 0=No display, 1=Generic list box, 2=Editorbug2 : 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? (leave as yes)skp_lead_flgs : 1# Do NOT use v9 style contour flagsget_1004 : 1 # Find gcode 1004 with getnextop?rpd_typ_v7 : 1 # Use Version 7 style contour flags?strtool_v7 : 2 # Use Version 7 toolname?stagetool : 0 # 0 = 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=delta# --------------------------------------------------------------------------fs 1 0.4 #Decimal, absolute, 4 placefs 2 0.4d #Decimal, deltafs 3 1 0 #Integer, not leadingfs 4 2 0l #Integer, two leadingfs 5 3 0l #Integer, 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 - Linear# --------------------------------------------------------------------------fmt 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 position# --------------------------------------------------------------------------# Axis output formats - Circular# --------------------------------------------------------------------------fmt 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 substitution# --------------------------------------------------------------------------fmt A 9 xangle # Linear to rotary calculation of Xfmt B 9 yangle # Linear to rotary calculation of Y# --------------------------------------------------------------------------# Program & Sequence number format# --------------------------------------------------------------------------fmt O 6 progno # Program numberfmt N 3 n # Sequence nos.# --------------------------------------------------------------------------# Tool format# --------------------------------------------------------------------------fmt T 3 t # Tool Nofmt T 3 first_tool# First Tool Used (bldnxtool: yes)fmt T 3 next_tool # Next Tool Used (bldnxtool: yes)fmt D 3 tloffno # Diameter Offset Nofmt H 3 tlngno # Length Offset Nofmt "OUTIL:" 4 tnote # Note formatfmt "" 4 toffnote # Note formatfmt "" 4 tlngnote # Note formatfmt "DIAMETRE:" 11 tldia # Note format# --------------------------------------------------------------------------# Spindle Speeds & Feedrate output formats# --------------------------------------------------------------------------fmt S 6 speed # Spindle Speedfmt F 8 fr # Feedratefmt F 7 frdeg # Feedrate for rotaryfmt M 3 gear # Gear range# --------------------------------------------------------------------------# Drill variable formats# --------------------------------------------------------------------------fmt G 3 drillref # Initial / Reference Toggle (G98/G99)fmt P 10 dwell # Dwellfmt Z 1 initht # Initial Heightfmt P 1 refht # Reference Heightfmt Q 1 depth # Depthfmt E 1 peck1 # First peck increment (positive) #JQ was Q 10fmt 1 peck2 # Second or last peck (positive)fmt 1 peckclr # Safety distancefmt 1 retr # Retract heightfmt F 8 frplunge # Plunge feedrate in drill cycles# --------------------------------------------------------------------------# Miscellaneous output formats# --------------------------------------------------------------------------fmt M 5 ssrange # Spindle Speed Rangefmt C 4 coolant # Coolantfmt M 4 cantext #canned text# --------------------------------------------------------------------------# INITIALIZE - initialize system variables and define user variables# --------------------------------------------------------------------------arcoutput : 1 # 0 = IJK, 1 = R no sign, 2 = R signed neg. over 180breakarcs : 0 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcsarctype : 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 onlyarccheck : 1 # Check for small arcs, convert to linearltol : .002 # Length tolerance for arccheckbldnxtool : yes # Build next tool tableomitseq : no # Omit sequence numbers?progname : 1 # Use uppercase for program name (sprogname)scalex : 1.0 # Scaling of .NCI at input - x,y,z,i,j,kscaley : 1.0 # Scaling of .NCI at input - x,y,z,i,j,kscalez : 1.0 # Scaling of .NCI at input - x,y,z,i,j,kseqmax : 9999 # Max. sequence numberskipmotest: no # Skip motion test in linearspaces : 1 # No. of spaces to add between fieldstooltable : 1 # Read for tool table and pwrttabsswp : 0 # Absolute sweepmaxfrdeg : 999 # Limit for feed in deg/minabsinc : 0 # Absolute/Incremental toggle for modalitytcnt : 0 # Count the number of tool changesadelta : 0 # Calculation for deg/minldelta : 0 # Calculation for deg/minzdelta : 0 # Calculation for deg/minalzdelta : 0 # Calculation for deg/minfrdelta : 0 # Calculation for deg/minfrdegcalc : 0 # Calculation for deg/mincircum : 0 # Calculation for deg/minrotstrt : 1 # Flag for first rotary position#Cantext string definitions (spaces must be padded here)sm00 "M00"sm01 "M01"strm "M"strtextnostrcantextsblank# --------------------------------------------------------------------------# FORMULAS - global formulas# --------------------------------------------------------------------------ssrange = mi3 # Gear Range Selectspeed = abs ( ss ) # Absolute spindle speedarcradm = arcrad # Negative arcradspdlsel = fsg3(ss) # Spindle on selector based on pos. or neg. ss# --------------------------------------------------------------------------# CANNED CYCLES - select long or short code# --------------------------------------------------------------------------usecandrill : 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 Bore1usecanbore2 : 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 FRANGE# --------------------------------------------------------------------------flktbl 1 3 # Lookup table definitions - table no. - no. entries40 1000 # Low gear range41 2500 # Med gear range42 5000 # Hi gear range# --------------------------------------------------------------------------# Strings - String labels must start with 's' - they are not pre-assigned# --------------------------------------------------------------------------#Select operation notesop00 NULL........... # String definitionsop01 CONTOURNAGE.... # " "sop02 CONTOURNAGE.... # " "sop03 FORET PERCAGE.. # " "sop04 POCHE.......... # " "sop05 RULED.......... # " "sop06 2D-SWEPT....... # " "sop07 3D-SWEPT....... # " "sop08 REVOLVED....... # " "sop09 LOFT........... # " "sop10 COONS.......... # " "sop11 FILLET......... # " "sop12 FLOWLINE....... # " "sop13 M.FINISH....... # " "sop14 M.ROUGH........ # " "sop15 POINT.......... # " "sop16 DRILL5AX....... # " "sop17 CURVE5AX....... # " "sop18 OP18........... # " "sop19 OP19........... # " "sop20 OP20........... # " "sopnote # Target stringfstrsel sop00 opcode sopnote# --------------------------------------------------------------------------# Select motion G codesg00 G0 # Linear movement at rapid feedratesg01 G1 # Linear movement at feedratesg02 G2 # Circular interpolation CWsg03 G3 # Circular interpolation CCWsgcode # Target stringfstrsel sg00 gcode sgcode# --------------------------------------------------------------------------# Select incremental or absolute G codesg90 G90 # Absolute G codesg91 G91 # Incremental G codesgabsinc # Target stringfstrsel sg90 absinc sgabsinc# --------------------------------------------------------------------------# Select spindle startsm04 M4 # Spindle reversesm05 M5 # Spindle offsm03 M3 # Spindle forwardspdlon # Target stringfstrsel sm04 spdlsel spdlon# --------------------------------------------------------------------------# Cutter compensation codescc0 "" # Cutter compensation state not changedsg40 G40 # Cancel cutter compensationsg41 "G41" # Cutter compensation left ###################sg42 "G42" # Cutter compensation right ##################sg140 G40 # Last linear move cancel cutter comp (see note)# Note: to cancel comp after last move, remove G40 string# with sg140 and remove "#" at the postline call "pcancelcc"sccomp # Target stringfstrsel scc0 ccomp sccomp# --------------------------------------------------------------------------# Select work plane G codesg17 G17 # XY plane codesg19 G19 # XZ plane codesg18 G18 # YZ plane codesgplane # Target stringfstrsel sg17 plane sgplane# --------------------------------------------------------------------------# Work coordinate systemsg50 G92 # Work coordinate system G codesg51 G92 # " " " " "sg52 G92 # " " " " "sg53 G92 # " " " " "sg54 G54 # " " " " "sg55 G55 # " " " " "sg56 G56 # " " " " "sg57 G57 # " " " " "sg58 G58 # " " " " "sg59 G59 # " " " " "sgwcs # Target stringfstrsel sg50 mi1 sgwcs# --------------------------------------------------------------------------# Canned drill cycle string selectsg81 G81 # drill - sans temporisationsg81d G82 # drill - avec temporisationsg83 G81 # peck drill - sans temporisation #JQ made G81 - was G83sg83d G83 # peck drill - avec temporisationsg73 G73 # chip break - sans temporisationsg73d G73 # chip break - avec temporisationsg84 G84 # tap - sans temporisationsg84d G74 # tap - avec temporisation (selects left hand)sg85 G85 # bore #1 - sans temporisationsg85d G89 # bore #1 - avec temporisationsg86 G86 # bore #2 - sans temporisationsg86d G86 # bore #2 - avec temporisationsgm1 G81 # misc #1 - sans temporisationsgm1d G82 # misc #1 - avec temporisationsgm2 G81 # misc #2 - sans temporisationsgm2d G82 # misc #2 - avec temporisationsgdrill # Target stringdrlgsel = drillcyc * 2 + fsg2 ( dwell ) # 16 possible combinations:# drillcyc = 0..7# dwell = 0 or non-zero (2 states)fstrsel sg81 drlgsel sgdrill# --------------------------------------------------------------------------# Generate 'sgear' stringsgear0 M** # auto gear rangesgear1 M41 # Low gear rangesgear2 M42 # Med gear rangesgear3 M43 # High gear range - selected in parameters by mi3sgearfstrsel sgear0 gear sgear# --------------------------------------------------------------------------# POSTLINES, USER-DEFINED - Postline labels start with 'p'.# End a line with ',' to continue on the next line.# End a line with ', e' to generate carriage return and linefeed.# --------------------------------------------------------------------------# Program general output control, user defined# --------------------------------------------------------------------------pinit # Initialize Varsprv_fr = 999.999prv_frdeg = 999.999prv_frplunge = 999.999linarc = 0rotstrt = 1pcomment # Manual Entry - COMMENTS (on a block by itself) 1005,1006"/", scommpabs # Absolute G code outputabsinc = 0sgabsincpinc # Incremental G code outputabsinc = 1sgabsincpcooloff # Coolant off "M" code outputif prv_coolant > 0, "M9"if prv_coolant > 0, prv_coolant = 0pcoolon # Coolant off "M" code outputif coolant = 1, "M7" # Floodif coolant = 2, "M7" # Mistif coolant = 3, "M7" # Toolif prv_coolant > 0, !coolantpcoolnl # Coolant off "M" code outputif coolant = 0, "M9" # Offif coolant = 1, "M7" # Floodif coolant = 2, "M7" # Mistif coolant = 3, "M7" # Toolif prv_coolant > 0, !coolantpfr # Feedrate W/O Negative Feedratesif fr > 0, fr# --------------------------------------------------------------------------# Canned Text# --------------------------------------------------------------------------pcan #Canned text - before output callstrcantext = sblankif cant_no > 0,[if cant_pos1 = 0, pcant_1if cant_pos2 = 0, pcant_2if cant_pos3 = 0, pcant_3if cant_pos4 = 0, pcant_4if cant_pos5 = 0, pcant_5if cant_pos6 = 0, pcant_6if cant_pos7 = 0, pcant_7if cant_pos8 = 0, pcant_8if cant_pos9 = 0, pcant_9if cant_pos10 = 0, pcant_10n, strcantext, estrcantext = sblank]pcan1 #Canned text - with movestrcantext = sblankif cant_no > 0,[if cant_pos1 = 1, pcant_1if cant_pos2 = 1, pcant_2if cant_pos3 = 1, pcant_3if cant_pos4 = 1, pcant_4if cant_pos5 = 1, pcant_5if cant_pos6 = 1, pcant_6if cant_pos7 = 1, pcant_7if cant_pos8 = 1, pcant_8if cant_pos9 = 1, pcant_9if cant_pos10 = 1, pcant_10]if cstop, strcantext = strcantext + sm00if cgstop, strcantext = strcantext + sm01#Output of strcantext occurs at the end of the output linepcan2 #Canned text - after output callstrcantext = sblankif cant_no > 0,[if cant_pos1 = 2, pcant_1if cant_pos2 = 2, pcant_2if cant_pos3 = 2, pcant_3if cant_pos4 = 2, pcant_4if cant_pos5 = 2, pcant_5if cant_pos6 = 2, pcant_6if cant_pos7 = 2, pcant_7if cant_pos8 = 2, pcant_8if cant_pos9 = 2, pcant_9if cant_pos10 = 2, pcant_10n, strcantext, estrcantext = sblank]pcant_1 #Canned text - output callcantext = cant_val1pcant_outpcant_2 #Canned text - output callcantext = cant_val2pcant_outpcant_3 #Canned text - output callcantext = cant_val3pcant_outpcant_4 #Canned text - output callcantext = cant_val4pcant_outpcant_5 #Canned text - output callcantext = cant_val5pcant_outpcant_6 #Canned text - output callcantext = cant_val6pcant_outpcant_7 #Canned text - output callcantext = cant_val7pcant_outpcant_8 #Canned text - output callcantext = cant_val8pcant_outpcant_9 #Canned text - output callcantext = cant_val9pcant_outpcant_10 #Canned text - output callcantext = cant_val10pcant_outpcant_out #Canned text - build the string for output#Build the cantext stringif cantext = 1, strcantext = strcantext + sm00if cantext = 2, strcantext = strcantext + sm01if cantext > 2,[strtextno = no2str(cantext)strcantext = strcantext + strm + strtextno]# --------------------------------------------------------------------------# Work coordinate output, user defined# --------------------------------------------------------------------------pg92_sof # G92 coordinate setting at start"/", n, pinc, "G28", "Z0.", e"/", n, "G28", "X0.", "Y0.", e"/", n, *sgwcs, *xh, *yh, *zh, epg92_out # G92 coordinate setting at tool change"/", n, "G28", "X0.", "Y0.", eif gcode <> 1003, "/", n, *sgwcs, *xh, *yh, *zh, epg92_tst # G92 coordinate test for outputif mi1 > 0, pg92_outpwcs # G54+ coordinate settingif mi1 >= 4, *sgwcs# --------------------------------------------------------------------------# Gear selection control, user defined# --------------------------------------------------------------------------pgear # Find spindle rangegear = frange ( 1, speed )*gearprange # Find spindle rangeif use_gear = 1, pgear# --------------------------------------------------------------------------# Cutter comp. output control, user defined# --------------------------------------------------------------------------pccdia2 # Cutter Compensation2if ccomp <> 4, tloffnopccdia # Cutter Compensationif ccomp <> 0, pccdia2# --------------------------------------------------------------------------# Axis substitution motion, user defined# --------------------------------------------------------------------------pdrlxyrot # Substitute Axis X/Y with Rotary axis w/ drillingxangle = xsyangle = ysif rotaxis = 0, x, yif rotaxis = 1, y, xangleif rotaxis = 2, x, yanglepfrd # Feedrate W/O Negative Feedrates (deg/min)if frdeg > maxfrdeg, frdeg = maxfrdegif frdelta > .5, *frdeg #Value to exceed to output frdegprotaxis1a # Substitute Axis X/Y with Rotary axisif rotstrt = 0, pcan1, n, sgcode, y, z, *xangle, pfrd, strcantext, eif rotstrt = 1, n, xangle, eif rotstrt = 1, pcan1, n, sgcode, y, z, pfrd, strcantext, eprotaxis1 # Substitute Axis X/Y with Rotary axispcanif gcode = 0, pcan1, n, sgcode, y, z, *xangle, strcantext, eif gcode = 1, protaxis1apcan2protaxis2a # Substitute Axis X/Y with Rotary axisif rotstrt = 0, pcan1, n, sgcode, x, z, *yangle, pfrd, strcantext, eif rotstrt = 1, n, yangle, eif rotstrt = 1, pcan1, n, sgcode, x, z, pfrd, strcantext, eprotaxis2 # Substitute Axis X/Y with Rotary axispcanif gcode = 0, pcan1, n, sgcode, x, z, *yangle, strcantext, eif gcode = 1, protaxis2apcan2protaxis # Substitute Axis X/Y with Rotary axisxangle = xsyangle = ysif rotstrt = 1, !frif fr < 0, fr = prv_fr!frif rotaxis = 1, ldelta = abs ( y - prv_y )if rotaxis = 2, ldelta = abs ( x - prv_x )zdelta = abs ( z - prv_z )if rotaxis = 1, adelta = ( ( abs ( xangle - prv_xangle ) ) / 360 ) * circumif rotaxis = 2, adelta = ( ( abs ( yangle - prv_yangle ) ) / 360 ) * circumalzdelta = sqrt ( adelta^2 + ldelta ^2 + zdelta^2 )frdegcalc = fr * ( 360 / circum )if alzdelta <> 0, frdeg = ( adelta / alzdelta ) * frdegcalcif adelta = 0, frdeg = frfrdelta = abs ( frdeg - prv_frdeg )if rotaxis = 1, protaxis1if rotaxis = 2, protaxis2if gcode = 1, rotstrt = 0!x, !y, !zprotary # Rotary Moveif rotaxis = 1, xr = 0 #Force X to zeroif rotaxis = 2, yr = 0 #Force Y to zeroif rotaxis > 0, linarc = 1circum = rotdia * pi# --------------------------------------------------------------------------# Axis linear/circular motion, user defined# --------------------------------------------------------------------------parctyp2 # Arc output for R w/ sign over 180 degree sweepabsswp = abs ( sweep )@absswpif absswp <= 180, *arcradif absswp > 180, *arcradmparctyp1 # Arc output for R w/ no sign*arcradparctyp0 # Arc output for IJKif plane = 0, *i, *j, kif plane = 1, i, *j, *kif plane = 2, *i, j, *kparctyp # Select the arc outputif arcoutput = 0 | full_arc_flg | arc_pitch, parctyp0else,[if arcoutput = 1, parctyp1if arcoutput = 2, parctyp2]prapidm # Linear line movement - at rapid feedratepcanpcan1, n, sgplane, sccomp, sgcode, x, y, z, strcantext, epcan2plinm # Linear line movement - at feedratepcanpcan1, n, sccomp, sgcode, pApproach, x, y, z, pfr, strcantext, epcan2pcirm # Circular interpolationpcanpcan1, n, sgplane, sccomp, sgcode, pApproach, x, y, z, parctyp, pfr, strcantext, epcan2#plinm # Linear line movement - at feedrate# pcan# pcan1,n, sccomp, sgcode, x, y, z, pfr, strcantext, e# pcan2#pcirm # Circular interpolation# pcan# pcan1, n, sgplane, sccomp, sgcode, x, y, z, parctyp , pfr, strcantext, e# pcan2# --------------------------------------------------------------------------# Drilling, user defined# --------------------------------------------------------------------------pdrillref # Determine G98 or G99if initht <> refht, drillref = 98if initht = refht, drillref = 99pdwell # Determine whether to output dwellif dwell <> 0, *dwellptlchg0dr3 # Null tool change for drillinggcode = 0if zr < prv_zr, n, sgcode, *xr, *yr, en, sgcode, *zr, eptlchg0dr2 # Null tool change for drillingif zr <> prv_zr, ptlchg0dr3ptlchg0drl # Null tool change for drillingif prv_opcode = 3, ptlchg0dr2# --------------------------------------------------------------------------# POSTLINES, PRE-DEFINED - Postline names are pre-assigned.# Lines do not need to end with ', e' for carriage return and linefeed.# --------------------------------------------------------------------------pheader # File header" ", en, "/ NOM DU PROGRAMME -", sprognamen, "/ DATE: ", date, " HEURE:", timepsof0 # Start of file for tool zeropsofpsof # Start of file for non-zero tool numberpinit!opcode, !coolantif tcnt = 1, stagetool = 1 #######################*progno ###################################commentif mi1 <= 3, #pg92_sof #########################n, "G99" #################################n, "/----------------------------------------------------"n, "/----------------------------------------------------"n, "G99"########################################if stagetool = 0, n, "G40", *t, "M6"if stagetool = 1, n, "G40", *next_tool, "M6"protaryn, "G4", *speed, *spdlonpcanpcan1, n, "G0", pabs, *xr, *yr, strcantext, en, *zr, pcoolonpcan2ptlchg0 # Null tool changeif opcode = 3, ptlchg0drlif prv_speed <> speed, n, speedif coolant <> prv_coolant, n, pcoolnl!opcode, !coolantpcanptlchg # Tool changepinit!opcode#n, "/POSITION CHANGEMENT OUTIL"#n, "G0", *xh, *yh, *zhn, "G40 T0" #JQn, "/ARRET ARROSAGE"n, "M9"n, "/ARRET BROCHE"n, "M5"n, "/ARRET MACHINEn, "M00"n, "/----------------------------------------------------"n, "/----------------------------------------------------"n, "/"if mi1 <= 3, pg92_tstif stagetool = 0, n, "G40", *t, "M6"if stagetool = 1, n, "G40", *next_tool, "M6"n, "G4", *speed, *spdloncommentprotarypcanpcan1, n, "G0", pabs, *xr, *yr, strcantext, epcan2n, *zr, pcoolon!coolantpeof0 # End of file for tool zeropeofpeof # End of file for non-zero tool#n, "/POSITION CHANGEMENT OUTIL"#n, "G0", *xh, *yh, *zhn, "G40 T0"n, "/ARRET ARROSAGE"n, "M9"n, "/ARRET BROCHE"n, "M5"n, "/FIN DE PROGRAMME"n, "M2"# --------------------------------------------------------------------------# Axis motion# --------------------------------------------------------------------------prot0 # Toolplane postline - Custom post requiredprot # Toolplane postline - Custom post requiredprapid # Linear line movement - at rapid feedrateif rotaxis <> 0, protaxisif rotaxis = 0, prapidmpzrapid # Linear movement in Z axis only - at rapid feedraten, sgcode, zplin # Linear line movement - at feedrateif rotaxis <> 0, protaxisif rotaxis = 0, plinmpz # Linear movement in Z axis only - at feedraten, sgcode, z, pfrpcir # Circular interpolationif rotaxis <> 0, protaxisif rotaxis = 0, pcirm# --------------------------------------------------------------------------# Drilling# --------------------------------------------------------------------------pdrill # Canned Drill Cyclepdrillrefn, *sgdrill, pdrlxyrot, *refht, *depth, *initht, pdwell, *frplungeppeck # Canned Peck Drill Cyclepdrillrefn, *sgdrill, pdrlxyrot, *refht, *depth, *peck1, *frplungepchpbrk # Canned Chip Break Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *peck1, *frplungeptap # Canned Tap Cyclepdrillrefn, *sgdrill, pdrlxyrot, *refht, *depth, *initht, *frplungepbore1 # Canned Bore #1 Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, pdwell, *frplungepbore2 # Canned Bore #2 Cyclepdrillrefn, *drillref, *sgdrill, pdrlxyrot, *depth, *refht, *frplungepmisc1 # Canned Misc #1 Cycle (User Option)pdrillpmisc2 # Canned Misc #2 Cycle (User Option)pdrillpdrill_2 # Canned Drill Cyclen, pdrlxyrot, refht, depth, *peck1ppeck_2 # Canned Peck Drill Cyclepdrill_2pchpbrk_2 # Canned Chip Break Cyclepdrill_2ptap_2 # Canned Tap Cyclepdrill_2pbore1_2 # Canned Bore #1 Cyclepdrill_2pbore2_2 # Canned Bore #2 Cyclepdrill_2pmisc1_2 # Canned Misc #1 Cyclepdrill_2pmisc2_2 # Canned Misc #2 Cyclepdrill_2pcanceldc # Cancel canned drill cycle!gcoden, "G0", *zr #JQ G0 was G80prv_z = inithtpcancelcc # Cancel cutter comp.#n, "G40"pwrtt # Write tool table, scans entire file, null tools are negativetnote = ttoffnote = tloffnotlngnote = tlngnoif t >= 0, n, "/", *tnote, " ", *tldia, " ",*sopnote, ")"if t >= 0, tcnt = tcnt + 1# --------------------------------------------------------------------------# Numbered questions for Mastercam Mill# --------------------------------------------------------------------------38. Rapid feedrate? 300.01538. Rapid feedrate (metric)? 10000.080. Communications port number for receive and transmit (1 or 2) ? 281. Data rate (110,150,300,600,1200,2400,4800,9600,14400,19200,38400)? 30082. Parity (E/O/N)? E83. Data bits (7 or 8)? 784. Stop bits (1 or 2)? 285. Strip line feeds? N86. Delay after end of line (seconds)? 087. Ascii, Eia, or Binary (A/E/B)? A88. Echo keyboard to screen in terminal emulation? n89. Strip carriage returns? N90. Drive and subdirectory for NC files?91. Name of executable post processor? MP92. Name of reverse post processor? RP93. Reverse post PST file name?100. Number of places BEFORE the decimal point for sequence numbers? 3101. Number of places AFTER the decimal point for sequence numbers? 0103. Maximum spindle speed? 5000107. Average time for tool change (seconds)? 2.0159. Show first and last position as fully compensated in simulation? n161. Enable Home Position button? y162. Enable Reference Point button? n163. Enable Misc. Values button? y164. Enable Rotary Axis button? n165. Enable Tool Plane button? n166. Enable Construction Plane button? n167. Enable Tool Display button? y168. Check tplane during automatic work origin creation? n# --------------------------------------------------------------------------# Default Miscellaneous Real Values# --------------------------------------------------------------------------201. Default miscellaneous real variable 1 (mr1)? 0.0202. Default miscellaneous real variable 2 (mr2)? 0.0203. Default miscellaneous real variable 3 (mr3)? 0.0204. Default miscellaneous real variable 4 (mr4)? 0.0205. Default miscellaneous real variable 5 (mr5)? 0.0206. Default miscellaneous real variable 6 (mr6)? 0.0207. Default miscellaneous real variable 7 (mr7)? 0.0208. Default miscellaneous real variable 8 (mr8)? 0.0209. Default miscellaneous real variable 9 (mr9)? 0.0210. Default miscellaneous real variable 10 (mr10)? 0.0# --------------------------------------------------------------------------# Default Miscellaneous Real Values (METRIC)# --------------------------------------------------------------------------1601. Default miscellaneous real variable 1 (mr1) (metric)? 0.01602. Default miscellaneous real variable 2 (mr2) (metric)? 0.01603. Default miscellaneous real variable 3 (mr3) (metric)? 0.01604. Default miscellaneous real variable 4 (mr4) (metric)? 0.01605. Default miscellaneous real variable 5 (mr5) (metric)? 0.01606. Default miscellaneous real variable 6 (mr6) (metric)? 0.01607. Default miscellaneous real variable 7 (mr7) (metric)? 0.01608. Default miscellaneous real variable 8 (mr8) (metric)? 0.01609. Default miscellaneous real variable 9 (mr9) (metric)? 0.01610. Default miscellaneous real variable 10 (mr10) (metric)? 0.0# --------------------------------------------------------------------------# Enable/Disable Miscellaneous Real Variable switches# --------------------------------------------------------------------------1611. Enable miscellaneous real variable 1? y1612. Enable miscellaneous real variable 2? y1613. Enable miscellaneous real variable 3? y1614. Enable miscellaneous real variable 4? y1615. Enable miscellaneous real variable 5? y1616. Enable miscellaneous real variable 6? y1617. Enable miscellaneous real variable 7? y1618. Enable miscellaneous real variable 8? y1619. Enable miscellaneous real variable 9? y1620. Enable miscellaneous real variable 10? y# --------------------------------------------------------------------------# Default Miscellaneous Integer Values# --------------------------------------------------------------------------301. Default Work Coordinate System (0 thru 3=G92, 4 thru 9=G54-G59)? 4302. Miscellaneous integer variable 2 (mi4)? 0303. Miscellaneous integer variable 3 (mi4)? 0304. Miscellaneous integer variable 4 (mi4)? 0305. Miscellaneous integer variable 5 (mi5)? 0306. Miscellaneous integer variable 6 (mi6)? 0307. Miscellaneous integer variable 7 (mi7)? 0308. Miscellaneous integer variable 8 (mi8)? 0309. Miscellaneous integer variable 9 (mi9)? 0310. Miscellaneous integer variable 10 (mi10)? 0# --------------------------------------------------------------------------# Enable/Disable Miscellaneous Integer Variable switches# --------------------------------------------------------------------------1621. Enable miscellaneous integer variable 1? y1622. Enable miscellaneous integer variable 2? y1623. Enable miscellaneous integer variable 3? y1624. Enable miscellaneous integer variable 4? y1625. Enable miscellaneous integer variable 5? y1626. Enable miscellaneous integer variable 6? y1627. Enable miscellaneous integer variable 7? y1628. Enable miscellaneous integer variable 8? y1629. Enable miscellaneous integer variable 9? y1630. Enable miscellaneous integer variable 10? y# --------------------------------------------------------------------------# Configuration File association parameters (default is "y")# --------------------------------------------------------------------------#400. Name of associated cfg file?401. Read SYSTEM COLORS section? y402. Read ALLOCATIONS section? y403. Read TOLERANCES section? y404. Read DATA PATHS section? y405. Read COMMUNICATIONS section? y406. Read DRAFT SETTINGS section? y407. Read MISCELLANEOUS section? y408. Read NC SETTINGS section? y409. Read DIALOG SCRIPTS section? y410. Read DESIGN SETTINGS section? y411. Read PLOTTER SETTINGS section? y412. Read ALT-KEY ASSIGNMENTS section? y413. Read CAD section? y414. Read START/EXIT section? y415. Read SCREEN section? y416. Read FILE NAMES section? y1500. Chook to execute from 'Misc. values' button?1501. Insert parameter information in the ascii NCI? n1502. Write operation information to binary file (.ops)? n1503. Write transform operations (0=transform ops, 1=source ops, 2=both)? 11520. Display a warning when cutter compensation in control simulation finds an error? n1521. Number of controller look-ahead blocks for CDC in control? 21530. Ignore work offset numbers when processing subprograms? y1531. Ignore contour flags when processing subprograms? y# Do NOT manually change the answer for Q.1999 !1999. Product major version number that post supports? 93001. Machine acceleration? 23002. timing size? .1pApproach # Sharnoa non-tangent approachif cc_poss$ > 0 & cstart$ = 2, "G-1"
-
Like I said before, I can't see your post processor. Did you try the changes I suggested?
the problem is that there are "$" symbol in what you have given me and this generates an error.
-
I put the file (post processor) in my first message.
-
-
What code do you have on line 1029?
pApproach # Sharnoa non-tangent approach
if cc_pos$ > 0 & cstart$ = 2, "G-1"
-
error
Post-Processeur combiné de Fraisage et de Tournage Version 9.10 © Copyright 1992-2003 CNC Software, Inc.Traitement du fichier par MPTIGER4...Caractère incorrect$Numéro de ligne de post-processeur 1029Exécution interrompue à cause d'erreur(s) dans le .pst -
error==>invalid variable
-
I get an error the program will not be written
-
is there someone who has an idea. ?
-
yes it is """" G-1 X-8 """, I was wrong.sorry
-
yes it is and it must be added "G-1" with the move (X / Y)
-
this is what I do but the problem is still there.This is not a problem to use mastercam is that the post processor Generates me a bad GCODE.
-
hello, I'm french and I do not speak good English.I use a post processor is not adpater to my CNC (tiger4)I am trying to change the post processor for CNC "SHARNOA" (tiger5).I still use MASTERCAM V9, I managed to make some changes, but I'm stuck on actuelement the tool "G41 / G42) correction.Actually psot processor generates a gcode like this:G41 Y-37. F300================G42 X-8. F200but for my CNC I would need a code like this:G41G-1 Y-37. F300===============G42G 1-X-8. F200Here is a link where I left on the post processor I use.
Thank you for your helpPS: if a person possesses the post processor for 5 tiger I'd be happy.
post Processor Tiger 5
in Post Processor Development Forum
Posted
idea ?