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:

sub-programs


cnc@gci
 Share

Recommended Posts

Don't completely understand where you are going, but if you mean that you have a bunch of pockets [for example] across your part and you want to use subs to machine them, use Toolpath-Transform and select "create subprograms" or whatever the checkbox says

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

So your main you tant the following (essentially)

 

N1T1M6

G0G90G54X0Y0S10000M3

G0G43H1M8

M98P1001

G91G28Z0M9

M1

.

.

.

.

 

O1001(SUB)

G1X1.

M99

 

So on and so forth?

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

I just updated an MPSubrep post today. I'm adding on all the High Speed Machining Stuff, tool breakage detection, etc... ad infinitum. I'm bored and I'm babysitting a long cycle. biggrin.gif

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

quote:

...is this mpsubrep post that you updated going to be availaible for public use?

Right now it's machine specific (Toyoda HMC with a full 4th) so I don't imagine it would work for everyone so in a word no, it's not for public consumption. If a reseller were to contact me and request it for one of their customers I would happily part with it but end users... no sorry.

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

A sub program is a segment of code that is called from a Main Program via M98 or M198 for an external device such as a memory card or Dataserver.

 

See below;

 

code:

%

O1000 (T-OP01)

(MCX FILE - POST TEST.MCX)

(POST - MPSUBREP_TOYODA)

(MATERIAL - ALUMINUM INCH - 2024)

(PROGRAM - T-OP01.NC)

(DATE - JUN-019-2009)

(TIME - 09:014 PM)

(PROGRAMMER - JOE MAMMA)

 

(******************************)

(X ZERO IS ....................)

(Y ZERO IS ....................)

(Z ZERO IS ....................)

(B ZERO IS ....................)

(******************************)

 

M1

 

(***** TOOL LIST START *****)

(T1 * 1/2 FLAT VARIMILL ENDMILL * CONTOUR....)

(T8 * 1.8MM COOLANT FED DRILL - NO. 50 * DRILL/CBORE)

(T15 * NO. 8-32 TAPRH * TAP........)

(T13 * 3/64 FLAT ENDMILL * CONTOUR....)

(***** TOOL LIST END ******)

 

 

N1(OUTER PROFILE)

G0G40G49G80G90

T1(1/2 FLAT VARIMILL ENDMILL)

M6

G17

G54G90B0.(FRONT TOOL PLANE)

G0G90X1.7689Y.5859S1220M3T8

G43H1Z.25M8

G5P10000

M198P1001(CALLS SUB PROG O1001)

M5

G5P0(HPCC OFF)

G91G28Z0.M9

G49

G90

M75

G65P9863Z5.(TOOL BREAKAGE DETECTION)

M1

 

N8(DRILL CORNERS)

G0G40G49G80G90

T8(1.8MM COOLANT FED DRILL - NO. 50)

M6

M75

G17

G54G90B0.(FRONT TOOL PLANE)

G0G90X-.7419Y.9319S6735M3T15

G43H8Z.1M12

M198P1002(CALLS SUB PROG O1002)

M5

G91G28Z0.M9

G49

G90

M75

G65P9863Z5.(TOOL BREAKAGE DETECTION)

M1

 

N15(TAPL OUTER CORNERS)

G0G40G49G80G90

T15(NO. 8-32 TAPRH)

M6

M75

G17

G54G90B0.(FRONT TOOL PLANE)

G0G90X-.7419Y.9319S1024M3T13

G43H15Z.1M8

M198P1003

M5

G91G28Z0.M9

G49

G90

M75

G65P9863Z5.(TOOL BREAKAGE DETECTION)

M1

 

N13(EDGE BREAK)

G0G40G49G80G90

T13(3/64 FLAT ENDMILL)

M6

M75

G17

G54G90B0.(FRONT TOOL PLANE)

G0G90X.6361Y.1328S5570M3T1

G43H13Z.25M8

G5P10000

M198P1004(CALLS SUB PROG O1004)

M5

G91G28Z0.M9

G5P0(HPCC OFF)

G65P9863Z5.(TOOL BREAKAGE DETECTION)

G90

M99

 

 

O1001(T1 * 1/2 FLAT VARIMILL ENDMILL * CONTOUR)

G0G90X1.7689Y.5859

Z.25

Z.1

G1Z0.F10.

X1.2689

G3X.7689Y.0859I0.J-.5

Z.1

G0Z.25

M99

 

 

O1002(T8 * 1.8MM COOLANT FED DRILL - NO. 50 * DRILL/CBORE)

G0G90X-.7419Y.9319

Z.1

G99G81Z-1.R.1F2.83

X.5189

Y-.7601

X-.7419

G80

G0Z.1

M99

 

 

O1003(T15 * NO. 8-32 TAPRH * TAP)

G0G90X-.7419Y.9319

Z.1

M5

M19

M33S1024

G99G84Z-1.R.1F.0313Q.125

X.5189

Y-.7601

X-.7419

G80

G0Z.1

M99

 

 

O1004(T13 * 3/64 FLAT ENDMILL * CONTOUR)

G0G90X.6361Y.1328

Z.25

Z.1

G1Z0.F3.

X.5893

G3X.5424Y.0859I0.J-.0469

Z.1

G0Z.25

M99

%

HTH

Link to comment
Share on other sites

quote:

 

 

quote:

--------------------------------------------------------------------------------

...is this mpsubrep post that you updated going to be availaible for public use?

--------------------------------------------------------------------------------

 

Right now it's machine specific (Toyoda HMC with a full 4th) so I don't imagine it would work for everyone so in a word no, it's not for public consumption. If a reseller were to contact me and request it for one of their customers I would happily part with it but end users... no sorry.


just thought I would ask. thanks anyways cnc apps guy ..

Link to comment
Share on other sites

Hi Guys,

 

The subprograming codes are ISO standerdised so any machines they are same, the codes G98 is for Calling suprogram and G99 End of subprogram.

So the main program will have M98 with program no. and noof repets.

 

You can out put sub programs in mastercam for countur/pkts also by just clicking the icon onthe Depthcuts -> check the botton on for sub programs you can see the codes.

 

The Advantage of subprograming is to reduce the length of the program.

 

Hope this info is usefull.

 

Rao

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

Hey Rick, another reason it's not for public distribution right now is the post is not ready for prime time. There's a lot of errors (so far nothing affecting the ourput I need) but definitely someting I need to go line by line on when I get some time to do some serious debug time. It's probably going to need a few more hours.

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