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:

akira seiki


Recommended Posts

hi

my comapny just bought Akira Seiki ,

and there's a litle different on the tapping format :

Ex: ( 6-32 TAP )

G84 X0. Y0. Z-.7 R.1 E32. S320 ,R1

E = NUMBER OF THREADS,

my problem is, with the same Inch System, and i have to use both inch tap and metric tool tap,

then E value comes out with PITCH ...

Ex: ( M5 X .8 )

G84 X0. Y0. Z-.7 R.1 E.8 S320 ,R1

should be posted like this:

G84 X0. Y0. Z-.7 R.1 E31.75 S320 ,R1

 

Also, how to turn off the speed and spindle on the first line?

Ex:

 

G0 G90 G54 X0. Y0. ( S320 M3 ) <-------

G43 H19 Z.1 M8

G84 X0. Y0. Z-.7 R.1 E32. S320 ,R1

G80

M5

G91 G28 Z0. M9

G30 X0. Y0. Z0.

.........

 

 

any one can give me the hint to change my post around...

Thanks alot!

 

 

Mastercam X5 Mu1

mpmaster.pst ver 14.

Link to comment
Share on other sites

Don't want to step on any toes, but I'd like to give this a whack...

Not sure what the ",R1" is for but I hardcoded it. I assume you don't need all of this, but I did to get that metric thing to work so here ya go.

Also hope you don't peck with your taps, use left had taps, or rigid tap... if you do more mods will be needed.

First I defined the variables...

fmt  E  2   lanvutap   # 		tap info
fmt 	4   lanvumetric #   	tool uses metric values?
fmt 	4   lanvucyc	# drill cycle number

Then got their values...

      	if prmcode$ = 20004, lanvutap = rparsngl(sparameter$, 7)
     	if prmcode$ = 20007, lanvumetric = rparsngl(sparameter$, 11)
     	if prmcode$ = 10100, lanvucyc = rpar(sparameter$,1)

Here is the commenting out of the spindle stuff...

pfspindleout 	#Spindle speed and M code output forced  
 	if lanvucyc = 3 & tool_op$ = 2,
   	[ 
   	if not((opcode$ = 3 | opcode$ = 16) & nextdc$ = 3 & rigid_tap), "(", *speed, *spindle, ")",
   	]
 	else,
   	[
   	if not((opcode$ = 3 | opcode$ = 16) & nextdc$ = 3 & rigid_tap), *speed, *spindle
   	]

And here is the new ptap postblock that will do the metric thing and change the output to what you showed it should look like...

ptap$        	#Canned Tap Cycle
 	pdrlcommonb
 	if lanvumetric = 1, lanvutap = 1 / (lanvutap / 25.4)


 	#RH/LH based on spindle direction
 	if rigid_tap, pbld, n$, *sm29, *speed, e$   		#Rigid Tapping
 	if use_pitch = 0,
   	[
   	pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
     	#prdrlout, [if peck1$, *peck1$], *feed, strcantext, e$
     	prdrlout, [if peck1$, *peck1$], *lanvutap, *speed, " ,", "R1", strcantext, e$
   	]
 	else,
   	[
   	if metvals, pitch = n_tap_thds$  # Tap pitch (mm  per thread)
   	else, pitch = 1/n_tap_thds$   	# Tap pitch (inches per thread)
   	pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
     	prdrlout, [if peck1$, *peck1$], *pitch, !feed, strcantext, e$
   	]
 	pcom_movea

 

Here is what I am getting, tool 203 is a 3/8-16 tap and tool 523 is a M5 X .8 tap...

