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:

post edit.


Diablo God
 Share

Recommended Posts

Have a long standing problem, That I just usualy edit by hand.

 

If some dont want to help me, I understand smile.gif

 

Anyhow, this is for our enshu je-60, with yasnac i-80 control.

 

every machine has its quirks, well this one has always had a quirk that gets annoying.

 

If you say t2 is in the spindle, and you try to stage t2. It will alarm out the machine. Which is annoying since it should be able to. The matssura es-450 does this fine. So anyhow was curious.

 

Is it possible to have the post to check its self for the same tool, and not stage t2 if t2 was already called up?

 

This becomes a problem when I am dancing around a pallet. and want to recalls its tool on a new plane.

 

secondary problem At g43 on a plane switch, It will not call up its tool offset number. Just spitting out g43 z.1 instead of g43 h2 z.1

 

So starting in the middle of programs can be tiresome.

 

So is their a way to force height offset everytime?

 

I kinda neat to switch one problem for one and the

other to the other smile.gif

 

It is a old mpfan post that I have modified to fit m needs. But never found out how to do these 2 problems.

 

 

Jim

Link to comment
Share on other sites

Yes for the Toolheight offset numebr look here in

code:

ptlchg          #Tool change                                        

pcuttype

toolchng = one

if mi1 = one, #Work coordinate system

[

pfbld, n, *sg28ref, "X0.", "Y0.", e

pfbld, n, "G92", *xh, *yh, *zh, e

]

pbld, n, "M01", e

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

result = newfs(15, feed) #Reset the output format for 'feed'

pbld, n, *t, "M6", e

pindex

sav_absinc = absinc

if mi1 > one, absinc = zero

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e

pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e

your post and put a * in front of tlngno if ti does not have one there already if it does then you have another problem.

 

Have you looked here in your post to see about staging I do not use it by turning that off:

code:

stagetool   : 0     #0 = Do not pre-stage tools, 1 = Stage tools  

The one thing about this place we are here to help. We can not get along in one topic and be bending over backward to help in another. We are a community and in that we are going to agree and disagree but all man enough to be men.

 

HTH

Link to comment
Share on other sites

Here are the settings, and posted what comes out.

 

 

ptlchg #Tool

change

pcuttype

toolchng = one

if mi1 = one, #Work coordinate system

[

pfbld, *sg28ref, "X0.", "Y0.", e

pfbld, "G92", *xh, *yh, *zh, e

]

pbld, "M01", e

pbld, "G94", e

pbld, "G09", e

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

pbld, *t, e

pbld, "M98P7006", e

pindex

sav_absinc = absinc

if mi1 > one, absinc = zero

pcan1, pbld, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

*speed, *spindle, pgear, strcantext, e

pbld, "G43", *tlngno, pfzout, scoolant, next_tool, e

absinc = sav_absinc

pcom_movea

toolchng = zero

pbld, "M08", e

c_msng #Single tool subprogram call

 

 

stagetool : 1 #0 = Do not pre-stage tools, 1 = Stage tools

 

 

G00 G17 G40 G49 G80 G91

M98P7180

( )

( **G57 B180. 1/2 EM )

G90

N102 T2 M106

T2

G0 G90 G57 X.0686 Y-20.1328 S10000 M3

G43 Z1. M08

GON

G1 Z.1667 F70.

Link to comment
Share on other sites

im guessing now

 

 

check your format statments for the tlngno H

 

 

# Toolchange / NC output Variable Formats

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

fmt T 4 t #Tool No

fmt T 4 first_tool #First Tool Used

fmt T 4 next_tool #Next Tool Used

fmt D 4 tloffno #Diameter Offset No

fmt H 4 tlngno #Length Offset No

Link to comment
Share on other sites

MPMASTER is still there for 8.1 look atthe top of this page see the word posts click it and there is a download for it for 8.1.

 

