Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

NOTW Programmer

Verified Members
  • Posts

    469
  • Joined

  • Last visited

Everything posted by NOTW Programmer

  1. Dave can you give an example of what the Code would look like for this to be implemented? RandleXX can you share where you got the list of predefined variables? and what U did to fix this up...! Im interested about the SIM can anyone explain ? Thx!
  2. Hey Code...... Do you know by any chance how to put the current PC username on the posted output?. Thx!
  3. Graduating today 8/29/09 Great Class, Happy to have met Mr. Code Breaker.
  4. Thats Great news. Were you able to pinpoint what causes that -Z right before the G70 (FACE FNS)? I've had trouble editing that one. I appreciate any help you can give me. Thanks for the info on the sub_op_id Fix.
  5. I found the User & Pwd... The file is in the lahte Directory and called 2744-090301-A.Z2G
  6. How do you upload, I try to open the link in Windows Explorer but it wants a password.
  7. Ok, well how do I send my post or MCX or upload to FTP, or what part of the postpropcessor should I post for you to look at.
  8. Here is the posted output with those switched. code: % O9030(TEST) G20 (CREATED ON 14-07-09 AT 06:21 ) (TOOL - 1 OFFSET - 1) (OD ROUGH RIGHT - 80 DEG.) ( FACE RGH ) N1 G28 U0. W0. G50 X0. Z0. S1000 T0100 G96 S500 M03 G0 X10.4 Z.15 T0101 M8 G41 X10.3 Z.1 G72 W.05 R0. G72 P100 Q101 U.01 W.005 F.025 N100 G0 G41 Z-.0625 S500 G1 X10. G2 X9.875 Z0. R.0625 G1 X2. N101 G40 Z.1 ( OD RGH ) G0 X10.3 Z.0375 Z.0875 G42 X10.2 Z.0375 G71 U.05 R0. G71 P102 Q103 U.01 W.005 F.025 N102 G0 G42 X10. S500 G1 Z-1.1438 F.01 N103 G40 X10.2 G0 Z.0375 M9 G28 U0. W0. M05 M01 (TOOL - 11 OFFSET - 11) (OD FINISH RIGHT - 35 DEG.) ( OD FNS ) N2 G28 U0. W0. G50 X0. Z0. S1500 T1100 G96 S500 M03 G42 G0 X10. Z.0375 T1111 M8 G70 P100 Q101 ( FACE FNS ) G0 G41 X10.3 G70 P102 Q103 M9 G28 U0. W0. M05 M01 (TOOL - 3 OFFSET - 3) (INSERT DRILL - 2.0 DIA) ( 2" DRILL ) N3 G28 U0. W0. G50 X0. Z0. S1000 T0300 G97 S955 M03 G0 X0. Z.5 T0303 M8 G81 Z-1.7437 Q.25.05 R.02 F.008 G80 G0 Z.5 M9 G28 U0. W0. M05 M01 (TOOL - 5 OFFSET - 5) (ROUGH RIGHT - 80 DEG.) ( ID RGH ) N4 G28 U0. W0. G50 X0. Z0. T0500 G96 S500 M03 G0 X1.9 Z.15 T0505 M8 G41 X2. Z.1 G71 U.05 R0. G71 P104 Q105 U-.01 W.005 F.025 N104 G0 G41 X3.75 S500 G1 Z0. F.01 G2 X3.6875 Z-.0313 R.0313 G1 Z-.1437 N105 G40 X2. G0 Z.1 M9 G28 U0. W0. M05 M01 (TOOL - 7 OFFSET - 7) (ID FINISH MIN. 1.0 DIA. - 55 DEG.) ( ID FNS ) N5 G28 U0. W0. G50 X0. Z0. S1500 T0700 G96 S500 M03 G41 G0 X3.75 Z.1 T0707 M8 G70 P104 Q105 M9 G28 U0. W0. M05 M30 % On the previous post: code: (TOOL - 11 OFFSET - 11) (OD FINISH RIGHT - 35 DEG.) ( FACE FNS ) N2 G28 U0. W0. G50 X0. Z0. S1500 T1100 G96 S500 M03 G41 G0 X10.3 Z-.0625 T1111 M8 <-----this right here G70 P100 Q101 ( OD FNS )G0 G42 X10. G70 P102 Q103 M9 G28 U0. W0. M05 M01 If there is a problem where can I fix it.
  9. Here is the program I was using to edit the post, it has face, od, drilling, id, rough and finish. code: % O9030(TEST) G20 (CREATED ON 13-07-09 AT 14:20 ) (TOOL - 1 OFFSET - 1) (OD ROUGH RIGHT - 80 DEG.) ( FACE RGH ) N1 G28 U0. W0. G50 X0. Z0. S1000 T0100 G96 S500 M03 G0 X10.4 Z.15 T0101 M8 G41 X10.3 Z.1 G72 W.05 R.015 G72 P100 Q101 U.01 W.005 F.025 N100 G0 G41 Z-.0625 S500 G1 X10. G2 X9.875 Z0. R.0625 G1 X2. N101 G40 Z.1 ( OD RGH ) G0 X10.3 Z.0375 Z.0875 G42 X10.2 Z.0375 G71 U.05 R.015 G71 P102 Q103 U.01 W.005 F.025 N102 G0 G42 X10. S500 G1 Z-1.1438 N103 G40 X10.2 M9 G28 U0. W0. M05 M01 (TOOL - 11 OFFSET - 11) (OD FINISH RIGHT - 35 DEG.) ( FACE FNS ) N2 G28 U0. W0. G50 X0. Z0. S1500 T1100 G96 S500 M03 G41 G0 X10.3 Z-.0625 T1111 M8 G70 P100 Q101 ( OD FNS ) G0 G42 X10. G70 P102 Q103 M9 G28 U0. W0. M05 M01 (TOOL - 3 OFFSET - 3) (INSERT DRILL - 2.0 DIA) ( 2" DRILL ) N3 G28 U0. W0. G50 X0. Z0. S1000 T0300 G97 S955 M03 G0 X0. Z.5 T0303 M8 G81 Z-1.7437 Q.25.05 R.02 F.008 G80 G0 Z.5 M9 G28 U0. W0. M05 M01 (TOOL - 5 OFFSET - 5) (ROUGH RIGHT - 80 DEG.) ( ID RGH ) N4 G28 U0. W0. G50 X0. Z0. T0500 G96 S500 M03 G0 X1.9 Z.15 T0505 M8 G41 X2. Z.1 G71 U.05 R.015 G71 P104 Q105 U-.01 W.005 F.025 N104 G0 G41 X3.75 S500 G1 Z0. F.01 G2 X3.6875 Z-.0313 R.0313 G1 Z-.1437 N105 G40 X2. G0 Z.1 M9 G28 U0. W0. M05 M01 (TOOL - 7 OFFSET - 7) (ID FINISH MIN. 1.0 DIA. - 55 DEG.) ( ID FNS ) N5 G28 U0. W0. G50 X0. Z0. S1500 T0700 G96 S500 M03 G41 G0 X3.75 Z.1 T0707 M8 G70 P104 Q105 M9 G28 U0. W0. M05 M01 M00 (Flip Stock) (TOOL - 1 OFFSET - 2) (OD ROUGH RIGHT - 80 DEG.) ( FACE RGH2 ) N6 G28 U0. W0. G50 X0. Z0. S1000 T0100 G96 S500 M03 G0 X10.4 Z.161 T0102 M8 G41 X10.3 Z.111 G72 W.05 R.015 G72 P106 Q107 U.01 W.005 F.025 N106 G0 G41 Z-.0625 S500 G1 X10. G2 X9.875 Z0. R.0625 G1 X2. N107 G40 Z.111 ( OD RGH2 ) G0 X10.3 Z.1 Z.15 G42 X10.2 Z.1 G71 U.05 R.015 G71 P108 Q109 U.01 W.005 F.025 N108 G0 G42 X7.0225 S500 G1 Z0. G3 X7.085 Z-.0313 R.0313 G1 Z-.364 X9.9375 G3 X10. Z-.3952 R.0313 N109 G1 G40 X10.2 M9 G28 U0. W0. M05 M01 (TOOL - 11 OFFSET - 12) (OD FINISH RIGHT - 35 DEG.) ( FACE FNS2 ) N7 G28 U0. W0. G50 X0. Z0. S1500 T1100 G96 S500 M03 G41 G0 X10.3 Z-.0625 T1112 M8 G70 P106 Q107 ( OD FNS2 ) G0 G42 X7.0225 G70 P108 Q109 M9 G28 U0. W0. M05 M01 (TOOL - 5 OFFSET - 6) (ROUGH RIGHT - 80 DEG.) ( ID RGH2 ) N8 G28 U0. W0. G50 X0. Z0. S1000 T0500 G96 S500 M03 G0 X3.3875 Z.15 T0506 M8 G41 X3.4875 Z.1 G71 U.05 R.015 G71 P110 Q111 U-.01 W.005 F.01 N110 G0 G41 X6.5225 S500 G1 Z0. G2 X6.46 Z-.0313 R.0313 G1 Z-.864 G3 X6.21 Z-.989 R.125 G1 X4.5625 G2 X4.5 Z-1.0203 R.0313 G1 Z-1.364 X3.75 G2 X3.6875 Z-1.3953 R.0313 N111 G1 G40 X3.4875 G0 Z.1 M9 G28 U0. W0. M05 M01 (TOOL - 7 OFFSET - 8) (ID FINISH MIN. 1.0 DIA. - 55 DEG.) ( ID FN2 ) N9 G28 U0. W0. G50 X0. Z0. S1500 T0700 G96 S500 M03 G41 G0 X6.5225 Z.1 T0708 M8 G70 P110 Q111 G0 Z0. X3.6875 M9 G28 U0. W0. M05 M30 % This output is obtained with that line commented out, now I do have sequence disabled in the Control but I have omitseq$ = -1 , To enable for LCC maybe thats why it still works. Also in the control I have the sequence start at 100 & Inc 1, eventhoug the swith is disabled. By any chance do you know how I can get rid of the neg coordinate right before the G70?
  10. Actually I dont have that problem, The only problem I have with the G70s is that it will start the Z at N1s Z and that command basically drags the cutting edge across the just finished face. code: G72 P100 Q101 U.01 W.005 F.025 N100 G0 G41 Z-.0625 S500 G1 X10. G2 X9.875 Z0. R.0625 G1 X2. N101 G40 Z.1 ....... N2 G28 U0. W0. G50 X0. Z0. S1500 T1100 G96 S500 M03 G41 G0 X10.3 Z-.0625 T1111 M8 <--- right here, Im working on it right now. G70 P100 Q101 ( OD FNS ) G0 G42 X10. G70 P102 Q103
  11. Well I have finnaly found what nakes my post screw up the P & Q for G70. code: pread_g70 #Read G70 recall buffer foundcc = zero size2 = rbuf (two, zero) #wc2 = one <------- Removed for correct G70 P & Q. 07/13/09 while wc2 <= size2 & foundcc = zero, [ fcc_subid = rbuf (two, wc2) if fcc_subid = sub_op_id$, [ gcodecc = zero ng70s = fcc_ng70s ng70e = fcc_ng70e pbld, n$, *scclgcode, *ng70s, *ng70e, e$ foundcc = one ] ]
  12. My post is based off an MPLFAN, all I have moded so far are the sequence at every tool change. code: seq_tool_n = seq_tool_n + 1 # Sequence numbering - Just for ToolChange pbld, n$, seq_tool_n, *sg28ref, "U0.", [if y_axis_mch, "V0."], "W0.", e$ Does the version 9 of this post do the same thing ?
  13. I have a problem in my post. It will outpu the P and Q from the first OP for every finsih (G70) op. Can anyone help. Thx ! This is my current output: code: (TOOL - 1 OFFSET - 1) (OD ROUGH RIGHT - 80 DEG.) ( FACE RGH ) N1 G28 U0. W0. G50 X0. Z0. S1000 T0100 G96 S500 M03 G0 X10.4 Z.15 T0101 M8 G41 X10.3 Z.1 G72 W.05 R0. G72 P100 Q101 U.01 W.005 F.025 <----- P100 Q101 N100 G0 G41 Z-.0625 S500 G1 X10. G2 X9.875 Z0. R.0625 G1 X2. N101 G40 Z.1 ( OD RGH ) G0 X10.3 Z.0375 Z.0875 G42 X10.2 Z.0375 G71 U.05 R0. G71 P102 Q103 U.01 W.005 F.025 <---P102 Q103 N102 G0 G42 X10. S500 G1 Z-1.1438 N103 G40 X10.2 M9 G28 U0. W0. M05 T0101 M01 (TOOL - 11 OFFSET - 11) (OD FINISH RIGHT - 35 DEG.) ( FACE FNS ) N2 G28 U0. W0. G50 X0. Z0. S1500 T1100 G96 S500 M03 G41 G0 X10.3 Z-.0625 T1111 M8 G70 P100 Q101 <--- THIS ONE IS RIGHT ( OD FNS ) G0 G42 X10. G70 P100 Q101 <--- THIS P & Q SHOULD BE 102 & 103 RESPECTIVELY M9 G28 U0. W0. M05 T1111 M30
  14. I have omitseq = -1 #To enable for LCC and in my machine definition I have #Output sequence #s off but I set Start@100 and Inc of 1 for LCC Here is the Code I have in order to get an N + 1 at the G28 every toolchange. code: # Toolchange / NC output Variable Formats .... #------------------------------------------------ fmt N 4 seq_tool_n #Sequence Toolchange <--- Insert this variable fmt N 4 n$ #Sequence number ...... ltlchg$ #Toolchange, lathe <--- search for ltlchg$ #Toolchange g50 position seq_tool_n = seq_tool_n + 1 # Sequence numbering - Just for ToolChange <--- Insert this to use variable pbld, n$, seq_tool_n, *sg28ref, "U0.", [if y_axis_mch, "V0."], "W0.", e$ <---Insert seq_tool_n before *sg28ref (G28) Voila, Im still working on getting my G70 to pick up the right P and Q; as of now it picks up the op1's P and Q for every finish OP. Can anyone help ?
  15. I also need some help, When I post I get the sequence numbers but for every G70 Cycle the output is the sequenece numbers from the first Rough pass; for evey single finish. code: (Flip Stock) (TOOL - 1 OFFSET - 2) (OD ROUGH RIGHT - 80 DEG. INSERT - CNMG-432) ( FC RGH2 ) G28 U0. W0. G50 X10. Z10. G0 T0102 G50 S700 G96 S400 M03 G0 X12.3 Z.185 M8 G41 X12.2 Z.135 G72 W.05 R.015 G72 P3 Q4 U.02 W.01 F.025 N3 G0 G41 Z0. S400 G1 X-.07 F.01 N4 G40 Z.135 G0 X12.2 M9 G28 U0. W0. M05 T0100 M01 (TOOL - 11 OFFSET - 12) (OD FINISH RIGHT - 35 DEG. INSERT - VNMG-431) ( FC FNS2 ) G28 U0. W0. G50 X10. Z10. G0 T1112 G50 S1500 G96 S400 M03 G41 G0 X12.2 Z0. M8 G70 P1 Q2 --- this is from the first op M9 G28 U0. W0. M05 T1100 M01 (TOOL - 5 OFFSET - 5) (ID ROUGH MIN. .375 DIA. - 75 DEG. INSERT - NONE) ( ID RGH ) G28 U0. W0. G50 X10. Z10. G0 T0505 G50 S700 G96 S400 M03 G0 X.303 Z.15 M8 G42 X.403 Z.1 G72 W.035 R.015 G72 P5 Q6 U-.02 W.01 F.02 N5 G0 G42 Z-.188 S400 G1 X8. F.008 N6 G40 Z.1 G0 X.403 M9 G28 U0. W0. M05 T0500 M01 (TOOL - 7 OFFSET - 7) (ID FINISH MIN. .5 DIA. - 55 DEG. INSERT - NONE) ( ID FNS ) G28 U0. W0. G50 X10. Z10. G0 T0707 G50 S1500 G96 S400 M03 G42 G0 X.403 Z.03 M8 G70 P1 Q2 --- this if from the fisrt op M9 G28 U0. W0. M05 T0700 M30 %
  16. I need this done also, I placed a 27 for my carbide; but for my 1/2 HSS it should be around 5 and the post placed a 27 for my HSS....a bit too fast. I found this post code in another thread maybe this can help. code: # mr5$ "Arc Feedrate Factor" <-multiplies feed by this value # mr6$ "Arc Threshold" <-if arc rad falls below this valuepcirout1 #Output to NC of circular interpolation pcan1, pbld, n$, `sgfeed, sgplane, sgcode, sgabsinc, pccdia,pxout, pyout, pzout, pcout, parc, [ if arcrad$, [if arcrad$ <mr6$ & arcrad$ >-mr6$ & mr5$<>0,feed = feed*mr5$] ], if feed <0.01,feed = 0.01 feed, strcantext, scoolant, e$ [ 07-02-2009, 11:59 AM: Message edited by: williamj ]

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...