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:

PcRobotic

Customers
  • Posts

    913
  • Joined

  • Last visited

Everything posted by PcRobotic

  1. Hi, I would like to list all my workofset in my post and the rest of my post is fine. I wonder how much does it cost? Please take a look the lines below ################################ % O0000 (TEST PROGRAM) (This Post Is Only For - HAAS) (Unproven/ Proven By: ) (ALUMINUM INCH - 2024) (***** Posted Date And Time *****) (JUL.05.2012 @ 3:26PM) (Source - C:\USERS\STEVEN\DESKTOP\TEST PROGRAM.MCX-5) (NC - C:\USERS\STEVEN\DOCUMENTS\MY MCAMX5\MILL\NC\PROGRAM NAME HERE.NC) (****** Note From Programmer ******) (MANUAL ENTRY AREA FROM PROGRAMMER) (PROGRAMMER WANTS ABC SETUP) (SETUP - MAN MUST FOLLOW EDF) (CONFIRM FIRST ARTICALS TO Q.C) (********* Tool List Info *********) (T1 -3" FACE MILL - H1 - D1) (T2 - 1/2 FLAT ENDMILL - H2 - D2) (T4 - 1/4 DRILL - H4 - D4) (T3 - 3/8-16 TAPRH - H3 - D3) (T5 - 3/8 FLAT ENDMILL - H5 - D5 - R0.0500") (******* Work Offset List *******) G54 (I type these work offset in, not automatically generated) G55 (I like the post lists automatically) G56 G57 G58 N1 ( CHECK INSERTS BEFORE RUNNING ) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T1 M06 (3" FACE MILL) G0 G90 G54 X-8.3 Y-.7501 S6000 M3 G43 H1 Z2. T2 M8 Z.2 G1 Z-.0001 F100. X1.8 F50. Y-2.2499 X-8.3 G0 Z2. M5 G91 G28 Z0 M9 M1 N2(USE OLD END MILLS AS POSSIBLE) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T2 M06 ( 1/2 FLAT ENDMILL) G0 G90 G55 X-3. Y1.25 S8000 M3 G43 H2 Z2. T4 M8 Z.2 G1 Z-1. F100. G41 D2 Y.75 F30. G3 X-2.5 Y.25 I.5 J0. G1 X0. G2 X.25 Y0. I0. J-.25 G1 Y-3. G2 X0. Y-3.25 I-.25 J0. G1 X-5. G2 X-5.25 Y-3. I0. J.25 G1 Y0. G2 X-5. Y.25 I.25 J0. G1 X-2.5 G3 X-2. Y.75 I0. J.5 G1 G40 Y1.25 G0 Z2. M5 G91 G28 Z0 M9 M1 N4(CARBIDE DRILL FOR THIS JOB ONLY) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T4 M06 ( 1/4 DRILL) G0 G90 G56 X-4.2277 Y-1.4433 S2000 M3 G43 H4 Z2. T3 M8 G98 G83 Z-.5 R.1 Q.1 F10. X-.6867 M5 G91 G28 Z0 M9 M1 N3(ROLL TAP) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T3 M06 ( 3/8-16 TAPRH) G0 G90 G57 X-4.2277 Y-1.4433 G43 H3 Z2. T5 M8 M29 S200 G98 G84 Z-.5 R.1 F12.5 P100. X-.6867 M5 G91 G28 Z0 M9 M1 N5(BRAND NEW TOOL NEEDED) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T5 M06 ( 3/8 FLAT ENDMILL) G0 G90 G58 X-2.7157 Y-1.6796 S8000 M3 G43 H5 Z2. T1 M8 Z.2 G1 Z.1 F5. G2 X-2.0673 Y-1.3026 Z.0383 I.3242 J.1885 F20. X-2.7157 Y-1.6796 Z-.0235 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.0852 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.147 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.2087 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.2705 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.3322 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.3939 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.4557 I.3242 J.1885 X-2.4505 Y-1.8615 Z-.5 I-.3242 J-.1885 G1 X-2.4795 Y-2.0435 X-2.4585 G3 X-1.9905 Y-1.7673 I-.0105 J.5524 G1 X-2.9475 G2 X-3.0215 Y-1.4911 I.4785 J.2762 G1 X-1.9165 G3 X-1.9905 Y-1.2149 I-.5525 J0. G1 X-2.9475 G2 X-2.4795 Y-.9387 I.4785 J-.2762 G1 X-2.4585 G0 Z.25 G0 G0 X-2.2815 Y-1.1161 Z.2 G1 Z-.5 F5. G41 D5 X-2.6565 F20. G3 X-3.0315 Y-1.4911 I0. J-.375 X-1.9065 I.5625 J0. X-3.0315 I-.5625 J0. X-2.6565 Y-1.8661 I.375 J0. G1 G40 X-2.2815 G0 Z2. M5 G91 G28 Z0 M9 G28 Y0 M30 %
  2. Hi, I'm having problem to list all the work offsets of which I have in the program such as G54, G55, G56 and so on. Below here I have my post and would like the to list like the way I wish to as note Deeply need your helps and appreciated for your time. ############################################# % O0000 (TEST PROGRAM) (This Post Is Only For - HAAS) (Unproven/ Proven By: ) (ALUMINUM INCH - 2024) (***** Posted Date And Time *****) (JUL.05.2012 @ 3:26PM) (Source - C:\USERS\STEVEN\DESKTOP\TEST PROGRAM.MCX-5) (NC - C:\USERS\STEVEN\DOCUMENTS\MY MCAMX5\MILL\NC\PROGRAM NAME HERE.NC) (****** Note From Programmer ******) (MANUAL ENTRY AREA FROM PROGRAMMER) (PROGRAMMER WANTS ABC SETUP) (SETUP - MAN MUST FOLLOW EDF) (CONFIRM FIRST ARTICALS TO Q.C) (********* Tool List Info *********) (T1 -3" FACE MILL - H1 - D1) (T2 - 1/2 FLAT ENDMILL - H2 - D2) (T4 - 1/4 DRILL - H4 - D4) (T3 - 3/8-16 TAPRH - H3 - D3) (T5 - 3/8 FLAT ENDMILL - H5 - D5 - R0.0500") (******* Work Offset List *******) G0 G90 G54 (I typed this line manually and would like the post will automatically list out for me) G0 G90 G55 (I typed this line manually and would like the post will automatically list out for me) G0 G90 G56 (I typed this line manually and would like the post will automatically list out for me) G0 G90 G57 (I typed this line manually and would like the post will automatically list out for me) G0 G90 G58 (I typed this line manually and would like the post will automatically list out for me) N1 ( CHECK INSERTS BEFORE RUNNING ) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T1 M06 (3" FACE MILL) G0 G90 G54 X-8.3 Y-.7501 S6000 M3 G43 H1 Z2. T2 M8 Z.2 G1 Z-.0001 F100. X1.8 F50. Y-2.2499 X-8.3 G0 Z2. M5 G91 G28 Z0 M9 M1 N2(USE OLD END MILLS AS POSSIBLE) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T2 M06 ( 1/2 FLAT ENDMILL) G0 G90 G55 X-3. Y1.25 S8000 M3 G43 H2 Z2. T4 M8 Z.2 G1 Z-1. F100. G41 D2 Y.75 F30. G3 X-2.5 Y.25 I.5 J0. G1 X0. G2 X.25 Y0. I0. J-.25 G1 Y-3. G2 X0. Y-3.25 I-.25 J0. G1 X-5. G2 X-5.25 Y-3. I0. J.25 G1 Y0. G2 X-5. Y.25 I.25 J0. G1 X-2.5 G3 X-2. Y.75 I0. J.5 G1 G40 Y1.25 G0 Z2. M5 G91 G28 Z0 M9 M1 N4(CARBIDE DRILL FOR THIS JOB ONLY) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T4 M06 ( 1/4 DRILL) G0 G90 G56 X-4.2277 Y-1.4433 S2000 M3 G43 H4 Z2. T3 M8 G98 G83 Z-.5 R.1 Q.1 F10. X-.6867 M5 G91 G28 Z0 M9 M1 N3(ROLL TAP) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T3 M06 ( 3/8-16 TAPRH) G0 G90 G57 X-4.2277 Y-1.4433 G43 H3 Z2. T5 M8 M29 S200 G98 G84 Z-.5 R.1 F12.5 P100. X-.6867 M5 G91 G28 Z0 M9 M1 N5(BRAND NEW TOOL NEEDED) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T5 M06 ( 3/8 FLAT ENDMILL) G0 G90 G58 X-2.7157 Y-1.6796 S8000 M3 G43 H5 Z2. T1 M8 Z.2 G1 Z.1 F5. G2 X-2.0673 Y-1.3026 Z.0383 I.3242 J.1885 F20. X-2.7157 Y-1.6796 Z-.0235 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.0852 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.147 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.2087 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.2705 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.3322 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.3939 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.4557 I.3242 J.1885 X-2.4505 Y-1.8615 Z-.5 I-.3242 J-.1885 G1 X-2.4795 Y-2.0435 X-2.4585 G3 X-1.9905 Y-1.7673 I-.0105 J.5524 G1 X-2.9475 G2 X-3.0215 Y-1.4911 I.4785 J.2762 G1 X-1.9165 G3 X-1.9905 Y-1.2149 I-.5525 J0. G1 X-2.9475 G2 X-2.4795 Y-.9387 I.4785 J-.2762 G1 X-2.4585 G0 Z.25 G0 G0 X-2.2815 Y-1.1161 Z.2 G1 Z-.5 F5. G41 D5 X-2.6565 F20. G3 X-3.0315 Y-1.4911 I0. J-.375 X-1.9065 I.5625 J0. X-3.0315 I-.5625 J0. X-2.6565 Y-1.8661 I.375 J0. G1 G40 X-2.2815 G0 Z2. M5 G91 G28 Z0 M9 G28 Y0 M30 %
  3. oh, I know what you meant. I fixed it. Now I'm having another issue can you help me? I would like to list all of my workoffset but I please see below (******* Work Offset List *******) G0 G90 G54 (I hand type this in, how do I make them list out for me?) G0 G90 G55 G0 G90 G56 G0 G90 G57 G0 G90 G58 G0 G90 G59 ################################## % O0000 (TEST PROGRAM) (This Post Is Only For - HAAS) (Unproven/ Proven By: ) (ALUMINUM INCH - 2024) (***** Posted Date And Time *****) (JUL.05.2012 @ 1:21PM) (Source - C:\USERS\STEVEN\DESKTOP\TEST PROGRAM.MCX-5) (NC - C:\USERS\STEVEN\DOCUMENTS\MY MCAMX5\MILL\NC\PROGRAM NAME HERE.NC) (****** Note From Programmer ******) (MANUAL ENTRY AREA FROM PROGRAMMER) (PROGRAMMER WANTS ABC SETUP) (SETUP - MAN MUST FOLLOW EDF) (CONFIRM FIRST ARTICALS TO Q.C) (********* Tool List Info *********) (T1 -3" FACE MILL - H1 - D1) (T2 - 1/2 FLAT ENDMILL - H2 - D2) (T4 - 1/4 DRILL - H4 - D4) (T3 - 3/8-16 TAPRH - H3 - D3) (T5 - 3/8 FLAT ENDMILL - H5 - D5 - R0.0500") (******* Work Offset List *******) G0 G90 G54 (I hand type this in, how do I make them list out for me?) G0 G90 G55 G0 G90 G56 G0 G90 G57 G0 G90 G58 G0 G90 G59 N1 ( CHECK INSERTS BEFORE RUNNING ) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T1 M06 (3" FACE MILL) G0 G90 G54 X-8.3 Y-.7501 S6000 M3 G43 H1 Z2. T2 M8 M98 P0001 / G0 G90 G55 X-8.3 Y-.7501 Z2. / M98 P0001 / G0 G90 G56 X-8.3 Y-.7501 Z2. / M98 P0001 / G0 G90 G57 X-8.3 Y-.7501 Z2. / M98 P0001 / G0 G90 G58 X-8.3 Y-.7501 Z2. / M98 P0001 M5 G91 G28 Z0 M9 M1 N2(USE OLD END MILLS AS POSSIBLE) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T2 M06 ( 1/2 FLAT ENDMILL) G0 G90 G54 X-3. Y1.25 S8000 M3 G43 H2 Z2. T4 M8 M98 P0002 / G0 G90 G55 X-3. Y1.25 Z2. / M98 P0002 / G0 G90 G56 X-3. Y1.25 Z2. / M98 P0002 / G0 G90 G57 X-3. Y1.25 Z2. / M98 P0002 / G0 G90 G58 X-3. Y1.25 Z2. / M98 P0002 M5 G91 G28 Z0 M9 M1 N4(CARBIDE DRILL FOR THIS JOB ONLY) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T4 M06 ( 1/4 DRILL) G0 G90 G54 X-4.2277 Y-1.4433 S2000 M3 G43 H4 Z2. T3 M8 M98 P0003 / G0 G90 G55 X-4.2277 Y-1.4433 Z2. / M98 P0003 / G0 G90 G56 X-4.2277 Y-1.4433 Z2. / M98 P0003 / G0 G90 G57 X-4.2277 Y-1.4433 Z2. / M98 P0003 / G0 G90 G58 X-4.2277 Y-1.4433 Z2. / M98 P0003 M5 G91 G28 Z0 M9 M1 N3(ROLL TAP) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T3 M06 ( 3/8-16 TAPRH) G0 G90 G54 X-4.2277 Y-1.4433 G43 H3 Z2. T5 M8 M98 P0004 / G0 G90 G55 X-4.2277 Y-1.4433 Z2. / M98 P0004 / G0 G90 G56 X-4.2277 Y-1.4433 Z2. / M98 P0004 / G0 G90 G57 X-4.2277 Y-1.4433 Z2. / M98 P0004 / G0 G90 G58 X-4.2277 Y-1.4433 Z2. / M98 P0004 M5 G91 G28 Z0 M9 M1 N5(BRAND NEW TOOL NEEDED) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T5 M06 ( 3/8 FLAT ENDMILL) G0 G90 G54 X-2.7157 Y-1.6796 S8000 M3 G43 H5 Z2. T1 M8 M98 P0005 / G0 G90 G55 X-2.7157 Y-1.6796 Z2. / M98 P0005 / G0 G90 G56 X-2.7157 Y-1.6796 Z2. / M98 P0005 / G0 G90 G57 X-2.7157 Y-1.6796 Z2. / M98 P0005 / G0 G90 G58 X-2.7157 Y-1.6796 Z2. / M98 P0005 M5 G91 G28 Z0 M9 G28 Y0 M30 O0001 (CHECK INSERTS BEFORE RUNNING) Z.2 G1 Z-.0001 F100. X1.8 F50. Y-2.2499 X-8.3 G0 Z2. M99 O0002 Z.2 G1 Z-1. F100. G41 D2 Y.75 F30. G3 X-2.5 Y.25 I.5 J0. G1 X0. G2 X.25 Y0. I0. J-.25 G1 Y-3. G2 X0. Y-3.25 I-.25 J0. G1 X-5. G2 X-5.25 Y-3. I0. J.25 G1 Y0. G2 X-5. Y.25 I.25 J0. G1 X-2.5 G3 X-2. Y.75 I0. J.5 G1 G40 Y1.25 G0 Z2. M99 O0003 G98 G83 Z-.5 R.1 Q.1 F10. X-.6867 M99 O0004 M29 S200 G98 G84 Z-.5 R.1 F12.5 P100. X-.6867 M99 O0005 Z.2 G1 Z.1 F5. G2 X-2.0673 Y-1.3026 Z.0383 I.3242 J.1885 F20. X-2.7157 Y-1.6796 Z-.0235 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.0852 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.147 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.2087 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.2705 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.3322 I.3242 J.1885 X-2.7157 Y-1.6796 Z-.3939 I-.3242 J-.1885 X-2.0673 Y-1.3026 Z-.4557 I.3242 J.1885 X-2.4505 Y-1.8615 Z-.5 I-.3242 J-.1885 G1 X-2.4795 Y-2.0435 X-2.4585 G3 X-1.9905 Y-1.7673 I-.0105 J.5524 G1 X-2.9475 G2 X-3.0215 Y-1.4911 I.4785 J.2762 G1 X-1.9165 G3 X-1.9905 Y-1.2149 I-.5525 J0. G1 X-2.9475 G2 X-2.4795 Y-.9387 I.4785 J-.2762 G1 X-2.4585 G0 Z.25 G0 G0 X-2.2815 Y-1.1161 Z.2 G1 Z-.5 F5. G41 D5 X-2.6565 F20. G3 X-3.0315 Y-1.4911 I0. J-.375 X-1.9065 I.5625 J0. X-3.0315 I-.5625 J0. X-2.6565 Y-1.8661 I.375 J0. G1 G40 X-2.2815 G0 Z2. M99 %
  4. Because I"m force to use sub-program to save time for machining and we want the manual entry for the programmer to insert notes but not duplicating like the one I showed you. Please help.
  5. Hi, I got a preloadwcs instruction from this forum but I don't know which belongs which please help. Which section belongs to postblock? Which section belong wpc and where do I insert exactly? I tried but they failed may be I put into wrong section. I bold the first section and assum they are one section but where do I put? postblock? How about the other sections? Do we have a better way to present this easier to for understanding? Thounsand words of "Thank yous and appriciations", Steven.L # -------------------------------------------------------------------------- # Buffer 6 - G10 work offset preloads write, sort, read, output routines # -------------------------------------------------------------------------- #This section is designed to write the work offsets preloads to a buffer file, then sort them #into accesding order and eventually output the preloads to the NC output files. These sections #only get called if the use_g10wcs flag is on. # Work offset preload buffer test : 0 #Result variable cnt1 : 0 #Loop counter number 1 for sort cnt2 : 0 #Loop counter number 2 for sort wc6 : 1 #Initial count for write buffer 6 rc6 : 1 #Initial count for read buffer 6 size6 : 0 #Buffer 6 size tox3 = tox6 #Figures X Offset from machine zero toy3 = toy6 - 25.5905 #Figures Y Offset from machine zero toz3 = toz6 #Figures Z Offset from machine zero fmt W 4 workofs6 #Buffer 6 fmt P 4 pofs6 #Buffer 6 fmt X 2 tox6 #Buffer 6 fmt Y 2 toy6 #Buffer 6 fmt Z 2 toz6 #Buffer 6 fmt B 15 cabs6 #Buffer 6 fmt X 2 tox3 #Buffer 2 X Offset from machine zero fmt Y 2 toy3 #Buffer 2 Y Offset from machine zero fmt Z 2 toz3 #Buffer 2 Z Offset from machine zero workofsn : 0 #Temporary data for swap in buffer2 pofsn : 0 #Temporary data for swap in buffer2 toxn : 0 #Temporary data for swap in buffer2 toyn : 0 #Temporary data for swap in buffer2 tozn : 0 #Temporary data for swap in buffer2 coutn : 0 #Temporary data for swap in buffer2 fbuf 6 0 6 0 0 #Buffer 6 # -------------------------------------------------------------------------- preloadwcs #Output G10 preloads from Buffer6 #This postblock is called from the PSOF postblock and is designed to output the WCS #preloads to the beggining of the NC output file and only if the use_g10wcs flag is #active. pg10sort #Sort preload buffer in accesnding order before output #read preload buffer and output preloads rc6 = 1 size6 = rbuf (six, 0) #"(***********************************************)", e$ *e$ "(***********************************************)", e$ "(*********** WORK COORDINATES START **********)", e$ while rc6 <= size6, [ workofs6 = rbuf (six, rc6) #"workofs6 = " *workofs6, e$ #debug #"*pofs6 = ", *pofs6, e$ #debug if workofs6 < 6, [ pofs6 = pofs6 + 6 pbld, n$, *sgabsinc, "G10", "L2", *pofs6, *tox3, *toy3, *toz3, "(", *cabs6, ")" e$ #Offsets G54 - G59 ] else, pbld, n$, *sgabsinc, "G10", "L20", *pofs6, *tox3, *toy3, *toz3, "B0.", "(", *cabs6, ")", e$ #Extended offsets g54.1 P1 - P48 ] *e$ "G11", e$ "(*********** WORK COORDINATES END **********)", e$ pg10sort #Sort preload work offsets in accending order #This postblock is designed to sort the wcs preload buffer in accending order. This #postblock is called #from the preloadwcs postblock. DO NOT MODIFY this post block unless you are #absolutely sure of what you #are doing. rc6 = 1 size6 = rbuf (six, 0) cnt1 = 1 #intialize counters cnt2 = 1 #intialize counters while cnt1 < size6, #loop 1 - loop 1 time less than the size of the buffer [ size6 = rbuf (six, 0) while cnt2 <= size6 - cnt1, #loop 2 - loop 1 less every time [ rc6 = cnt2 #set buffer read counter to current loop counter value #(Current record to read) workofs6 = rbuf (six, rc6) #Read current and next record from buffer workofsn = rbuf (six, rc6) if workofsn < workofs6, #Check and swap records if next offset is less #than current wc6 = cnt2 #initalize write counter to current loop counter value #(current record to write) workofsn = wbuf (six, wc6) #Swap records by writing back into buffer. #Next into current, current into next workofs6 = wbuf (six, wc6) ] cnt2 = cnt2 + 1 #increment loop counter 2 ] cnt2 = 1 #Reset loop counter 2 to start at record 1 cnt1 = cnt1 + 1 #increment loop counter 1 ] pg10wcs_writbuf #Buffer 6 works offset preload buffer #This postblock is called from pwrtt and only if the use_g10wcs flag is active. #This postblock is designed to write out the WCS and tool origin information to the #preload buffer. The preload buffer will be scanned and checked to see if the WCS was #already #written to the buffer, if not the wcs is written to the buffer. test = 0 size6 = rbuf(six, 0) #Get size of buffer #read buffer and compare current workofs value with one read from buffer. #If current workofs matches one already in buffer set flag to not process. while rc6 <= size6, [ workofs6 = rbuf (six, rc6) if workofs$ = workofs6, test = 1 ] #If workofs doesn't match one in the buffer, write it to the buffer # with the P value and tool origin. if test = 0, [ cabs6 = atan2 (m7$, m9$) workofs6 = workofs$ pofs6 = workofs$ - 53 if workofs6 < 54, pofs6 = workofs$ -5 #Extened offsets P1 - P48 tox6 = tox$ toy6 = toy$ toz6 = toz$ #cabs6 = cout workofs6 = wbuf (six, wc6) ] rc6 = 1 #reset read counter for next pass
  6. To make you understand my question, I'm pasting my partcial post and thank you for your time. ptlchg0$ #Call from NCI null tool change (tool number repeats) toolchng0 = one if op_id$ <> last_op_id, [ rd_params$ # Read parameters - pparameter pmisccheck ] pcuttype toolcount = toolcount + 1 if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn) else, nexttool = first_tool$ retractflg = 0 if (mi10$ & (op_id$ <> last_op_id | (op_id$ = last_op_id & xform_op_id$ <> op_id$))) | ((tlplnno$ <> last_tlplnno | rotary_type$ <> last_rotary_type) & ret_on_indx), [ phsm_off if mi10$, [ pretract n$, *sm00, e$ result = force(spdir2,spdir2) #Force spindle output after M00 result = force(speed,speed) #Force speed output after M00 ] else, pretract0 retractflg = 1 ] else, [ if mr1$ <> last_mr1 | mr2$ <> last_mr2, phsm_off ] pcom_moveb pcheckaxis #Check for valid rotary axis c_mmlt$ #Multiple tool subprogram call ########## Operation Comment - SubProgram ########## #comment$ ########## Operation Comment - SubProgram ########## pcomment3 pcan if plane$ < 0 | opcode$ = 3 | opcode$ = 16, plane$ = 0 if op_id$ <> last_op_id, pbld, n$, sgplane, e$ pspindchng
  7. Hi HTH, Yes, I'm using Transform ToolPath, can you be more pacific about your last statement? Where do I put the value as you suggested exactly? Thank you. "Based on your code I'm assuming you're using transforms? When using a transform the value of xform_op_id$ doesn't equal the op_id$ value, when programming without transforms, these two values are equal. " Best regards, Steven.L
  8. Hi, I think my post is nearly perfect as I expected but I have a confliction of "Manual Entry" where as it posts duplicate notes. Please read below at the (****** Note From Programmer ******) section you will see. And another thing is I want to take the note off from O0001 (FACING) ......but... i can't please help. Best regards, Steven.L ******************** % O0000 (T) (This Post Is Only For - HAAS) (Unproven/ Proven By: ) (ALUMINUM INCH - 2024) (***** Posted Date And Time *****) (JUL.04.2012 @ 5:08PM) (Source - C:\USERS\MASTER\DOCUMENTS\MY MCAMX5\MCX\T.MCX-5) (NC - C:\USERS\MASTER\DOCUMENTS\MY MCAMX5\MILL\NC\T.NC) (****** Note From Programmer ******) (MANUAL ENTRY - MY NOTE HERE FOR THE SETUP-MAN) (MANUAL ENTRY - MY NOTE HERE FOR THE SETUP-MAN) (MANUAL ENTRY - MY NOTE HERE FOR THE SETUP-MAN) (MANUAL ENTRY - MY NOTE HERE FOR THE SETUP-MAN) (MANUAL ENTRY - MY NOTE HERE FOR THE SETUP-MAN) (********* Tool List Info *********) (T1 -2" FACE MILL - H1 - D1) (T2 - 3/4 FLAT ENDMILL - H2 - D2) (T4 - 1/2 DRILL - H4 - D4) (T5 - 3/4-10 TAPRH - H5 - D5) (T3 - 1/2 FLAT ENDMILL - H3 - D3) (******* Work Offset List *******) G90 G10 L2 P1 X0 Y0 Z0 G90 G10 L P X0 Y0 Z0 (Optional) N1 ( FACING ) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T1 M06 (2" FACE MILL) G0 G90 G54 X-7.2 Y-.5001 S5000 M3 G43 H1 Z2. T2 M8 M98 P0001 / G0 G90 G55 X-7.2 Y-.5001 Z2. / M98 P0001 / G0 G90 G56 X-7.2 Y-.5001 Z2. / M98 P0001 / G0 G90 G57 X-7.2 Y-.5001 Z2. / M98 P0001 / G0 G90 G58 X-7.2 Y-.5001 Z2. / M98 P0001 M5 G91 G28 Z0 M9 M1 N2(CONTOUR) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T2 M06 ( 3/4 FLAT ENDMILL) G0 G90 G54 X-3.25 Y1.875 S700 M3 G43 H2 Z2. T4 M8 M98 P0002 / G0 G90 G55 X-3.25 Y1.875 Z2. / M98 P0002 / G0 G90 G56 X-3.25 Y1.875 Z2. / M98 P0002 / G0 G90 G57 X-3.25 Y1.875 Z2. / M98 P0002 / G0 G90 G58 X-3.25 Y1.875 Z2. / M98 P0002 M5 G91 G28 Z0 M9 M1 N4(DRILLL) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T4 M06 ( 1/2 DRILL) G0 G90 G54 X-2.3998 Y-.9136 S2000 M3 G43 H4 Z2. T5 M8 M98 P0003 / G0 G90 G55 X-2.3998 Y-.9136 Z2. / M98 P0003 / G0 G90 G56 X-2.3998 Y-.9136 Z2. / M98 P0003 / G0 G90 G57 X-2.3998 Y-.9136 Z2. / M98 P0003 / G0 G90 G58 X-2.3998 Y-.9136 Z2. / M98 P0003 M5 G91 G28 Z0 M9 M1 N5(TAP) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T5 M06 ( 3/4-10 TAPRH) G0 G90 G54 X-2.3998 Y-.9136 G43 H5 Z2. T3 M8 M98 P0004 / G0 G90 G55 X-2.3998 Y-.9136 Z2. / M98 P0004 / G0 G90 G56 X-2.3998 Y-.9136 Z2. / M98 P0004 / G0 G90 G57 X-2.3998 Y-.9136 Z2. / M98 P0004 / G0 G90 G58 X-2.3998 Y-.9136 Z2. / M98 P0004 M5 G91 G28 Z0 M9 M1 N3(OD) G91 G28 Z0 G0 G17 G40 G49 G80 G90 T3 M06 ( 1/2 FLAT ENDMILL) G0 G90 G54 X-2. Y-3.25 S7000 M3 G43 H3 Z2. T1 M8 M98 P0005 / G0 G90 G55 X-2. Y-3.25 Z2. / M98 P0005 / G0 G90 G56 X-2. Y-3.25 Z2. / M98 P0005 / G0 G90 G57 X-2. Y-3.25 Z2. / M98 P0005 / G0 G90 G58 X-2. Y-3.25 Z2. / M98 P0005 M5 G91 G28 Z0 M9 G28 Y0 M30 O0001 (FACING) Z.2 G1 Z-.0001 F100. X1.2 F50. G2 Y-1.4999 I0. J-.4999 G1 X-7.2 G0 Z2. M99 O0002 Z.2 G1 Z-1. F100. G41 D2 Y1.125 F70. G3 X-2.5 Y.375 I.75 J0. G1 X0. G2 X.375 Y0. I0. J-.375 G1 Y-2. G2 X0. Y-2.375 I-.375 J0. G1 X-5. G2 X-5.375 Y-2. I0. J.375 G1 Y0. G2 X-5. Y.375 I.375 J0. G1 X-2.5 G3 X-1.75 Y1.125 I0. J.75 G1 G40 Y1.875 Z.2 F6.42 G0 Z2. M99 O0003 G98 G83 Z-.75 R.1 Q.1 F20. M99 O0004 M29 S200 G98 G84 Z-1. R.1 F20. P100. M99 O0005 Z.2 G1 Z-2. F6.42 G41 D3 Y-2.75 F40. G3 X-2.5 Y-2.25 I-.5 J0. F20. G1 X-5. F40. G2 X-5.25 Y-2. I0. J.25 F5. G1 Y0. F40. G2 X-5. Y.25 I.25 J0. F5. G1 X0. F40. G2 X.25 Y0. I0. J-.25 F5. G1 Y-2. F40. G2 X0. Y-2.25 I-.25 J0. F5. G1 X-2.5 F40. G3 X-3. Y-2.75 I0. J-.5 F20. G1 G40 Y-3.25 F40. Z.2 F6.42 G0 Z2. M99 %
  9. Hi, I tried your way and it came aout only the (***********************************************) (*********** WORK COORDINATES START **********) G11 I hope I"m not asking for too much and if I do I'm appologize for it. Is it possible that you can post the entire post processor for everyone us can understand it easier of which where these clauses to be input at certain location instead of guessing? Best regards, Steven.L #######################
  10. Hi every one, I'm trying to list all of my work offsets which may look like this one belows here. I would like to list them all so the setup-man will have short-time to look for all of the work offset i have. Oh,I also want to list all of my LOC for each tool att the tool table but I got conflict. Can you guys help me with this? (*********** Tool List Info ***********) (T241 - 3/4 FLAT ENDMILL - LOC = XXX Value") (T237 - 3/8 FLAT ENDMILL - LOC = XXX Value") (********** Work Offset List **********) G90 G10 L2 P1 X0 Y0 Z0 (B0 - Top) G90 G10 L P X0 Y0 Z0 (B180 - Bottom) T241 ( 3/4 FLAT ENDMILL) M6 N241 G0 G80 G90 S713 M03 T237 M08 ( OPERATION COMMENT 1 HERE ) M11 G0 G90 G54 B0. M10 X.75 Y1.875 M56 H1 D9 G43 H1 Z2. D9 Z.2 G01 Z-.5 F6.42 Y1.125 G03 X1.5 Y.375 I.75 J0. G01 X3. G02 X3.375 Y0. I0. J-.375 G01 Y-2. G02 X3. Y-2.375 I-.375 J0. G01 X0. G02 X-.375 Y-2. I0. J.375 G01 Y0. G02 X0. Y.375 I.375 J0. G01 X1.5 G03 X2.25 Y1.125 I0. J.75 G01 Y1.875 Z-.3 G0 Z2. G0 G80 M9 G91 G28 Z0. M05 G90 G49 M01 T237 ( 3/8 FLAT ENDMILL) M6 N237 G0 G40 G80 S1426 M03 T241 M08 ( OPERATION COMMENT 1 HERE ) M11 G0 G90 G54.1 P3 B-90. M10 X.125 Y.9375 M56 H1 D9 G43 H1 Z2. D9 (OPERATION COMMENT 2 HERE) Z.2 G01 Z-1. F6.33 Y.5625 G03 X.5 Y.1875 I.375 J0. G01 X1. G02 X1.1875 Y0. I0. J-.1875 G01 Y-2. G02 X1. Y-2.1875 I-.1875 J0. G01 X0. G02 X-.1875 Y-2. I0. J.1875 G01 Y0. G02 X0. Y.1875 I.1875 J0. G01 X.5 G03 X.875 Y.5625 I0. J.375 G01 Y.9375 Z-.8 G0 Z2. G0 G80 G90 G91 G28 Z0 M5 G30 X0 Y0 M09 M11 G90 G49 B0. M01 M30 %

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