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:

have subs post as seperate files


Recommended Posts

For me the end of the main NEEDS to be M30.

Then end of the subs is M99.

 

Are you looking to have it actually open up seperate windows in Cimco (or whatever you use) the first having ONLY the main, the subsequent having ONLY a single sub and so on?

When mine post only one window pops up with all programs in that one window. Then I manually seperate them & add the start & end triggers.

Link to comment
Share on other sites

Keith, yeah the end will need to be an M30 but in my experience when the control reads the M30 at the end even if the subs follow it stops reading as the control recognizes M30 as the end of the program.

 

I got around that by simply changing it to an M99 on send and M30 once all received. otherwise multiple programs required multiple sends.

 

It was also the reason I changed my control def to output the subs before the main

Link to comment
Share on other sites

For me the end of the main NEEDS to be M30.

Then end of the subs is M99.

 

Are you looking to have it actually open up seperate windows in Cimco (or whatever you use) the first having ONLY the main, the subsequent having ONLY a single sub and so on?

When mine post only one window pops up with all programs in that one window. Then I manually seperate them & add the start & end triggers.

 

This is exactly what I need, and what I have to do now, and it is usually not a big deal, but I have some HUGE files with hundreds of subs coming up.

 

John, they all load just fine in file m99 or m30, but it will not call the sub out of the main file. If I switch to rs 232 communications the contol will automatically break them up upon load, but all my machine are lan or usb loaded.

Link to comment
Share on other sites

this is my peof$

 

 

n$, "M30", e$

mergesub$

clearsub$

mergeaux$

clearaux$

if fusion, "%", e$

 

 

If i do this

 

n$, "M30", e$

# mergesub$

# clearsub$

# mergeaux$

# clearaux$

if fusion, "%", e$

 

Then I get my main as an .eia(.nc) file and ALL my subs in one seperate .sub file

 

I need each sub to be a file of its own. I can kind of see the logic in my head in my head, but it would take some trial and error.

Link to comment
Share on other sites

Jeremy, look into setting the transform operations' (assuming thats how your creating the subs) NC file name differently for each one, I don't know what your dealing with for toolpaths, but this is the only thing I can think of...

(right click on the op in the ops manager, edit selected op, change NC file name)

 

Doing it in the post is way over my head....

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

It's not the M30 causing it to stop loading, it's the %

You can only have 2 in your program. One at the beginning and one at the end. Move the 2nd percent sign to after the sub, merge, yadda, yadda, yadda...<div><br></div><div>HTH</div>

Link to comment
Share on other sites
  • 3 months later...

My current post creates sub-programs propely, but it puts the at end of the main program. When I load them into the contorller it does not break them up. Anyone know how to get a post to output the main file as one program and the subs as seperate programs?

 

 

Jeremy, I ran into this issue at a customers. On a Fanuc control there is a parameter that looks for the end of a program, it can either be sent to M30/M99 or the End of Tape (%). Set it to M30/M99, and the programs will be read by the machine into separate files. so much easier than sending 20 programs via rs232.

Link to comment
Share on other sites

So, if it's a Matrix you don't need to split your file.

You can work like this:

..

..

M98 H1000 (H=BLOCK NUMBER TO BE CALLED)

G90G0Z1.M9

M01

M30

 

N1000(SUB)

G90G0X0Y0

..

..

M99

 

In conclusion you can have all the subs in the same file but you need to call them with M98 Hxxxx (INSTEAD OF M98 Pxxxx)

and after M30 you can have your subs wich will start with a block number. Something close to what mighty "SINUMERIK" have for years.

Changing your post should not be a big issue for that..

Link to comment
Share on other sites

I to would like to know if this is possible to do. As machine memory is small and we keep the subs on a data server. Accessing when called in running program with a M198. I have already got the subs on the bottom of my main program but this would save a lot of time if I could save the subs to there own files.

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