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:

Sequence No's for lathe G71 G70. How to change?


bigjohn
 Share

Recommended Posts

G'day all.

Is there a way to change the output of line No's in can cycles G71, G70 starting from 100 with increments of 2? At the moment I have:

 

code:

G71 U2. R.2 U.4 W.2 F50.

N2 X64.703 S100

G1 X77.531 Z-5.234 F.1

G3 X78. Z-5.8 I-.566 K-.566

G1 Z-38.729

G2 X80.46 Z-41.699 I4.2

G1 X110.675 Z-56.806

G3 X114.072 Z-60.907 I-4.102 K-4.101

G1 Z-67.551

G2 X122.472 Z-71.751 I4.2

N4 G1 G40 X131.775

G0 Z1.18

M9

G0 X200.0 Z120.0 T0200

M01

(-------)

N3 G0 T0303

G41 G0 X64.703 Z1.18 M8

G50 S6000

G96 S100

G70 P2 Q4

I'd like to have something like:

 

code:

G71 U2. R.2 U.4 W.2 F50.

N100 X64.703 S100

G1 X77.531 Z-5.234 F.1

G3 X78. Z-5.8 I-.566 K-.566

G1 Z-38.729

G2 X80.46 Z-41.699 I4.2

G1 X110.675 Z-56.806

G3 X114.072 Z-60.907 I-4.102 K-4.101

G1 Z-67.551

G2 X122.472 Z-71.751 I4.2

N104 G1 G40 X131.775

G0 Z1.18

M9

G0 X200.0 Z120.0 T0200

M01

(-------)

N3 G0 T0303

G41 G0 X64.703 Z1.18 M8

G50 S6000

G96 S100

G70 P100 Q104

Or something similar. Can someone help me get it right? I have tried many different ways but obviously the wrong ways, there is no change. I don't know what I'm doing any more. N2 in this example is the same as tool change line N2 for tool 2.

 

Thank you for any help.

 

 

John

Link to comment
Share on other sites

Out of MPLFAN did you look here???

 

code:

prcc_call_end$   #Rough canned cycle end

 

# Restore cc_1013 to the value it held prior to the rough # 1/17/03

# groove canned cycle. cc_1013 was changed in ptoolend. # 1/17/03

if tool_op$ = 208 | tool_op$ = 62, cc_1013$ = sav_cc_1013 # 1/17/03

 

if tool_op$ <> 208,

[

omitseq$ = sav_omitsq

#Close the ext file

result = fclose (sbufname3$)

#Open the ext file as a buffer

#Use the size to determine the start and end sequence

subout$ = sav_subout

size3 = rbuf(three, zero)

if omitseq$ = one,

[

ng70s = n$

ng70e = n$ + seqinc$

]

else,

[

if old_new_sw = zero, ng70s = n$ + seqinc$

else, ng70s = n$ + (seqinc$ * two)

ng70e = ng70s + (seqinc$ * (size3 - one))

]

pwrite_g70

]

Link to comment
Share on other sites

Thank you Ron for your answer. I did find that section in the post, and it is the same as your code, however I don't know how to edit it to output seq No's starting from 100 with increments of 2.

 

Forgive my ignorance and thank you for your help.

 

 

John

Link to comment
Share on other sites

Lathe X2-MR2 using the MPLFAN.PST

 

In the Control Definition on the NC Output page...

In the Sequence numbers groupbox ->

 

Output sequence numbers is unchecked

Start sequence number = 100

Increment sequence number = 2

and

In the MPLFAN.PST ->

omitseq$ : -1 #CD_VAR Omit sequence numbers? (use -1 to enable sequence for LCC)

 

Gives me this output ->

 

%

O0000

(PROGRAM NAME - T)

(DATE=DD-MM-YY - 30-01-08 TIME=HH:MM - 09:21)

(MCX FILE - T)

(NC FILE - C:MCAMX2-MR2LATHENCT.NC)

(MATERIAL - STEEL INCH - 1030 - 200 BHN)

G20

(TOOL - 1 OFFSET - 1)

(OD ROUGH RIGHT - 80 DEG. INSERT - CNMG-432)

G0 T0101

G18

G97 S347 M03

G0 G54 X2.1995 Z-.3739

G50 S3600

G96 S200

G71 U.1 R0.

G71 P100 Q102 U.02 W.01 F.01

N100 G0 X.6684 S200

G1 Z-1.3304

X1.0946 Z-1.7681

N102 X2.1995

G0 Z-.3739

G28 U0. V0. W0. M05

T0100

M30

%

Link to comment
Share on other sites

Thanks Roger and Ron. You are very kind and helpful.

I am modifying a Generic Fanuc 2X Lathe.PST for a MORI LATHE - FANUC 15T CONTROL. I must have disabled something somewhere in the post that doesn't let me get those No's right. I tried Roger's rip with an unmodefied Mplfan.PST and a Fanuc 2X Lathe.PST that have not been edited and they worked very well. Now, my next job is to find where I messed up. Find the error or start from scratch.

 

Thanks again. The tip worked whith those 2 posts.

 

 

John

Link to comment
Share on other sites
  • 1 year later...

I also need some help, When I post I get the sequence numbers but for every G70 Cycle the output is the sequenece numbers from the first Rough pass; for evey single finish.

 

code:

(Flip Stock)

(TOOL - 1 OFFSET - 2)

(OD ROUGH RIGHT - 80 DEG. INSERT - CNMG-432)

( FC RGH2 )

G28 U0. W0.

G50 X10. Z10.

G0 T0102

G50 S700

G96 S400 M03

G0 X12.3 Z.185 M8

G41 X12.2 Z.135

G72 W.05 R.015

G72 P3 Q4 U.02 W.01 F.025

N3 G0 G41 Z0. S400

G1 X-.07 F.01

N4 G40 Z.135

G0 X12.2

M9

G28 U0. W0. M05

T0100

M01

(TOOL - 11 OFFSET - 12)

(OD FINISH RIGHT - 35 DEG. INSERT - VNMG-431)

( FC FNS2 )

G28 U0. W0.

G50 X10. Z10.

G0 T1112

G50 S1500

G96 S400 M03

G41 G0 X12.2 Z0. M8

G70 P1 Q2 --- this is from the first op

M9

G28 U0. W0. M05

T1100

M01

(TOOL - 5 OFFSET - 5)

(ID ROUGH MIN. .375 DIA. - 75 DEG. INSERT - NONE)

( ID RGH )

G28 U0. W0.

G50 X10. Z10.

G0 T0505

G50 S700

G96 S400 M03

G0 X.303 Z.15 M8

G42 X.403 Z.1

G72 W.035 R.015

G72 P5 Q6 U-.02 W.01 F.02

N5 G0 G42 Z-.188 S400

G1 X8. F.008

N6 G40 Z.1

G0 X.403

M9

G28 U0. W0. M05

T0500

M01

(TOOL - 7 OFFSET - 7)

(ID FINISH MIN. .5 DIA. - 55 DEG. INSERT - NONE)

( ID FNS )

G28 U0. W0.

G50 X10. Z10.

G0 T0707

G50 S1500

G96 S400 M03

G42 G0 X.403 Z.03 M8

G70 P1 Q2 --- this if from the fisrt op

M9

G28 U0. W0. M05

T0700

M30

%

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