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 - code + comments


Recommended Posts

I've been struggling with trying to understand how the comment posting works out because...

 

.....

N780 M09
N790 G00 G91 G28 Z0.0
N800 G00 G91 G28 Y0.0
N810 M00

(T20 = 1.25 DAPRA F-MILL )
N820 (***FLIP CLAMPS***)
N830 (ROUGH BOTTOM)
N840 G00 G40 G80 G90
N850 T20
N860 M6

.....

 

I want the flip clamps line to read after the M00 line.... and when I try to do that the operation note "Rough bottom" disappears.

 

I'm hoping someone here would have suggestions or 2?

 

-JD

Link to comment
Share on other sites

One is a tool comment and the other is a comment. Normally if you use a Manual entry you make the M00 as part of the manual entry and not try to use them as part of an operation since you really want to treat the manual comment as a operation all by itself and put your codes in it? Id that the process you followed and got the this output? I think you have the M00 as part of the operation and the Manual entry something else why you are seeing this.

Link to comment
Share on other sites

just write " M00 ( ***FLIP CLAMPS***) " in a manual entry set "as code" 

 

dont use any program stop in the Canned text of your previous operation, just add the manual entry where you want the machine to stop 

 

your code should look like this 

 

.....

N780 M09
N790 G00 G91 G28 Z0.0
N800 G00 G91 G28 Y0.0
N810 M00 (***FLIP CLAMPS***)
(T20 = 1.25 DAPRA F-MILL )
N830 (ROUGH BOTTOM)
N840 G00 G40 G80 G90
N850 T20
N860 M6

.....

Link to comment
Share on other sites

Well....

 

there are other comments we usually add into that part such as:

 

"Blow out holes"

"Check "feature""

"Check fit tube"

"Remove slug"

 

Okay if you want to get real trick you can make them cantext options in the post. Then once you activate them in an operation the comment and/or code can be output through an operation without needed manual entry. The idea of manual entry is that you make the control you want as an operation when you start mixing items from operations I would expect to see what you are getting.

Link to comment
Share on other sites

Okay so... I tried clicking on the buttons in canned text ......   NOTHING was happening in 2017.

 

I opened X9 .... clicking on the buttons actually moved the words over from the left to the right box...

 

Soooo.... is this a bug in 2017 where canned text doesn't work?  Or is it just me?

Link to comment
Share on other sites

Okay so... I tried clicking on the buttons in canned text ......   NOTHING was happening in 2017.

 

I opened X9 .... clicking on the buttons actually moved the words over from the left to the right box...

 

Soooo.... is this a bug in 2017 where canned text doesn't work?  Or is it just me?

 

What I have seen it open it and try it then close it and try again it might work if not keep opening and closing till they take then you are good to go.

Link to comment
Share on other sites

What I have seen it open it and try it then close it and try again it might work if not keep opening and closing till they take then you are good to go.

So that worked....

 

Go figure.

 

 

 

Back to canned text posting....

 

Seems that  "before" adds codes before spindle start

"with" on the G54 line

"after" happens after the H code line

 

I should be able to move the output line code to a different part of the post file where I want them to be.

 

Unless that's ill-advised?

Link to comment
Share on other sites

   For operator comments I use mi6$. In my post there are 23 different numbered comments (to date) that I use. If I want the comment "ADD CLAMPS B THEN REMOVE CLAMPS A", I put 16 in mi6$ and the comment will go in the designated spot in the program while using only one mi$ spot. If you have multiple common comments this may be what you will want to do.

  • Like 2
Link to comment
Share on other sites
  • 3 weeks later...

   For operator comments I use mi6$. In my post there are 23 different numbered comments (to date) that I use. If I want the comment "ADD CLAMPS B THEN REMOVE CLAMPS A", I put 16 in mi6$ and the comment will go in the designated spot in the program while using only one mi$ spot. If you have multiple common comments this may be what you will want to do.

 

I had this very thought about doing it this way.  I have an idea how to integrate the Misc. item in question into the post, but not sure how to write the different numbered comments like your post is setup.  I would like to learn how to set this method up, it seems it might be the ideal way to go...

 

I know you most likely have all the comments memorized, unless you have some sort of sheet on the wall next to the computer that has the list of comments you use....

Link to comment
Share on other sites

I had this very thought about doing it this way.  I have an idea how to integrate the Misc. item in question into the post, but not sure how to write the different numbered comments like your post is setup.  I would like to learn how to set this method up, it seems it might be the ideal way to go...

 

I know you most likely have all the comments memorized, unless you have some sort of sheet on the wall next to the computer that has the list of comments you use....

 

I made a spread sheets when I had things like this. I can't remember it all and they helped. Look at the MPMASTER or MLPMASTER posts they offer great examples of things you can do. Do a search post questions have been over many times over the last 13 years I have been here.

