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 help


Racer X
 Share

Recommended Posts

Could someone steer me in the right direction, please.

 

My main machine is an Okuma MX45VAE with an OSP7000M controller. My post is a standard one that my reseller modified just a little for me. There are a couple of mods I would like to make however. Nothing crucial, just minor annoyances. Let me say first that I know nothing about post processors as to how to write/edit them.

 

I have asked my reseller about the CD for learning how to write/edit them that has been spoken of here on the forum. But, they said they know nothing about it.

 

So anyway, here are my questions.

 

First I would like to change how it calls my coolant on. It like to turn it on in the same line it calls up tool lenght offset. I would like to have it come up on the first -Z feed.

 

Sencondly, I would like to be able to call my next tool to the ready station immediately after a tool change. That way I wouldnt be waiting for the magazine to index on a toolchange thus saving cycle time. So instead of being say T1M6 my T1 command would have happened somewhere after the preceeding tool was changed. Then I would just have M6.

 

Thanks in advance.

Link to comment
Share on other sites

The tool staging should be easy, look for this:

 

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

 

and set to 1

 

I personally wouldn't wait to turn coolant on until when you say you want it but I think if you remove the scoolant call from the postline that has the TLO call (G56?) then it should come on by default on the next move because scoolant is in the plinout sub

 

C

 

[ 01-28-2004, 03:19 PM: Message edited by: chris m ]

Link to comment
Share on other sites

This is the standard ptlchng block from the Okuma post I got from cd.

 

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, *t, "M6", e

pbld, n, "M1", e

pbld, n, pwcs, e

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

pindex

sav_absinc = absinc

if mi1 > one, absinc = zero

pcan1, pbld, n, *sgcode, *sgabsinc, pfxout, pfyout, pfcout, e

pbld, n, *speed, *spindle, pgear, next_tool, strcantext, e

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

absinc = sav_absinc

pcom_movea

toolchng = zero

c_msng #Single tool subprogram call

Do you have the same code in your okuma pst file?

 

Can you show what your program look like right now straight from post and what you want to change?

 

Do you want T# occur at the end of toolpath? Is your stagetool variable turn on?

We can help you better this way.

Link to comment
Share on other sites

Moto,

the stagetool switch in the post should be activated to pre-stage your tools. look for the word stagetool and the set the number to 1. There is a disk from CNC Software that helps users edit their posts. it is in PDF format and should be available from your dealer. this is NOT

a training manual. it is a tech manual. it describes how posts work and the functions that are available for the user. moving the coolant call should not be to hard either. In the post look for a post block called "ltlchg". in it you will see a post block called psfcool. remove it from the line and place it 2 lines below right behind the pfzout call. be sure to place commas

correctly.

this is what you have now:

pbld, n, pspindle, prpm1, *toolno, prpm2, p_bi_dir, pfscool

pindex

pbld, n, psccomp, *sgcode, pwcs, pfxout, pyout, pfzout, pcan

 

 

this is what you need:

pbld, n, pspindle, prpm1, *toolno, prpm2, p_bi_dir

pindex

pbld, n, psccomp, *sgcode, pwcs, pfxout, pyout, pfzout,PFSCOOL, pcan

placed with capital letters so you can see it easier. this should call your coolant with the "Z" move.

HTH cool.gif

Link to comment
Share on other sites

This is what my post looks like for the stagetool portion.

 

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

# Start of File and Toolchange Setup

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

psof0 #Start of file for tool zero

psof

 

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

 

 

This is what the coolant part looks like:

 

ptlchg #Tool change

pcuttype

toolchng = one

 

 

pcom_moveb

c_mmlt #Multiple tool subprogram call

#ptoolcomment

#comment

pcan

pindex

pbld, n, pwcs, e

pbld, n, "M06",*t, e

pbld, n, *spindle,*speed, strcantext, e

 

if mi1 > one, absinc = zero

pcan1, pbld, n, "X0. Y0.", e

 

pbld, n, "G56", *tlngno, scoolant, e

 

pbld, n, *sgcode, pfzout,e

pbld, n, pfxout, pfyout,e

 

Does this make any sense.

Link to comment
Share on other sites

1) Remove the 'scoolant' from the G56 line and see if your coolant call comes out where you want. If you want it on the first Z move, just move scoolant to the next line after the pfzout:

 

pbld, n, *sgcode, pfzout, scoolant, e

 

mine actually looks like this:

 

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

 

2) I say again:

 

quote:

The tool staging should be easy, look for this:

 

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

 

and set to 1


The problem may be that if you have 'T2' post in the Tool 1 operation, when the machine reads T2 M6 in the Tool 2 operation it will freak out and give you 'Wrong T command'. If this happens you need to create a macro or use Okuma's variables to get around this (I think). I have seen a post that does this on this very forum.

 

Try a forum search for VATOL

 

C

 

[ 01-28-2004, 05:03 PM: Message edited by: chris m ]

Link to comment
Share on other sites

This is my stagetool line

 

code:

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

Am I being a bonehead here? Wait don't answer that. But, is it not already set as you said?

 

 

Thanks again. I don't mean to be a pain.

 

[ 01-28-2004, 05:19 PM: Message edited by: Moto GP ]

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