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:

Posting G13's


Rob @ Target Machine
 Share

Recommended Posts

Axis ---I wish I had macro B.

 

This is a yasnac I80 control on a Matsuura mc510-vf. The G13's were an option for the control, but no macros that I am aware of. The control ignores any line beginning with #. I'm just trying to define a few cutom drill cycles to output the G13'3 so I don't have to make manual edits so often.

 

_______________________________________________

 

I hear that. The only two Yasnac controls I ever used were an MX2 Mill and LX1 lathe.

 

Great controls with lots of options for canned cycles.

 

It looks like your winning this battle and in time it will be done.

 

BTW: I am tobyaxis on CNC Zone, LOL.

Nice to see you here and welcome to the official MC Forum

Link to comment
Share on other sites

Crazy^Millman :

 

It sounds like you are talking about making the post output as a main or sub depending on the switch value. That is not what I am looking for. This is how I am posting now:

G00 G90 G54 X0. Y0. S6000 M08

G91 G43 H1 Z0. M03

G92 Z.05 M08

G90

M98 P0101

 

O0101

G0 Z.01

G1 Z-.012 F1.

G13 I.0703 F3. D27.

G1 Z-.057 F1.

G13 I.0503 F3. D28.

G1 Z-.067 F1.

G13 I.0503 F3. D28.

G13 I.0508 F5. D28.

G13 I.0508 F5. D28.

G1 Z-.012 F20.

G13 I.0703 F5. D27.

G0 Z.05

M99

G90

X.75

M98 P0101

X.25 Y-.25

M98 P0101

X.5

M98 P0101

X.75 Y-.5

M98 P0101

X.25 Y-.75

M98 P0101

X.5

M98 P0101

G00 M09

as you can see, I have a complete sub right in the middle of my main. If I could get that section to post after the end of the main I'd be all set. Can I make this section of code come out at the mergesub section at end of post?

Link to comment
Share on other sites

Well this is where I think you may need to look at how you are calling your sub calls and outputting it from that point. Really comes down to that. I would look at the format 1 Fadal post for V9 it did a good job of what you are after. If you do not have it call you dealer they should be able to get you a copy.

 

HTH

Link to comment
Share on other sites

Millman :

Yeah that's alot to interpret though. I noticed that the Mpmaster post doesn't use buffers 1 or 2, and doesn't use pwritebuf1 or any other # to buffer the sub code, yet it still posts subs if you check the subs box or transform. I can see a little better how the Fadal post is handling the task although I'm still a bit lost. I have to thank you for getting me this far. I will figure this out eventually.

Link to comment
Share on other sites

Axis :

Nice to see you here too. This forum is great for technical stuff like this MP language. I upgraded to X2mr2, but I still need 9.1sp1 for work, so I'll be learning X2 at home. Maybe in time I'll have more to offer on the X transition from 9 in the CNC Zone soon.

 

You can call me Toby, LOL.

 

Sounds like your going to be having Fun Learning!!!

I will have tons of that when my software and sim for X3 arrive from Cimquest.

 

This site is the best for MC on the net so absorb as much as you can from the Masters of Mastercam.

 

Cheers!!! cheers.gif

Link to comment
Share on other sites

Success!!! almost

Ok so I defined my vars, assigned the drl_prm#'s,mi's, and mr's

for my G13 cycle.

 

# ************************************************************

# format statements for custom vars

fmt Z 2 depth_1

fmt Z 2 depth_2

fmt Z 2 depth_3

fmt Z 2 depth_4

fmt Z 2 depth_5

fmt I 12 rad_1

fmt I 12 rad_2

fmt I 12 rad_3

fmt I 12 rad_4

fmt I 12 rad_5

fmt F 15 plunge_fr

fmt F 15 rough_fr

fmt F 15 finish_fr

fmt F 15 rapid_fr

fmt D 4 comp_1

fmt D 4 comp_2

fmt D 4 comp_3

fmt D 4 comp_4

fmt D 4 comp_5

fmt Z 2 clear_hgt

fmt Z 2 feed_hgt

# custom drill cycle variables *******************************

# ---------------------- custom drill parameters

depth_1 = drl_prm1 # depths and radii are in drl_prm 1-8

rad_1 = drl_prm2

depth_2 = drl_prm3

rad_2 = drl_prm4

depth_3 = drl_prm5

rad_3 = drl_prm6

depth_4 = drl_prm7

rad_4 = drl_prm8

depth_5 = drl_prm9