Link to comment
Share on other sites

You can save the manual entry as a file. Make as many as you need for all the comments, code. Call them up as needed.

That's what I do. Saves on typing.

 

Another thing I found. After talking with my dealer, you can save all the wait code info for the mill turns. Just have to have the post set up correctly to put the manual entry code in the right place and

where you expect it.

Link to comment
Share on other sites

I had this very thought about doing it this way.  I have an idea how to integrate the Misc. item in question into the post, but not sure how to write the different numbered comments like your post is setup.  I would like to learn how to set this method up, it seems it might be the ideal way to go...

 

I know you most likely have all the comments memorized, unless you have some sort of sheet on the wall next to the computer that has the list of comments you use....

 

I don't have them memorized and I do keep cheat sheets on the network. In fact what I thought was mi6$ was in fact mi7$ and there are only 22 numbered comments. I was at home on vacation when I replied.

 

Here's How I have my post set up.

ptlchg_com      #Tool change common blocks
      pcom_moveb
      if (machine = 60 & t$ = 59) | (machine = 80 | machine = 480
       | machine = 800 & t$ = 4), p_fixture_vari
      if machine <> 60, p_toolsetter_setup
      c_mmlt$ #Multiple tool subprogram call
      sav_cantext = cantext$
      if cantext$ <= 10, pcan
      if mi7$ <> 0, pstopcomment #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


pstopcomment     #pallet rotation macro
      "G91", "G30", "X0", "Y0", "Z0", e$
      "G91", "G28", "B0", e$
      "M60", e$

      if mi7$ = 1, "M00", "(ADD CAP SCREWS THEN REMOVE CLAMP)", e$
      if mi7$ = 2, "M00", "(REMOVE WASTE MATERIAL)", e$
      if mi7$ = 3, "M00", "(RESET PART TO POSITION 2)", e$
      if mi7$ = 4, "M00", "(MOVE CLAMP TO BOTTOM POSITION)", e$
      if mi7$ = 5, "M00", "(ADD CENTER CLAMPS TO PALLET A)", e$
      if mi7$ = 6, "M00", "(UNCLAMP AND RECLAMP PARTS)", e$
      if mi7$ = 7, "M00", "(ADD CLAMP)", e$
      if mi7$ = 8, "M00", "(ADD CAP SCREWS)", e$
      if mi7$ = 9, "M00", "(ADD CLAMPS)", e$
      if mi7$ = 10, "M00", "(INVERT PARTS PER SETUP SHEET)", e$
      if mi7$ = 11, "M00", "(ADD CLAMP THEN REMOVE CAP SCREWS)", e$
      if mi7$ = 12, "M00", "(ADD OP1-2 CLAMPS THEN REMOVE OP1-1 CLAMPS)", e$
      if mi7$ = 13, "M00", "(REMOVE ANTI-VIBRATION BLOCKS)", e$
      if mi7$ = 14, "M00", "(REMOVE CENTER SCREWS THEN ADD CLAMP)", e$
      if mi7$ = 15, "M00",
        "(ADJUST CASTED SLEEVE WITH 1.97 DIA SHAFT THEN REMOVE)", e$
      if mi7$ = 16, "M00", "(ADD THEN REMOVE CLAMPS PER S/U SHEET)", e$
      if mi7$ = 17, "M00", "(ADD CAP SCREWS THEN Y STOP BLOCKS)", e$
      if mi7$ = 18, "M00", "(CLEAN AND DEBURR PART BEFORE PROBING)", e$
      if mi7$ = 19, "M00", "(REMOVE CLAMP)", e$
      if mi7$ = 20, "M00", "(REMOVE CLAMPS)", e$
      if mi7$ = 21, "M00", "(REMOVE ANTI-VIBE BLOCK)", e$
      if mi7$ = 22, "M00", "(DEBURR HOLES AND EDGES BEFORE FINISH CUT)", e$

      "G91", "G30", "X0", "Y0", "Z0", e$
      "G91", "G28", "B0", e$
      "M60", e$
      " ", e$


[CTRL_MILL|ENSHU GE480H]
[misc integers]
1. "Toolpath routing No. ,1,2,5000~5707"
2. "System No. (see systems sheet)"
3. "Virtual front tool plane No. (tlplnno$)"
4. "#199=1 (tlchg area) [0=No,1=Yes]"
5. "GOTO program end after probing[0=No,1=Yes]"
6. "Force tool paths for front top[0=No,1=Yes]"
7. "M00 Comments (see systems sheet)" #<<<<<<<<<<<<<<<<<<<
8. "Use G68 for this tool only [0=No,1=Yes]"
9. "Staging second tool [1=set tl, 2=call tl]"
10. ""

  • Like 3
