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:

Where is the program # controled in Mpmaster?


Recommended Posts

Hello,

 

 

I need to add some apostrophes around the program number in the post for a Bridgeport machine.. Where is the below code controlled in the a Mpmaster post?

 

 

 

O2931 '15-354293-00RA OP1' <---------------------------------Need it to post apostrophes around the program # like this'O2931' ------------------------->

'PROGRAM - 15-354293-00RA OP1.NC'

'DATE - JAN-25-2013'

'TIME - 3:11 PM'

'T1 - 2.5" FACE MILL - H1 - D1 - D2.5000"'

G00 G17 G20 G40 G80 G90

G91

'COMPENSATION TYPE - OFF'

T1 M06 '2.5" FACE MILL'

'MAX - Z4.'

'MIN - Z0.'

G00 G17 G90 X-1.375 Y-.625 S3200 M03

H1 Z4.

Z.1

G01 Z0. F20.

X0.

X2.5

X3.875

G00 Z4.

M05

G91

M25

G90

 

Thanks

Link to comment
Share on other sites

Open the post with the mastercams editor. Do a search for pheader and edit as follows.

 

 

pheader$ #Start of file

sav_spc = spaces$

spaces$ = 0

"'",*progno$,"'", e$ *****************************(add qoutation mark apostrophy quotation mark, *progno$, qoutation mark apostrophy quotation mark,

 

A # sign is used to ignore an entire line,

 

you should end up with this result

 

'O150282'

(PROGRAM NAME - 150282)

(DATE - JAN. 25 2013 TIME - 7:15 PM)

G20

(TOOL - 10 OFFSET - 10)

(80 DEGREE TRIGON .032R INSERT - CNMG-432)

G28 U0. W0.

G0 T1010

G97 S225 M03

G0 X3.4 Z.005

Link to comment
Share on other sites

Open the post with the mastercams editor. Do a search for pheader and edit as follows.

 

 

pheader$ #Start of file

sav_spc = spaces$

spaces$ = 0

"'",*progno$,"'", e$ *****************************(add qoutation mark apostrophy quotation mark, *progno$, qoutation mark apostrophy quotation mark,

 

A # sign is used to ignore an entire line,

 

you should end up with this result

 

'O150282'

(PROGRAM NAME - 150282)

(DATE - JAN. 25 2013 TIME - 7:15 PM)

G20

(TOOL - 10 OFFSET - 10)

(80 DEGREE TRIGON .032R INSERT - CNMG-432)

G28 U0. W0.

G0 T1010

G97 S225 M03

G0 X3.4 Z.005

 

That was it thanks..... :fun:

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