Have you tried changing the staging tools to 0 and see what those results give you are. The index move ccan be done with a Misc and you would not have to force a toolchange to do so if that is all you want.

 

HTH

 

Also have you look at the toolchage part of the post not just the header to see hwere you have the G43 you have the * there is 2 places in most posts for the G43 HXX to be output.

Link to comment
Share on other sites

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

# Toolchange / NC output Variable Formats

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

fmt T 4 t #Tool No

fmt T 4 first_tool #First Tool Used

fmt T 4 next_tool #Next Tool Used

fmt D 4 tloffno #Diameter Offset No

fmt H 4 tlngno #Length Offset No

fmt G 4 g_wcs #WCS G address

fmt P 4 p_wcs #WCS P address

fmt S 4 speed #Spindle Speed

fmt M 4 gear #Gear range

Link to comment
Share on other sites

It shows up here:

code:

psof            #Start of file for non-zero tool number             

pcuttype

toolchng = one

if ntools = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool

]

"%", e

*progno, e

"(PROGRAM NAME - ", sprogname, ")", e

"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e

pbld, n, *smetric, e

pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e

sav_absinc = absinc

if mi1 <= one, #Work coordinate system

[

absinc = one

pfbld, n, sgabsinc, *sg28ref, "Z0.", e

pfbld, n, *sg28ref, "X0.", "Y0.", e

pfbld, n, "G92", *xh, *yh, *zh, e

absinc = sav_absinc

]

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

if stagetool >= zero, pbld, n, *t, "M6", e

pindex

if mi1 > one, absinc = zero

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e

pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e

absinc = sav_absinc

and here

code:

ptlchg          #Tool change                                        

pcuttype

toolchng = one

if mi1 = one, #Work coordinate system

[

pfbld, n, *sg28ref, "X0.", "Y0.", e

pfbld, n, "G92", *xh, *yh, *zh, e

]

pbld, n, "M01", e

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

result = newfs(15, feed) #Reset the output format for 'feed'

pbld, n, *t, "M6", e

pindex

sav_absinc = absinc

if mi1 > one, absinc = zero

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e

pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e

in the mpfan post.

 

HTH

Link to comment
Share on other sites

quote:

secondary problem At g43 on a plane switch

by chance look under ptlchg_com for this

 

 

pindex

sav_absinc = absinc

if wcstype > one, absinc = zero

if lock_codes = 1 & not(index) & rot_on_x, pbld, n, *sunlock, "(UNLOCK)", e

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, pindexman, e

if lock_codes = 1 & not(index) & rot_on_x & cuttype = 0, pbld, n, *slock, "(LOCK)", e

pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e

Link to comment
Share on other sites

Hah had 3 different posts to comare and check them out. Found I was looking though a good post for the opther machine that actualy works. Anyhow pulled the right post up biggrin.gif and found a tlngno with no asterix. So woop got the g43 line fixed. Thanks very much. Now I just need to 'not' stage the tool that is already in the head and ill be a happy o/t user smile.gif no pun intended.

 

Jim

Link to comment
Share on other sites

G00 G17 G40 G49 G80 G91

M98P7180

( )

( **G57 B180. 1/2 EM )

G90

N102 T2 M106

T2

G0 G90 G57 X.0686 Y-20.1328 S10000 M3

G43 Z1. M08

GON

G1 Z.1667 F70.

 

This is what I am getting atm, I need staged tools. Or the horizontal would be to slow on the tool change. But the yasnac i-80 I have, for some reason alarms out if you have a tool in the head than call it up again.

 

Like the post example, says t2 m106 then stages to its self again, it will alarm out on the second t2 call out. I need to not call up t2 if it already has t2. Make sense?

 

