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


Recommended Posts

Here's the upper portion of a canned text edit I've made..

pcant_out       #Canned text - build the string for output
      #Assign string select type outputs
      if cant_pos < three, #cant_pos indicates canned text output
        [
        if cantext$ = three, bld = one
        if cantext$ = four, bld = zero
        #Build the cantext string
        if cantext$ = one, strcantext = strcantext + sm00
        if cantext$ = two, strcantext = strcantext + sm01
        if cantext$ = 5, strcantext =  strcantext + "S6000"
        if cantext$ = 6, strcantext =  strcantext + "M46"
        if cantext$ = 7, strcantext =  strcantext + "M47"
        if cantext$ > 8,
          [
          strtextno = no2str(cantext$)
          strcantext = strcantext + strm + strtextno
          ]

Don't forget to add it into your control def so you can select it

<canned_text>
            <canned_text_1>
                <text>Stop</text>
            </canned_text_1>
            <canned_text_2>
                <text>Ostop</text>
            </canned_text_2>
            <canned_text_3>
                <text>Bld on</text>
            </canned_text_3>
            <canned_text_4>
                <text>bLd off</text>
            </canned_text_4>
            <canned_text_5>
                <text>S6000 In Cycle Speed Change</text>
            </canned_text_5>
            <canned_text_6>
                <text>M46 (TABLE UNLOCK)</text>
            </canned_text_6>
            <canned_text_7>
                <text>M47 (TABLE LOCK)</text>
            </canned_text_7>
            <canned_text_8>
                <text>M8</text>
            </canned_text_8>
            <canned_text_9>
                <text>M9</text>
            </canned_text_9>
            <canned_text_10>
                <text>M10</text>
            </canned_text_10>
        </canned_text>

 

  • Like 2
Link to comment
Share on other sites

Does anyone use canned text for macro use?

        if cantext$ = 51 & sav_mi2 = 37,
          [
          sav_cantext = cantext$
          temp4_1 = (sav_mr4 * 2)
          "#540=#539", e$
          "#539=#539+", no_spc$, *temp4_1, e$
          temp4_1 = 0
          ]

        if cantext$ <> 52, "M98P5502", e$

      if machine = 800,
        [
        if cantext$ = 98,
          [
          "#899=262", e$
          sav_cantext_98 = 1
          ]
        else, "#899=260", e$
        ]

 

Link to comment
Share on other sites

The beauty of the Canned Text mechanism, is that is allows you up to 200 different "triggers" for output. Moreover, the Misc Values (Integers and Decimal Numbers), are only available at the "tool change event", while Canned Text can be triggered "during the cutting motion", through two mechanisms > 'Change at Point' (tied to the geometry chain, and 'regenerable' without losing those changes), and 'Toolpath Editor' (can be helpful, but this is a "manual change", which does not survive regeneration of the operation).

 

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