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:

How can I seperate these two Comments?


JerryBenoit
 Share

Recommended Posts

Hello All,

 

How can I seperate these two comments?

 

O3091(PART NAME)

(VERSION-)

(SAVE 03091.L14)

(CUSTOMER & PART NAME)

(SK# OPERATION SKETCH)

(CNC-014)

(PREP & ROUGH TURN 1ST OD)----- WOULD LIKE TO MOVE TO ------

 

N1M150

------ HERE

G0T0101

M05

G0G54X6.2Z.595

 

These two comments are manual text as comment then the operation comment.

does anyone have any ideas? I see that in the post they both are under pcomment2 one is found on the NCI file lines 1005 and the other is with the 1008.

Link to comment
Share on other sites

quote:

The only dumb question is the one not asked!

Not TRUE!!!!!!!

 

Do dumb people actually get smart so they don't ask a stupid question>

 

I think not

 

biggrin.gif

Link to comment
Share on other sites

To All,

 

I just recieved this from my reseller on how to get Manual text and OP comments to seperate. He also stated that I should post this just in case anyone else wanted to know how it can be done.

 

It works great thanks Steve, you guys at S4A are great to work with. cheers.gif

 

Steve E-mail:

 

Jerry,

 

Here are the edits to have manual entry come out in header and op comments to stay with the tool change.

 

 

 

Initialize a numeric variable like below;

 

sof : 1 #Flag for start of file

 

 

 

Initialize a string with no value like below;

 

#Address string definitions

 

sopcomm

 

 

 

Move call for comment$ to header section.

 

 

 

For Mill posts, in psof$ use below instead of comment$

 

pbld, n$, *t$, sm06, ptoolcomment, e$

 

sopcomm, e$

 

 

 

For Lathe posts, in ltlchg$ change comment$ call to;

 

ptoolcomment

 

if sof, sopcomm, e$

 

else, comment$

 

 

 

For Mill posts, add to bottom of psof$ section

 

sof = 0

 

 

 

For Lathe posts, add to bottom of ltlchg$ section

 

sof = 0

 

 

 

In the pcomment2 section add or change logic for gcode$ equaling 1008.

 

pcomment2 #Output Comment from manual entry

 

if gcode$ = 1008 & not(sof), “(“, scomm$, “)”, e$ #Operation comment

 

else, sopcomm = “(“ + scomm$ + “)”

 

 

 

 

 

Stephen Biehl - Services Four Automation

V – 978.728.0009 F – 978.728.0013

Link to comment
Share on other sites

quote:

He also stated that I should post this just in case anyone else wanted to know how it can be done.

Yeah, cuz' I was pounding away setting up a buffer to pull the comment out and store it. I had it pretty much done and then Steve forwarded me the same email.

 

His way is a WHOLE lot easier

 

wink.gif

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