This happens when I do a force tool change on a line. Since it has force tool change. The next tool operation is still going to be t2 so it stages it for t2 again. I do force tool change so I can more custom write my horizontal paths, saving lots of time where I can. This saves time by not backing out all the way for a b axis rotation. And instead I can make a more postbale program to keep the tool not traveling so much z where I can. I wrtie alot of production programs so a 20 in ch z axis move, then b rotation, then negative again 20 " move actualy adds up to alot of uneeded traveling. So where I can I will move out in the x into position, leave the z in place rotate my b, then go down to z height.

 

Jim

 

Hard to explain.

Link to comment
Share on other sites

Nope it make pefect sense to me so this is what you need to do in the post. You need to create a Misc varaiable that will not output the T2 when you have it on. The trick is you will need to think ahead when you do the programming to get the desired result but once you get the hang on Misc for things you will never know what you did without them. so I am going to use Mi6 for this example. Here is where to add this in the post.

code:

psof            #Start of file for non-zero tool number             

pcuttype

toolchng = one

if ntools = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool

]

"%", e

*progno, e

"(PROGRAM NAME - ", sprogname, ")", e

"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e

pbld, n, *smetric, e

pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e

sav_absinc = absinc

if mi1 <= one, #Work coordinate system

[

absinc = one

pfbld, n, sgabsinc, *sg28ref, "Z0.", e

pfbld, n, *sg28ref, "X0.", "Y0.", e

pfbld, n, "G92", *xh, *yh, *zh, e

absinc = sav_absinc

]

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

if stagetool >= zero, pbld, n, *t, "M6", e

pindex

if mi1 > one, absinc = zero

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e

pbld, n, "G43", *tlngno, pfzout, scoolant, e

if mi6 = 1,

[

pbld, n, "(TOOL CHANGE REMOVED MAKE MI6 0 TO PUT BACK)", e

]

else,

[

pbld, n, next_tool , e

]

Then again here:

code:

ptlchg          #Tool change                                        

pcuttype

toolchng = one

if mi1 = one, #Work coordinate system

[

pfbld, n, *sg28ref, "X0.", "Y0.", e

pfbld, n, "G92", *xh, *yh, *zh, e

]

pbld, n, "M01", e

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

result = newfs(15, feed) #Reset the output format for 'feed'

pbld, n, *t, "M6", e

pindex

sav_absinc = absinc

if mi1 > one, absinc = zero

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e

pbld, n, "G43", *tlngno, pfzout, scoolant, e

if mi6 = 1,

[

pbld, n, "(TOOL CHANGE REMOVED MAKE MI6 0 TO PUT BACK)", e

]

else,

[

pbld, n, next_tool, e

]

Then you get code like this:

code:

( 1/16 FLAT ENDMILL TOOL - 4 DIA. OFF. - 4 LEN. - 4 DIA. - .062)

N144T4M6

N146G0G90G54X-.062Y.155A0.S5000M3

N148G43H4Z.25

N150(TOOL CHANGE REMOVED MAKE MI6 0 TO PUT BACK)

N152Z.1

Then if you want to get fancy go into the TXT for the post and change this:

code:

6. "Misc. integer [6]"  

To this:

code:

6. "Stage tools [0=ON , 1=OFF]"  

I hope that helps. One other thing where the next_tool was needs to remove that from the post. As always back up your post before doing any post mods. Have a good day and hope that helps. cheers.gifcheers.gif

Link to comment
Share on other sites

Madbulb,

 

We have Enshu JE60S's with Fanuc 18i control. We also get that alarm when we try to stage a tool already in the spindle. I'm thinking that when I switched to the MP master post that went away. I'm at home now, but when I get back to work Tuesday I'll check to make sure. We don't run many one tool programs so I can't remember. Bump this thread Tuesday if the problem isn't solved to remind me.

Link to comment
Share on other sites

If your tool staging is on a lnie by itself, then it is easy to prevent it from coming out if the tool ias already in the spindle. The current line for tool staging would read like this:

 

n, *next_tool, e

 

If you change that to this:

 

if next_tool <> t, n, *next_tool, e

 

Then the tool staging command will only be output if the next tool and the current tool are different.

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