( CONFIRM T203 H203 D203 DIA = 0.3750 )
N140 M11 (UNLOCK C)
N150 M11 (UNLOCK 
N160 G00 G17 G90 G54 C0. B0. X0. Y0. ( S713 M03 )
N170 M10 (LOCK C)
N180 M10 (LOCK 
N190 G43 H203 Z.1
N200 G94
N210 G99 G84 X0. Y0. Z-1. R.1 E16. S713  , R1
N220 G80
N230 M05
N240 G91 G28 Z0.
N250 M00
N260 ( LOAD T523 )
N270 M00
( CONFIRM T523 H523 D523 DIA = 5.0000 )
N280 M11 (UNLOCK C)
N290 M11 (UNLOCK 
N300 G00 G17 G90 G54 C0. B0. X0. Y0. ( S1145 M03 )
N310 M10 (LOCK C)
N320 M10 (LOCK 
N330 G43 H523 Z.1
N340 G94
N350 G99 G84 X0. Y0. Z-1. R.1 E31.75 S1145  , R1
N360 G80

 

 

I can't get the indentation to show correctly, if you need I can do screenshots.

HTH

Link to comment
Share on other sites

Thank you very much, Keith,

i will try to do it now,

but on the firts line of the tap block, the speed and the spindle should not be there:

 

N150 M11 (UNLOCK B )

N160 G00 G17 G90 G54 C0. B0. X0. Y0.

N170 M10 (LOCK C )

N180 M10 (LOCK B )

N190 G43 H203 Z.1

N200 G94

N210 G99 G84 X0. Y0. Z-1. R.1 E16. S713 , R1

N220 G80

N230 M05

N240 G91 G28 Z0.

N250 M00

N260 ( LOAD T523 )

N270 M00

( CONFIRM T523 H523 D523 DIA = 5.0000 )

N280 M11 (UNLOCK C )

N290 M11 (UNLOCK B )

N300 G00 G17 G90 G54 C0. B0. X0. Y0.

N310 M10 (LOCK C )

N320 M10 (LOCK B )

N330 G43 H523 Z.1

N340 G94

N350 G99 G84 X0. Y0. Z-1. R.1 E31.75 S1145 , R1

N360 G80

i will try to fix it, but i don't think i can :(:-( , can you please help me to fix it, Keith ?..

Thanks again

Have a nice day!!

Link to comment
Share on other sites

Ok, in your first post you had it in parenthesis, I thought you wanted it like that.

 

Easy fix

just delete >>>"(", *speed, *spindle, ")",<<<<<<

pfspindleout 	#Spindle speed and M code output forced  
 	if lanvucyc = 3 & tool_op$ = 2,
   	[ 
   	if not((opcode$ = 3 | opcode$ = 16) & nextdc$ = 3 & rigid_tap), "(", *speed, *spindle, ")",   <<<<<<<<<<here, get rid of it.
   	]
 	else,
   	[
   	if not((opcode$ = 3 | opcode$ = 16) & nextdc$ = 3 & rigid_tap), *speed, *spindle
   	]

 

Should look like this

pfspindleout 	#Spindle speed and M code output forced  
 	if lanvucyc = 3 & tool_op$ = 2,
   	[ 
   	if not((opcode$ = 3 | opcode$ = 16) & nextdc$ = 3 & rigid_tap),
   	]
 	else,
   	[
   	if not((opcode$ = 3 | opcode$ = 16) & nextdc$ = 3 & rigid_tap), *speed, *spindle
   	]

Link to comment
Share on other sites

Hi Keith,

i am very close with it, but, it posts at the wrong block ???

 

( T1 | H1 | NO. 12-28 TAPRH )

G0 G90 G54 X-.5774 Y1. A90. S336 M3

G43 H1 Z.1

G99 G84 Z0. R.1 E63.5 S336 ,R1 <-------E28 should be here!!!

Y-1.

X.5774

Y1.

G80

M5

G91 G28 Z0.

G30 X0. Y0. Z0.

M01

( T2 | H2 | 2.00-0.4 TAP LH )

M6

G0 G90 G54 X-1.1547 Y0. A90. S634 M3

G43 H2 Z.1

G99 G84 Z0. R.1 E.4 S634 ,R1 <-------E63.5 should be here

X1.1547

G80

please help, i sent a PM to you

Link to comment
Share on other sites

got em, your post is a generic 4 ax post directly from CNC, not a mpmaster..

check your post against my above screenshots, my earlier posts did not show the indentation of the code correctly, you need to fix that first... i will look into it but if you get the indentation correct you should be closer...

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