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:

Long lines in post


scott41
 Share

Recommended Posts

I need this type of post to look like the one at the bottom. The Haas I am using does not like long lines. I am using Mill X2 MR2.

 

%

O1( 37529_30 RISER )

( DATE=DD-MM-YY - 11-10-07 TIME=HH:MM - 21:06 )

( MCX FILE - G:ENGINEERINGDRAWINGS3752937529_30 DIEMCX2 MILLING37529_30 RISER.MCX )

( NC FILE - C:MCAMX2-MR1MILLNC37529_30 RISER.NC )

( MATERIAL - STEEL INCH - 1010 - 200 BHN )

( T23 | 3/4 SPOTDRILL | H23 )

( T25 | 5/8 DRILL | H25 )

( T27 | 3/4 DRILL | H27 )

( T9 | 45 DEG CUTTER | H9 )

( T20 | 1.25 SANDVIK COROMILL 300 | H20 | XY STOCK TO LEAVE - .02 | Z STOCK TO LEAVE - .01 )

( T39 | 1.00 DIEMASTER - LONG | H39 | XY STOCK TO LEAVE - .02 | Z STOCK TO LEAVE - .01 )

( T18 | 5/8 SECO INDEXABLE CUTTER | H18 | XY STOCK TO LEAVE - .02 | Z STOCK TO LEAVE - .01 )

( T16 | 12MM EM - SHORT | H16 | D16 | WEAR COMP | TOOL DIA. - .472441 | XY STOCK TO LEAVE -.005 | Z STOCK TO LEAVE - .01 )

N2 G20

N4 G0 G17 G40 G49 G80 G90

( SPOT 3/4 )

N6 T23 M6

N8 G0 G90 G54 X45.5355 Y3.5 S900 M3

N10 G43 H23 Z2. T25

N12 M8

N14 G98 G81 Z-.2035 R.1 F3.

N16 X53.8855

N18 X52.0355 Y8.

N20 X45.5355

N22 Y12.5

N24 X53.8855

N26 G80

( SPOT 5/8 )

 

 

Want to look like this:

How do I get rid of the long lines?

 

%

O1( 37529_30 RISER )

( T23 | 3/4 SPOTDRILL | H23 )

( T25 | 5/8 DRILL | H25 )

( T27 | 3/4 DRILL | H27 )

( T9 | 45 DEG CUTTER | H9 )

( T20 | 1.25 SANDVIK COROMILL 300 | H20 )

( T39 | 1.00 DIEMASTER - LONG |)

( T18 | 5/8 SECO INDEXABLE CUTTER | H18 )

( T16 | 12MM EM - SHORT | H16)

N2 G20

N4 G0 G17 G40 G49 G80 G90

( SPOT 3/4 )

N6 T23 M6

N8 G0 G90 G54 X45.5355 Y3.5 S900 M3

N10 G43 H23 Z2. T25

N12 M8

N14 G98 G81 Z-.2035 R.1 F3.

N16 X53.8855

N18 X52.0355 Y8.

N20 X45.5355

N22 Y12.5

N24 X53.8855

N26 G80

( SPOT 5/8 )

 

Thanks for any help.

Link to comment
Share on other sites

From my integrex post that I have I found this section

 

code:

ptoolcomment    #Comment for tool

tnote = t$

toffnote = tloffno$

tlngnote = tlngno$

strtool$ = ucase(strtool$)

stoper = ucase(stoper)

stinsert2 = ucase(stinsert2)

spaces$ = 0

result = newfs(22, tnote1)

#"(", *tnote1, *toffnote1, ")", e$

#if posttype$ = two,

# "(", *stoper, " ", *strtool$, " ", *stinsert, *stinsert2, ")", e$

#else,

# "(", *stoper, " ", *strtool$, ")", e$

 

 

if posttype$ = 2,

[

"(", *tnote, ptspace, " | ", plistcomm, " | ", *toffnote, pdspace, " | ", *suffixnote, " | ", *stinsert, *stinsert2, ")", e$

]

else,

[

if mill5$ = 1, "(", *tnote, ptspace, " | ", plistcomm, " | ", *tlngnote, phspace, " | ", *toffnote, pdspace, " | ", *suffixnote, ")", e$

else, "(", *tnote, ptspace, " | ", plistcomm, " | ", *toffnote, pdspace, " | ", *suffixnote, ")", e$

]

 

spaces$ = sav_spc

