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:

Canned Text


TeccBoxx
 Share

Recommended Posts

Tazzer, what are you trying to accomplish by only posting something out at the start using canned text?

 

I am wondering if something else might not be more appropriate for what ever you might be trying to accomplish.

Link to comment
Share on other sites

Hey John what I am wanting is on certain toopaths I need the G28 to stop at a certain position and to carry some type of note, like clear chips or add bolts etc..,

 

I like the idea of using a canned text over manual entry based on the size of the program and the amount of toolpaths used.

Link to comment
Share on other sites
Guest John Paris @ Services 4 Automati

I did this in one of my posts

 

code:

pcant_out       #Canned text - build the string for 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, e$

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$

]

 

if cantext$ = five, [

pbld, n$, sm00, e$

pbld, n$, "(ROTATE TO DEGREES)", e$

]

if cantext$ = 6, [

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

pbld, n$, sg90, *g_wcs, "X0.", e$

pbld, n$, sm00, e$

pbld, n$, "(LOOSEN AND RETIGHT VISE)", e$

pbld, n$, "( DO NOT OVERTIGHTEN)", e$

]

if cantext$ = 7, [

pbld, n$, sm51, e$

pbld, n$, "(AIR BLAST ON)", e$

]

if cantext$ = 8, [

pbld, n$, sm59, e$

pbld, n$, "(AIR BLAST OFF)", e$

Then in the canned text section of the text file at the end of the post

 

code:

[canned text]

1. "CLEAN CHIPS - M00"

2. "CHANGE CLAMPS - M00"

3. "AUGER ON"

4. "AUGER OFF"

5. "ROTATE TO DEGREES"

6. "HOME MOVE - RETIGHTEN"

7. "AIR BLAST ON"

8. "AIR BLAST OFF"

9. ""

10. ""

11. ""

[CTRL_TEXT_END]

The ouput location is determines by the post block pcan, it's placement should be watched as it will affect other things that use notes and canned text as well.

 

 

I have also in the past when using the MPMaster, edited the MI# that calls an M00 before a path and added an option to send it home and put put a note.

 

couple of different ways to skin this cat

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