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:

fanuc wire subprogram post


fuzzy71e
 Share

Recommended Posts

I want to post out my burn call settings in a seperate subprogram. Anyone have any luck doing this? I have three Fanuc Robocut wires and am trying to do this with X2 software. Want code to look like this:

%

O1234

N5M31

N10G90G00X-1.875Y2.25

N15G92X-1.875Y2.25

N20G90

N25M98P1235 (.1250 DIA.)

N30M50

N35G90G00X-1.875Y1.25

N40G92X-1.875Y1.25

N45G90

N50M60

N55M98P1235 (.1250 DIA.)

N60M50

N65M45

N70M30

 

O1235

M37

D1S1

M98P1236

M38

D2S2

M98P1236

D3S3

M98P1236

D4S4

M98P1236

M29

M99

 

O1236

N75G91

N80G01G41X.0625Y0.0

N85G3I-.0625J0.0

N90G1G40X-.0625Y0.0

N95G90

M99

%

Link to comment
Share on other sites

fuzzy71z,

 

i have 3 fanuc wires also but i don't use subs.ijust window contour all of the geometry using the color mask and write the entire program.the reason i do that is because i don't want to have to figure out what main program goes with what sub.

 

another way to do multiple geometrys that are identical is at the end of the first one,put a rapid move to your next wire position at the end of of your program before the m30. then insert a g74 p1.this will reset your measure pt. and all you have to do is hit cycle start.put a m01 on the line after the rapid move and turn that on in your machine when you get to your last geometry so that it will stop and not rapid tothe next point.

Link to comment
Share on other sites

EXAMPLE OF A 1.00 DIA HOLE SPACED 1.0 APART

 

O1500

( 1.00 HOLE )

G0 G90

M31

G77 P1

M15 P0

G92 X0. Y0.

M60

M37

S1 D1

G41 G1 X.5

G3 X-.5 I-.5

X.5 I.5

M00

G40 G1 X0.

M38

S2 D2

G41 G1 X.5

G3 X-.5 I-.5

X.5 I.5

G40 G1 X0.

M38

S3 D3

G41 G1 X.5

G3 X-.5 I-.5

X.5 I.5

G40 G1 X0.

M38

S4 D4

G41 G1 X.5

G3 X-.5 I-.5

X.5 I.5

G40 G1 X0.

M50

M01 (TURN ON AT LAST HOLE)

G0 X1.0 Y0.(RAPIDS TO NEXT HOLE)

G74 P1(STORES MEASURE PT)

M29

M30

%

Link to comment
Share on other sites

Del,

I see how this works, pretty cool. My concern is would I have to repeat all the burn settings for each new location? If so, that becomes a problem for me because I often wire parts with over 300 holes. I have been doing this with V7.2 mill,for making the main or position program. Then adding the necessary subs. I would think x2 should be able to seperate the burn sets as well as the geometry into different subprograms. It does create the main position program and will put the hole or contour geometry into a sub but wants to repeat the burn sets for each hole or contour. This uses alot of unnecessary code, and if I needed to run the last skim cut for any reason block deleting the subprogram is very simple.

Fuzzy

Link to comment
Share on other sites

here is how mine post out a sub program.

6 1.00 dia holes spaced 1.5apart

i window contour all holes,check use sub programs and all contours use same sub.

you will have to save the main as one program and the sub as another one to put into machine. does this work for you

 

01500

G0 G90

M31

G77 P1

M15 P0

G92 X0. Y0.

M60

M37

S1 D1

M98 P0001

M38

S2 D2

M98 P0001

M38

S3 D3

M98 P0001

M38

S4 D4

M98 P0001

M50

G0 X1.5 Y0.

G92

M60

M37

S1 D1

M98 P0001

M38

S2 D2

M98 P0001

M38

S3 D3

M98 P0001

M38

S4 D4

M98 P0001

M50

G0 X3. Y0.

G92

M60

M37

S1 D1

M98 P0001

M38

S2 D2

M98 P0001

M38

S3 D3

M98 P0001

M38