I would just go thru this and remove the offending code that you do not want posted.

For me, I dont really need (in the integrex example) *suffixnote, *stinsert and *stinsert2 So my out put goes from (where my posttype$ = 2)

 

code:

(T1  | FACE + ROUGH OD - CNMG543      |  DIA. - 1  |  SUFFIX - 1. |  INSERT - CNMG-432)

(T36 | 3.25" KOMET 2.5X DRILL | DIA. - 25 | SUFFIX - 0.)

(T6 | 2" BORING BAR - CNMG543 | DIA. - 6 | SUFFIX - 1. | INSERT - CNMG543)

(T7 | 2" FINISH BORING BAR - CNMG543 | DIA. - 7 | SUFFIX - 1. | INSERT - CNMG543)

(T10 | .1875" VCPA FACE GROOVE | DIA. - 10 | SUFFIX - 1. | INSERT - VCPA .1875)

To...

 

code:

(T1  | FACE + ROUGH OD - CNMG543      |  DIA. - 1  )

(T36 | 3.25" KOMET 2.5X DRILL | DIA. - 25 )

(T6 | 2" BORING BAR - CNMG543 | DIA. - 6 )

(T7 | 2" FINISH BORING BAR - CNMG543 | DIA. - 7 )

(T10 | .1875" VCPA FACE GROOVE | DIA. - 10 )

HTH =]

Link to comment
Share on other sites

You can delete it or place a "#" sign in front of the entire line.

 

Make sure to make a copy of your post B4 you start any edits !!!!!!!!!!!!!

 

 

_________________________________________________________

pheader$ #Call before start of file

"%", e$

sav_spc = spaces$

spaces$ = 0

*progno$, sopen_prn, sspace, sprogname$, sspace, sclose_prn, e$

#sopen_prn, sspace, "PROGRAM NAME - ", sprogname$, sspace, sclose_prn, e$

(# sign here) sopen_prn, sspace, "DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$, sspace, sclose_prn, e$ #Date and time output Ex. 12-02-05 15:52

#sopen_prn, sspace, "DATE - ", month$, "-", day$, "-", year$, sspace, sclose_prn, e$ #Date output as month,day,year - Ex. 02-12-05

#sopen_prn, sspace, "DATE - ", *smonth, " ", day$, " ", *year2, sspace, sclose_prn, e$ #Date output as month,day,year - Ex. Feb. 12 2005

#sopen_prn, sspace, "TIME - ", time$, sspace, sclose_prn, e$ #24 hour time output - Ex. 15:52

#sopen_prn, sspace, "TIME - ", ptime, sspace, sclose_prn, e$ #12 hour time output 3:52 PM

spathnc$ = ucase(spathnc$)

smcname$ = ucase(smcname$)

stck_matl$ = ucase(stck_matl$)

snamenc$ = ucase(snamenc$)

(here)#sopen_prn, sspace, "MCX FILE - ", *smcpath$, *smcname$, *smcext$, sspace, sclose_prn, e$

(here) #sopen_prn, sspace, "NC FILE - ", *spathnc$, *snamenc$, *sextnc$, sspace, sclose_prn, e$

(here)#sopen_prn, sspace, "MATERIAL - ", *stck_matl$, sspace, sclose_prn, e$

spaces$ = sav_spc

 

___________________________________________________________

 

 

PEACE biggrin.gif

Link to comment
Share on other sites

NO it was longer than 40 characters dummy.

 

I can tell if it is longer than my tool lines, it will be too long. I tried the # sign and it still posted it.

 

Now my post wont work, why oh why didn't I back it up.

 

 

.

 

 

.

 

 

j/k biggrin.gif thought I was stupid, didn't ya.

Link to comment
Share on other sites

O.K. for some reason I cant receive email at work with attachments!

 

But the "#" sign worked great, does exactly what I want....Thanks hardmill!

 

One more question, probably something simple but...How can I get the home position to only go to zero in the "Y" direction and not the "X"?

 

Thanks again for all the help.

Link to comment
Share on other sites

you could try taking out the X here if you want at the end of program only, if you want at all toolchanges then you need to alter pretract section of post

code:

 peof            #End of file for non-zero tool 

*sm05, e

pretract

if lock_codes = 1 & rot_on_x, pbld, n, *sunlock, "(UNLOCK)", e

rotretflg = 1

pbld, n, "G28", "X0", "Y0", protretinc, e

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

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