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:

macros / subprogram resources


Joeyls319
 Share

Recommended Posts

3 minutes ago, DHyde said:

Hi, I'm using a mazak controller with mastercam,  and fairly new with it.

I need to learn how to call subprogram and return. Basic m98 and m99 isn't working..

Whick controller?

I use M98/M99  for exrenal sub calls

also subs in program

M98H40001

will call 

N40001

M99 takes it back

 

Link to comment
Share on other sites

Is your sub named

2672226.eia

This is the body of one tool..the H calls are internal calls, the M98 is an external call

(1/4 3FL DESTINY DIAMONDBACK #DR31606R020S TOOL - 2 DIA. OFF. - 51999 LEN. - 51999 DIA. - .25)
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
(SUBPROGRAM N40001)
N1100
T12030250M6
G90G10L10P#51999R0
G90G10L12P#51999R0
()
IF[#900EQ1]GOTO10101
IF[#900EQ0]GOTO30101
N10101
()
G0G90B0.
G0G54.1P2G90X.0664Y-1.4566S18000M3
T45010125
G43H#51999Z1.M8
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1102
 
G0G90Z12.
S18000M3
G54.1P3X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1104
 
G0G90Z12.
S18000M3
G54.1P4X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1106
 
G0G90Z12.
S18000M3
G54.1P5X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1108
 
G0G90Z12.
()
N30101
IF[#901EQ1]GOTO10102
IF[#901EQ0]GOTO30102
N10102
()
G0G90B270.
S18000M3
G54.1P13X.0664Y-1.4566S18000M3
T45010125
G43H#51999Z1.M8
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1110
 
G0G90Z12.
S18000M3
G54.1P12X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1112
 
G0G90Z12.
S18000M3
G54.1P11X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1114
 
G0G90Z12.
S18000M3
G54.1P10X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1116
 
G0G90Z12.
()
N30102
IF[#902EQ1]GOTO10103
IF[#902EQ0]GOTO30100
N10103
()
G0G90B180.
S18000M3
G54.1P18X.0664Y-1.4566S18000M3
T45010125
G43H#51999Z1.M8
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1118
 
G0G90Z12.
S18000M3
G54.1P19X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1120
 
G0G90Z12.
S18000M3
G54.1P20X.0664Y-1.4566
Z1.
M98H40001
(1/4 3FL ROUGHER / ZROUGH WINDOW OF EXCESS STOCK / Z+.01)
(OPERATION #2)
 
N1122
 
G0G90Z12.
S18000M3
G54.1P21X.0664Y-1.4566
Z1.
M98H40001
()
N30100
()
M9
M5
G0G28G91Z0.
G90G10L10P#51999R0
G90G10L12P#51999R0
M01
M98P99999999(TOOL BREAKAGE DETECTION)
M01

 

Edited by Guest
Link to comment
Share on other sites

Here's how mine looks:

 

N30 #598=30.
(MCAM OP NO: 238)#599=238. 
(7/16IN FOR GUN DRILL  #1)
(7/16IN DME GUNDRILL)
G00 G17 G20 G40 G80 G90 G94
T84 M06
T38
G91 G00 G28 Z0.
G90
G54 G17
B90. C0.
M210
M107
G68.2 P1 X25.7874 Y0. Z0. I0. J90. K0.
G53.1 P1
G43 X-1.5 Y1. Z-6.19
M08
M51
X1.377
G00 Z-6.1929
G94
M98 P500001
Z-6.19
X-1.5
G49
M09
M05
G69
G91 G28 X0. Z0.
M212
M108
G28 B0. C0.
M01

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