Link to comment
Share on other sites
ptlchg$          #Tool change
      pcuttype
      toolchng = one
      toolcount = toolcount + 1
      if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn)
      else, nexttool = first_tool$
      if wcstype = one, #Work coordinate system
        [
        pfbld, n$, *sg28, "X0.", "Y0.", e$
        pfbld, n$, "G92", *xh$, *yh$, *zh$, e$
        ]
      if mi10$ = 1, n$, *sm00, "( ***BLOW OUT HOLES*** )", e$
      if mi10$ = 2, n$, *sm00, "( ***FLIP CLAMPS TO SIDES*** )", e$
      if mi10$ = 3, n$, *sm00, "( ***FLIP CLAMPS TO TOP AND BOTTOM*** )", e$
      else, pbld, n$, *sm01, e$
      ptlchg_com

The above is the current code we are using...

 

For some reason, when calling up #3, it doesn't double post a M00 and M01 .... see below:

N4150 X8.49 Y8.22
N4160 G80
N4170 G94
N4180 M09
N4190 G00 G91 G28 Z0.0
N4200 G00 G91 G28 Y0.0
N4210 M00 ( ***FLIP CLAMPS TO TOP AND BOTTOM*** )

(T20 = 1.25 DAPRA F-MILL )
N4230 (ROUGH PERIMETER)
N4240 G00 G40 G80 G90
N4250 T20
N3730 X10.46 Y9.76
N3740 X8.49 Y8.22
N3750 G80
N3760 M09
N3770 G00 G91 G28 Z0.0
N3780 G00 G91 G28 Y0.0
N3790 M00 ( ***BLOW OUT HOLES*** )
N3800 M01

(T22 = 1/2-13 OSG BLACK TAP )
N3810 (TAP 1/2-13 X .50DP)
N3820 G00 G40 G80 G90

What am I doing wrong?

Link to comment
Share on other sites

You can't have multiple  "if" lines and one "else" line. You would need "if" "else", "if" "else", "if" "else".

      if wcstype = one, #Work coordinate system
        [
        pfbld, n$, *sg28, "X0.", "Y0.", e$
        pfbld, n$, "G92", *xh$, *yh$, *zh$, e$
        ]
      if mi10$ = 1, n$, *sm00, "( ***BLOW OUT HOLES*** )", e$
      else, pbld, n$, *sm01, e$
      if mi10$ = 2, n$, *sm00, "( ***FLIP CLAMPS TO SIDES*** )", e$
      else, pbld, n$, *sm01, e$
      if mi10$ = 3, n$, *sm00, "( ***FLIP CLAMPS TO TOP AND BOTTOM*** )", e$
      else, pbld, n$, *sm01, e$
      ptlchg_com

You can also go:

      if mi10$ = 1, n$, *sm00, "( ***BLOW OUT HOLES*** )", e$
      if mi10$ = 2, n$, *sm00, "( ***FLIP CLAMPS TO SIDES*** )", e$
      if mi10$ = 3, n$, *sm00, "( ***FLIP CLAMPS TO TOP AND BOTTOM*** )", e$
      if mi10$ = 0, pbld, n$, *sm01, e$

Hope that helps.

  • Like 2
Link to comment
Share on other sites

You can't have multiple  "if" lines and one "else" line. You would need "if" "else", "if" "else", "if" "else".

      if wcstype = one, #Work coordinate system
        [
        pfbld, n$, *sg28, "X0.", "Y0.", e$
        pfbld, n$, "G92", *xh$, *yh$, *zh$, e$
        ]
      if mi10$ = 1, n$, *sm00, "( ***BLOW OUT HOLES*** )", e$
      else, pbld, n$, *sm01, e$
      if mi10$ = 2, n$, *sm00, "( ***FLIP CLAMPS TO SIDES*** )", e$
      else, pbld, n$, *sm01, e$
      if mi10$ = 3, n$, *sm00, "( ***FLIP CLAMPS TO TOP AND BOTTOM*** )", e$
      else, pbld, n$, *sm01, e$
      ptlchg_com

You can also go:

      if mi10$ = 1, n$, *sm00, "( ***BLOW OUT HOLES*** )", e$
      if mi10$ = 2, n$, *sm00, "( ***FLIP CLAMPS TO SIDES*** )", e$
      if mi10$ = 3, n$, *sm00, "( ***FLIP CLAMPS TO TOP AND BOTTOM*** )", e$
      if mi10$ = 0, pbld, n$, *sm01, e$

Hope that helps.

The bottom options worked best.

 

I tried the first with "ELSE" after every IF.... it posted more M01's than needed lol.... so by eliminating the "ELSE" and replacing it with "IF" for all, that did the trick.

 

Many thanks!

  • Like 1
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...