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:

Main progams


Rick46
 Share

Recommended Posts

Any one got any examples of good mains to run in memory mode to call out subs from data server on a fanuc 18i-MB control for a toyoda fv1680 machine. I got one from and older fanuc 18i but it you had to take the safe start out of sub program to get it to run. now with the same main it throws up error when it calls out the g5.1q1 for next tool in the subprogram unless I leave in the safe start that MC generates at the begining of each tool path it posts out.. this dosent make sense to me so im wondering ifg I need a new main program. heres an example of what im running for a main.

 


%
O0001(MAIN)
G00 G40 G49 G80
G91 G28 Z0.
G91 G28 X0. Y0.
G00 G90 G54 X0. Y0.
M198 P1000
G00 G90 G55 X0. Y0.
M198 P1000
G00 G90 G56 X0. Y0.
M198 P1000
M05
G91 G28 Z0. 
G91 G28 X0. Y0.
M30 

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

For the main;


%
O0001(MAIN)
M1
M198P11
M30
%
[/Code]

 

and for the sub;

[Code]
%
O0011(SUB)
M1
N1T1M6
G5.1Q1
(BLAH BLAH BLAH)
G5.1Q0
G53Z0
G91G49
M1
M99
%
[/Code]

The above example has always worked for me. A coupel notes though; the sub should be file name O0011, and there though be NO file extension.

 

HTH

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