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:

Stock Posting not working


Recommended Posts

Hi,

I am having problem with X5 the post stock size doesn’t work. I notice that post is different set than X4. So I am having problem activating it.

Does anybody know how to turn on?

fmt X 2 stck_meta_ht

fmt Y 2 stck_meta_wdth

fmt Z 2 stck_meta_thck

fmt OX 2 stck_meta_ox

fmt OY 2 stck_meta_oy

fmt OZ 2 stck_meta_oz

Link to comment
Share on other sites

Here's the switch to select the tooltable output format

# --------------------------------------------------------------------------
# General Output Settings
# --------------------------------------------------------------------------
hel_2100    : no$   #Acramatic 2100 style helical moves, 0=no, 1=yes
force_dpts  : no$   #Force XY output on all drilling lines including cycle call?
haas        : 0     #Haas style peck drill and extended offsets, 0=no, 1=yes
wcstype     : 2     #0 = G92 at start, 1 = G92 at toolchanges, 2 = G54, 3 = Off
force_wcs   : yes$  #Force WCS output at every toolchange?
tool_table  : 1     #Tool table, 0=no, 1=yes, 2=Predator VCNC, 3=MetaCut View

 

 

 

Here's the logic that triggers the output

 

# --------------------------------------------------------------------------
# Tooltable Output
# --------------------------------------------------------------------------
pwrtt$      # Write tool table, scans entire file, null tools are negative
          if rotaxis$ > 0 | rotary_type$ > 0 | mill5$ <> 0,
            [
            sav_rot_on_x = rot_on_x
            output_z = no$
            ]
          if vmc = 0 & tlplnno$ <> 2, sav_rot_on_x = rot_on_x
          if vmc = 1 & tlplnno$ > 1, sav_rot_on_x = rot_on_x
          #sav_rot_on_x = rot_on_x    #Uncomment this line to output rotary axis value even when it's not used           
          t$ = wbuf(4,wc4)        #Buffers out tool number values
          if tool_table = 1, ptooltable
          if tool_table = 2, ppredtool      # <----------------Predator tooltable
          if tool_table = 3, pmetatool     # <----------------Metacut tooltable
          if t$ >= zero, tcnt = tcnt + one
          ptravel
          pwritbuf5
          if use_g10, pwritbuf9



Link to comment
Share on other sites

No I don’t want to use metacut. I want to use standard. The master cams suppose to read the stock size in stock setup box, and to export to post the size in X, Y, Z.

I am sorry I thought that Meta switch is for the standard size but it’s for Met cut.

So is there option like before in master cam 3. Or u have to build one?

Link to comment
Share on other sites

Ok. Sorry about the misunderstanding. These are the variables you need to output:

 

stck_ht$

stck_wdth$

stck_thck$

 

In Mpmaster they are already formatted to output with L, W, and H addresses.

 

If you want to output them a different way, you can initialize your own variables and format them the way you want.

 

fmt  S 4 cyl_typ    # Predator Cylindral Stock Type
fmt  L 2 stck_ht$
fmt  W 2 stck_wdth$
fmt  H 2 stck_thck$

# My new format statements - outputs stock size my way <----Add new format statements

fmt  "LENGTH = " 2 stck_mystock_ht
fmt  "WIDTH  = " 2 stck_mystock_wdth
fmt  "HEIGHT = " 2 stck_mystock_thck

 

Then assign the stock values to your variables and output them where you want them in your program.

 

For this example, I'll output the stock size at the start of the file after the tool table.

 

pmystock # My new postblock - outputs stock size my way <----Add new postblock

        stck_mystock_ht = stck_ht$
        stck_mystock_wdth = stck_wdth$
        stck_mystock_thck = stck_thck$


        scomm_str, stck_mystock_ht, scomm_end, e$
        scomm_str, stck_mystock_wdth, scomm_end, e$
        scomm_str, stck_mystock_thck, scomm_end, e$



psof$            #Start of file for non-zero tool number
     ptravel
     pwritebuf5
     pcuttype
     toolchng = one
     if ntools$ = one,
       [
       #skip single tool outputs, stagetool must be on
       #stagetool = m_one
       !next_tool$
       ]
     tooltotal = rbuf(4,0)  #Reads total tool and null tool changes
     if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn)
     else, nexttool = first_tool$

     if tool_table = 2, ppredstck
     if tool_table = 3, pmetastck
     else, pmystock #<----Call the new postblock from psof$ postblock if we're not using Predator or Metacut Utilities

 

Finally, make sure tool_table is set to 1.

 

# --------------------------------------------------------------------------
# General Output Settings
# --------------------------------------------------------------------------
ask         : 0     #Ask for part name, rev level, and op number
                   #Example nci name:  SA11251 REV B OP 3

hel_2100    : no$   #Acramatic 2100 style helical moves, 0=no, 1=yes
force_dpts  : no$   #Force XY output on all drilling lines including cycle call?
haas        : 0     #Haas style peck drill and extended offsets, 0=no, 1=yes
wcstype     : 2     #0 = G92 at start, 1 = G92 at toolchanges, 2 = G54, 3 = Off
force_wcs   : yes$  #Force WCS output at every toolchange?
tool_table  : 1     #Tool table, 0=no, 1=yes, 2=Predator VCNC, 3=MetaCut View

 

HTH

Link to comment
Share on other sites

Osom work great thank you so, much.

God bless you.

 

i also so this one,

# General Output Settings

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

ask : 0 #Ask for part name, rev level, and op number

#Example nci name: SA11251 REV B OP 3

 

Can you discover me the secret how to make that one to with switch so I can turn on

or off.

Link to comment
Share on other sites

Colic - That's strictly homebrewed logic I added to conform with the program header requirements of this shop.

 

 

Here's a sample of one of my headers:

 

%

O500 (MVS3050.500..MP)

(REV -)

(OP 1)

(SET ALL TOOLS .490" ABOVE BOTTOM OF PART)

(MC-510VF MATSUURA)

( MCX FILE - D3050-1 REV -.MCX-5 )

( NC FILE - MVS3050.500.NC )

(JUL-13-2011)

(2:31 PM)

(T1 - 3/8" EM )

(T2 - 1/8" EM )

(T3 - .060 EM ROUGHER )

(T4 - .060 EM )

(T5 - 1/8" C'SINK U/C .110 X .200 )

 

 

 

If you want to know more, I'll need a couple days to put it together for you.

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