rad_5 = drl_prm10

# ----------------------- misc reals

plunge_fr = mr1 # feedrates are in ---------- mr 1-4

rough_fr = mr2

finish_fr = mr3

rapid_fr = mr4

#

clear_hgt = mr9 # clearance and feed planes - mr9-10

feed_hgt = mr10

# ----------------------- misc integers

comp_1 = mi3 # cutter comps are in ------- mi 3-5

comp_2 = mi4

comp_3 = mi5

comp_4 = mi6

comp_5 = mi7

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

 

Then wrote the script for the custom cycle.

 

pdrlcst #Custom drill cycles 8 - 19 user option

#Use this postblock to customize drilling cycles 8 - 19

#

pdrlcommonb

if drillcyc = 8, # Subprogram Call

[

sub_prg_call = peck1

pbld, n, "M98", *sub_prg_call, e

]

if drillcyc = 9, # ----G13 ------- Standard Feedthru

[

psub_call_s

subout = 1 #<----------------------------------------------------------------------here

psub_st_s

pbld, n, "G0", *feed_hgt, e

pbld, n, "G1", *depth_1, *plunge_fr, e

pbld, n, "G13", *rad_1, *rough_fr, *comp_1, e # solder well depth

pbld, n, "G1", *depth_2, *plunge_fr, e

pbld, n, "G13", *rad_2, *rough_fr, *comp_2, e # roughing depth

pbld, n, "G1", *depth_3, *plunge_fr, e

pbld, n, "G13", *rad_2, *rough_fr, *comp_2, e # rough at finish depth

pbld, n, "G13", *rad_3, *finish_fr, *comp_2, e # finish feedthru diameter

pbld, n, "G13", *rad_3, *finish_fr, *comp_2, e # spring pass

pbld, n, "G1", *depth_1, *rapid_fr, e

pbld, n, "G13", *rad_1, *finish_fr, *comp_1, e # cut burr at solder well depth

pbld, n,"G0", *clear_hgt, e

psub_end_s

subout = 0 #<--------------------------------------------------------------------and here

]

pcom_movea

 

 

pdrlcst_2 #Custom drill cycles 8 - 19, additional points user option

#Use this postblock to customize drilling cycles 8 - 19

pdrlcommonb

if drillcyc = 8,

[

sub_prg_call = peck1

pcan1, pbld, n, pxout, pyout, strcantext, e

pbld, n, "M98", *sub_prg_call, e

]

if drillcyc = 9, # ----G13 ------- Standard Feedthru Additional Points-------------------

[

pcan1, pbld, n, pxout, pyout, strcantext, e

pbld, n, "M98", *sub_prg_no, e

]

pcom_movea

 

Notice where I used psubout = # buffer channel and voila I can force subs from the custom cycle.

%

O0100

G91 G80 G40 G17 G00 G98

G54

G90 X0 Y0

M01

T1 M06

G00 G90 G54 X0. Y0. S6000 M08

G91 G43 H1 Z0. M03

G92 Z.05 M08

G90

M98 P0101

G90

X.75

M98 P0101

X.25 Y-.25

M98 P0101

X.5

M98 P0101

X.75 Y-.5

M98 P0101

X.25 Y-.75

M98 P0101

X.5

M98 P0101

G00 M09

G91 G28 Z0. M19

G28 Y0.

G53 X-15.

M00

M99

 

O0101

G0 Z.05

G1 Z-.012 F1.

G13 I.0703 F3. D27

G1 Z-.057 F1.

G13 I.0503 F3. D28

G1 Z-.067 F1.

G13 I.0503 F3. D28

G13 I.0508 F5. D28

G13 I.0508 F5. D28

G1 Z-.012 F20.

G13 I.0703 F5. D27

G0 Z1.

M99

%

Sorry this is so long, but I posted all changes so someone

else can use this as reference if interested.

Link to comment
Share on other sites

Yes sir that is why I do it as well. I have a bunch of things where I did probing, Dual Turret Sync, and others things and others do the same around here. I like what I see and good job putting that together. That went into my notes so I appreciate your willingness to share your results. cheers.gifcheers.gif

 

Thought looking at it I may see a problem. You are using the drilcyc 9 in the 1st call of your sub method and then again in the 2nd call of the sub cycle. The 2nd drill cycle only come into play when you are using more than one point. I recommend you look at the mi or mr method to call your sub in a post block verse handing this in your 1nd point drill cycle call. May see less problems down the road.

 

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