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:

Mpmaster post help


DavidB
 Share

Recommended Posts

I want to add spidle load settings for the Makinos into the Mpmaster post.

 

This is what I came up with.

I coppied the ptooltable section to this

code:

 pspintable # Write tool load table, scans entire file, null tools are negative

tnote = t$

spaces$=0

if t$ >= zero,

[

 

if tcr$>0, *t$, "S??", e$

if tcr$=0, *t$, "S??", e$

]

spaces$=sav_spc

I added pspintable to post but I only get the first tool used.

I want all tools used in the program to be added.

 

From tool table

code:

 (T11  - 80MM DIA ISCAR SHELL MILL - H11  - D31  - D80.000mm - R2.000mm)

(T12 - 20 DEGREE X 57.2 MM DOVETAIL CUTTER T20395 - H12 - D32 - D57.200mm - R0.400mm)

(T14 - 9.8MM DRILL - H14 - D34 - D9.800mm)

(T16 - 11.8MM DRILL - H16 - D36 - D11.800mm)

(T15 - 10MM 45 DEGREE MINIMASTER - H15 - D35 - D10.000mm)

(T17 - 10MM REAMER - H17 - D37 - D10.000mm)

(T18 - 12.0MM H7 REAMER - H18 - D38 - D12.000mm)

(T10 - 80 FACE MILL - H10 - D30 - D80.000mm - R1.000mm)

From pspintable

T11S??

 

It should read

T11S??

T12S??

T14S??

T16S??

T15S??

T17S??

T18S??

T10S??

 

 

Any ideas?

Thanks

Link to comment
Share on other sites

I got it to do this.

code:

 (**SPINDLE LOAD DATA**)

(NOTE - T=TOOL NO. S=LOAD X 10)

GOTO5

M46

()

(T11 - 80MM DIA ISCAR SHELL MILL - H11 - D31 - D80.000mm - R2.000mm)

T11S??

(T12 - 20 DEGREE X 57.2 MM DOVETAIL CUTTER T20395 - H12 - D32 - D57.200mm - R0.400mm)

T12S??

(T14 - 9.8MM DRILL - H14 - D34 - D9.800mm)

T14S??

(T16 - 11.8MM DRILL - H16 - D36 - D11.800mm)

T16S??

(T15 - 10MM 45 DEGREE MINIMASTER - H15 - D35 - D10.000mm)

T15S??

(T17 - 10MM REAMER - H17 - D37 - D10.000mm)

T17S??

(T18 - 12.0MM H7 REAMER - H18 - D38 - D12.000mm)

T18S??

(T10 - 80 FACE MILL - H10 - D30 - D80.000mm - R1.000mm)

T10S??

M37

M238

M235

N5

M41

Link to comment
Share on other sites

Brett I hade tried that but I get this.

code:

 (**SPINDLE LOAD DATA**)

(NOTE - T=TOOL NO. S=LOAD X 10)

GOTO5

M46

()

(T11 - 80MM DIA ISCAR SHELL MILL - H11 - D31 - D80.000mm - R3.200mm)

T11S??

T11S??

(T21 - 50MM U-DRILL - H21 - D41 - D50.000mm)

T21S??

T21S??

M37

M238

M235

N5

M41

It double ups the psindletable.

I was hoping I could get the tool table, then the spintable under it listing all tools used in the program.

 

code:

 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 #dave

if tool_table = 1, ptooltable

pspintable

if tool_table = 2, ppredtool

if tool_table = 3, pmetatool

if t$ >= zero, tcnt = tcnt + one

ptravel

pwritbuf5

 

 

ptooltable # Write tool table, scans entire file, null tools are negative

tnote = t$

toffnote = tloffno$

tlngnote = tlngno$

spaces$=0

if t$ >= zero,

[

 

if tcr$>0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", *tcr$, punit, scomm_end, e$

if tcr$=0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, scomm_end, e$

if tcr$>0, *t$, "S??", e$

if tcr$=0, *t$, "S??", e$

]

