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


Recommended Posts

John, I'm having the same problems as WenteQ.

 

I changed the line for 1006 in the pcomment2 section to match the line you've demonstrated above. It now posts the manual entry in parenthesis, followed by the same manual entry not parenthesis but still on the same line. What went wrong?

 

 

edit: Ahhhhh nevermind, I fixed it. For some reason my post had two lines for 1006, one of them had a # in front of it. I removed the # and then entered your line above, and that's why it was double posting the lines. I did not notice because I had tunnel vision on just that one line.

 

I ended up returning that line back to normal, with the # sign, and then changing the first 1006, so now it's coming out perfect!

Link to comment
Share on other sites

John, the 1006 line looked just like the 1005 line above it. I just removed the quotes and parenthesis from the line, and it posted properly.

 

code:

pcomment$        #Comment from manual entry (must call pcomment2 if booleans)

pcomment2

 

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
  • 2 months later...

how do i get the comment line from here

 

N80 G80

N90 M0 (INSTALL BOLTS REMOVE CLAMPS)

N100 M09

N110 M5

N120 G0 M25

N130 G0 T9 M6

 

to here?

 

N80 G80

N100 M09

N110 M5

N120 G0 M25

N90 M0 (INSTALL BOLTS REMOVE CLAMPS)

N130 G0 T9 M6

 

I always have to edit this to put the comment in the right location

 

 

Thank you

Hoagie

Link to comment
Share on other sites

You have to move it in your post ...

 

For example:

 

To put at the beginning of your first tool, under psof$

 

quote:

pcan

# if stagetool >= zero,

comment$

pbld, n$, *t$, "M6", ptoolcomment, e$

#comment$


move comment$ to where you want it ...

 

In the middle of your program, under ptlchg0$ and ptlchg$

 

quote:

comment$

pbld, n$, *t$, "M6", ptoolcomment, e$

#comment$


So a search for comment$ to make sure it is in the location you want to out put the comment.

 

HTH

 

PS ... thanks John

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

I need my "manual entry" to post before the tool change. (see below)

 

I've made a few changes to the post but nothing worked.

 

**this is how it posts now.....

T2 ( TOOL-2. - 2" INSERT ROUGHER X 8.5" REACH )

NON CENTER SPACER (manual entry)

CLAMP AT FRONT (manual entry)

M6

G0 G90 G56 X453.8342 Y-331.2801 S1000 M3

G43 H2 Z75.

.......

 

**this is what i need.....

NON CENTER SPACER

CLAMP AT FRONT

 

T2 ( TOOL-2. - 2" INSERT ROUGHER X 8.5" REACH )

M6

G0 G90 G56 X453.8342 Y-331.2801 S1000 M3

G43 H2 Z75.

.......

Link to comment
Share on other sites

***this is sections of my post ......I added this line to for manual entry.

 

if gcode$ = 1006, scomm$, e$#Man entry code

 

# ------------------------------------------

# Tool Comment / Manual Entry Section

# ------------------------------------------

 

ptoolcomment #Comment for tool

tnote = t$

toffnote = tloffno$

tlngnote = tlngno$

"(", *tnote, pstrtool, ")", e$

 

pstrtool #Comment for tool

if strtool$ <> sblank,

[

strtool$ = ucase(strtool$)

"-", *strtool$

]

 

pcomment$ #Comment from manual entry (must call pcomment2 if booleans)

pcomment2

 

pcomment2 #Comment from manual entry

scomm$ = ucase (scomm$)

if gcode$ = 1006, scomm$, e$#Man entry code

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

#else, "(", scomm$, ")", e$

 

 

# ------------------------------------------

 

 

*** this is PSOF comment section ***

psof$

 

pcom_moveb

c_mmlt$ #Multiple tool subprogram call

pcan

 

comment$

" ", e$ # LINE SKIPS

" ", e$ # LINE SKIPS

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

"M6",e$

pindex

if mi1$ > one, absinc$ = zero

 

*** this is PTLCHG$ section ***

ptlchg$ #toolchange

pcuttype

toolchng = one

#if mi1 = one, #Work coordinate system

# [

# pfbld, n, *sg28ref, "X0.", "Y0.", e

# pfbld, n, "G92", *xh, *yh, *zh, e

# ]

pbld, n$, "M01", e$

pcom_moveb

c_mmlt$ #Multiple tool subprogram call

pcan

" ", e$ # LINE SKIPS

comment$

" ", e$ # LINE SKIPS

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

"M6",e$

Link to comment
Share on other sites

*** this is program now

*** manual entry how I want it

*** but no operation comments posted

 

(NON CENTER SPACER)

(CLAMP AT FRONT)

 

 

T1 (2" INSERT ROUGHER X 8.5" REACH )

M6

G0 G90 G56 X-357.3439 Y100.3033 S1000 M3

G43 H1 Z75.

X-357.3439 Y100.3033 Z3.

G1 Z-6. F762.

G41 D1 X-351.7564 Y92.01 F1016.

G2 X330.382 Y-10.436 I285.19 J-423.29

G1 G40 X338.159 Y-4.1501

G0 Z75.

M5

G91 G28 Z0.

M01

 

(CENTER SPACER)

(CLAMP AT FRONT)

 

T7 ( TOOL-7. - .500" E MILL X 2.00 LOC )

M6

G0 G90 G56 X-193.5658 Y49.7198 S2000 M3

G43 H7 Z75.

Z3.

G1 Z-38.1 F500.

 

 

*** this is program BEFORE *****

*** operation comments posted

*** manual entry not where I wanted

 

 

 

 

T1 (2" INSERT ROUGHER X 8.5" REACH )

(NON CENTER SPACER)

(CLAMP AT FRONT)

(ROUGH STEP AREA)

M6

G0 G90 G56 X-357.3439 Y100.3033 S1000 M3

G43 H1 Z75.

X-357.3439 Y100.3033 Z3.

G1 Z-6. F762.

G41 D1 X-351.7564 Y92.01 F1016.

G2 X330.382 Y-10.436 I285.19 J-423.29

G1 G40 X338.159 Y-4.1501

G0 Z75.

M5

G91 G28 Z0.

M01

 

T7 (.500" E MILL X 2.00 LOC )

(CENTER SPACER)

(CLAMP AT FRONT)

(FINISH TOP THRU HOLE)

M6

G0 G90 G56 X-193.5658 Y49.7198 S2000 M3

G43 H7 Z75.

Z3.

G1 Z-38.1 F500.

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