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:

manual entry operation output


pap
 Share

Recommended Posts

scomm$ would be the variable.

 

Look the your post there should be a manual entry section, that area will the handle the output, the format.

 

Should look something like this

code:

pcomment2       #Comment from manual entry

spaces$ = 0

scomm$ = ucase (scomm$)

#1005 - Comment option 1

#1006 - Comment option 2

#1007 - Define comment with output line

#1008 - Define NC parameter comment

#1026 - ?

if gcode$ = 1005, pbld, n$, pspc, scomm$

if gcode$ = 1006, pbld, n$, pspc, "(", scomm$, ")" #Comments

#if gcode = 1006, pbld, n, pspc, scomm #Codes

if gcode$ = 1007, "(", scomm$, ")"

if gcode$ = 1008, pbld, n$, pspc, "(", scomm$, ")"

if gcode$ = 1026, pbld, scomm$

if gcode$ <> 1007 & gcode$ <> 1026, e$

spaces$ = sav_spc

Link to comment
Share on other sites
  • 4 months later...

this kicks me everytime, (comments are special)

I want to put "flip part" on M00 line. is there anything that hasn't already been said on the subject that can make this any clearer?? it's killin' me! how do I get "manual entry" to look for "pcomment2"?

 

code:

  N1000 M00 ( )$

$

(---------------------------)$

(T1 ENDMILL, 1.06 DIA)$

( FLIP PART )$ <-----manual entry (needs to be w/M00

( FACE BOTTOM )$ <-----operation comment

(---------------------------)$

$

N1010 G90 G0 G55 X-4.792 Y-2.33 S2000 M3$

here's what I got.

 

code:

            n$, "M06",e$

n$, "G91 G30 P3 X0.0 Y0.0",e$

n$, "M00", pcomment2,e$

" ",e$

"(---------------------------)",e$

ptoolcomment,e$

comment$

"(---------------------------)",e$

" ",e$

]

else,

[

Link to comment
Share on other sites

John,

 

I found this where you shared it last and was wondering where to put it. I can put cantext in

control def. and write it to the post and vise/versa but it won't post out. should I replace pcan with what is listed here?

 

code:

 pcant_out #Canned text - build the string or output

if cantext$ = one, [pbld, n$, sm00, e$

pbld, n$ "(CLEAN CHIPS)", e$

]

 

if cantext$ = two, [pbld, n$, sg00, "Z6.0", sm09, e$

pbld, n$, sg91, "G28", "Y0.", e$

pbld, n$, sm00,

pbld, n$, "(CHANGE CLAMPS)", e$

pbld, n$, sg00, *g_wcs, sg90, pfxout, pfyout,

*speed, sm03, e$

pbld, n$, sm08, e$

]

if cantext$ = three, [

pbld, n$, "M201", e$

]

 

if cantext$ = four, [

pbld, n$, "M200", 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...