#if t$ >= zero,

# [

# if tcr$>0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", *tcr$, punit, " - ", popnote, scomm_end, e$

# if tcr$=0, scomm_str, *t$, ptspace, " - ", plistcomm, " - ", *tlngno$, phspace, " - ", *tloffno$, pdspace, " - ", *tldia$, punit, pdiamspc, " - ", " - ", popnote, scomm_end, e$

# ]

#if $t >= zero,

# [

# scomm_str, *t$, ptspace, " - ", plistcomm, scomm_end, e$

# ]

#if t$ >= zero,

# [

# if tcr$>0, scomm_str, *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia$, " ", *tcr, punit, " ", popnote, scomm_end, e$

# if tcr$=0, scomm_str, *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia$, " ", popnote, scomm_end, e$

# ]

spaces$=sav_spc

 

pspintable # Write tool load table, scans entire file, null tools are negative

tnote = t$

spaces$=0

if t$ >= zero,

[

 

if tcr$>0, *t$, "S??", e$

if tcr$=0, *t$, "S??", e$

]

spaces$=sav_spc

Thanks Brett

Link to comment
Share on other sites

code:

pspintable # Write tool load table, scans entire file, null tools are negative

tnote = t$

spaces$=0

if t$ >= zero,

[

 

if tcr$>0, *t$, "S??", e$

if tcr$=0, *t$, "S??", e$

]

spaces$=sav_spc

if tcr$>0, *t$, "S??", e$

if tcr$=0, *t$, "S??", e$

 

Change the 2 lines above to this one line:

 

if tcr$, *t$, "S??", e$

Link to comment
Share on other sites

Crazy that did the first tool only.

This is from ptooltable.

code:

(T4   - 100MM FACE MILL      - H4   - D24  - D100.000mm)

(T15 - 10MM 45 DEGREE MINIMASTER - H15 - D35 - D10.000mm)

(T20 - NO 4 CENTRE DRILL - H20 - D40 - D7.947mm)

(T5 - 84MM DRILL - H5 - D25 - D84.000mm)

(T8 - 23MM CHAMDRILL - H8 - D28 - D23.000mm)

(T6 - 73-39 TREPAN TOOL - H6 - D26 - D75.000mm)

(T7 - 80MM R390 MODIFIED CENTRE - H7 - D27 - D80.000mm - R1.600mm)

What I want is another table showing all tools used with S??.Like this

 

T4S??

T15S??

T20S??

T5S??

T8S??

T6S??

T7S??

Link to comment
Share on other sites

Ok then just change it to not use tcr, just for it out all the time. You are putting a condition statement using the tcr if it does or does not have have it with 2 line which is why you are getting both lines of output. Just change it to so.

 

*t$, "S??", e$

 

So take care of it for you.

Link to comment
Share on other sites

Crazy this is what I get.

code:

 ()

(T4 - 100MM FACE MILL - H4 - D24 - D100.000mm)

T4S??

(T15 - 10MM 45 DEGREE MINIMASTER - H15 - D35 - D10.000mm)

T15S??

(T20 - NO 4 CENTRE DRILL - H20 - D40 - D7.947mm)

T20S??

(T5 - 84MM DRILL - H5 - D25 - D84.000mm)

T5S??

(T8 - 23MM CHAMDRILL - H8 - D28 - D23.000mm)

T8S??

(T6 - 73-39 TREPAN TOOL - H6 - D26 - D75.000mm)

T6S??

(T7 - 80MM R390 MODIFIED CENTRE - H7 - D27 - D80.000mm - R1.600mm)

T7S??

(T22 - 10 X 60 DEGREE CHAMFER MILL - H22 - D42 - D10.000mm)

T22S??

I want the spindle load TABLE (T_S??) to be sepperate.

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Yeah, ditto Tim's suggestion. That would be a "freebie" otherwise you'd need to build a buffer for it. You can sub and merge just about anythere also.

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