S4 D4

M98 P0001

M50

G0 X4.5 Y0.

G92

M60

M37

S1 D1

M98 P0001

M38

S2 D2

M98 P0001

M38

S3 D3

M98 P0001

M38

S4 D4

M98 P0001

M50

G0 X6. Y0.

G92

M60

M37

S1 D1

M98 P0001

M38

S2 D2

M98 P0001

M38

S3 D3

M98 P0001

M38

S4 D4

M98 P0001

M50

G0 X7.5 Y0.

G92

M60

M37

S1 D1

M98 P0001

M38

S2 D2

M98 P0001

M38

S3 D3

M98 P0001

M38

S4 D4

M98 P0001

M50

M29

M30

 

 

O0001

G92 X0. Y0.

G90

G41 G1 X.5

G3 X-.5 I-.5

X.5 I.5

G40 G1 X0.

G90

M99

 

 

%

Link to comment
Share on other sites

Del,

The code that I have posted is what I use in our Fanucs. The one you sent me would work but repeating the burn settings is what I would like to not have to do. Putting them into their own subprogam and then calling the geometry from there will reduce the amount of code greatly. Just like you have done by putting the hole geometry into a subprogram

Fuzzy

Link to comment
Share on other sites

fuzzy, if you don't want all of the code then you can loop it like this.

 

you will have 2 main prgs. and 1 sub.

 

example of a 1.0 hole spaced 1.5 inches apart 6 times.

 

THE LOOP NUMBER REPRESENTS THE TOTAL NUMBER OF COPIIES INCLUDING THE ORIGINAL

 

THE SECOND MAIN CALLS THE SUB

 

01111 (MAIN PRG)

n1 g40 g50 g90

n2 g92 x0. y0.

n3 m31

n4 m98 p2222 L6

N5 M30

 

 

02222 (SECOND MAIN)

N6 M60

N7 M37

N8 G10 P9 B0 (READ BLOCK 27 )

N9 D1 S1

N10 M98 P3333

N11 M38

N12 G10 P9 B1 (SKIP BLOCK 27 )

N13 S2 D2

N14 M98 P3333

N15 D3 S3

N16 M98 P3333

N17 D4 S4

M98 P3333

N19 M29

N20 M50

N21 G0 X1.5 Y0.

N22 M99

 

(PART GEOMETRY) SUB PROGRAM

03333

N23 G92 X0. Y0.

N24 G1 G41 X.5

N25 X-.5 I-.5

N26 X.5 I.5

N27 /9 M00 (REMOVE SLUG)

N28 G0 G40 X0.

N29 M99

Link to comment
Share on other sites

Del,

If you did post this from x2 then the loop call could be removed and more locations could be added to the main which would give me almost what I am looking for. Removing the "G92 X0 X0" line from the geometry subprogram I think would be it.

Let me know .

Fuzzy

Link to comment
Share on other sites

fuzzy, the only way i know to do this is manually write the the two mains.

 

i usually just post all of the code no matter how long it is.

 

the thing i don't like about the loop is that it will rapid to a phantom position at the very end.i would put an m01 at that rapid move block and turn the m01 on in the machine at the last contour.

 

be sure and dry run a sample program before doing this. biggrin.gif

Link to comment
Share on other sites

the loop has to be manually written. i would think your post could be modified to write only one set of

power settings and offsets when using subs, but that is over my head.i'm sure there are people here who could help you with that.

Link to comment
Share on other sites

Del,

Thank you very much for your time with this problem. It looks like using x2 to do this will be a step backwards from how I have been doing it with v7 mill. I do like your loop program for doing holes that are the same distance from each other, and will give it a try.

Thanks Again

Fuzzy

Link to comment
Share on other sites

your welcome,

 

like i said i am sure hat you can get your post to output it like you like with some post guru's.

as long as all of your geometry is the same you should be able to window contour all geometry,even is spacing is varied, create a main with only one set of offset calls and one set of power settings,and only one subprogram of your geometry. x2 will do that now,but it still writes multiple d1 s1 for each move.

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