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:

spindle startup in wrong place


Recommended Posts

I am running a mori seiki sl403 lathe with mastercam x5 lathe 1. Right now I have to move the g97 s600 m13 line above the first rapid move everytime it posts or I get alarms at the machine. I would like to change that. Here is an example of how it is now and Where I would like to be.

 

now

(TOOL - 7 OFFSET - 7)

( 1/2" X 90 DEG SPOTDRILL)

P3000

(SPOT 3/8"-16)

G54

N1 T0707

G98

M45

M69

G0 C-90.

-G0 X2.25 Z.1 M8-

-G97 S600 M13-

G83 Z-.215 R0. F2. M68

C-270.

G80

Z4.

Z.1

M9

M69

G28 U0. W0. C-0. M05

M01

 

after

(TOOL - 7 OFFSET - 7)

( 1/2" X 90 DEG SPOTDRILL)

P3000

(SPOT 3/8"-16)

G54

N1 T0707

G98

M45

M69

G0 C-90.

-G97 S600 M13-

-G0 X2.25 Z.1 M8-

G83 Z-.215 R0. F2. M68

C-270.

G80

Z4.

Z.1

M9

M69

G28 U0. W0. C-0. M05

M01

 

Where would I look to change this? Also with this same post my rapid moves are feed moves of 500. I would like to see them come out as rapid moves. Is this something in the post or machine def?

Link to comment
Share on other sites

You are looking for this section of code in ltlchg$ (and possibly lsof$ if you are using an mplfan based post):

     if css_actv$,
       [
       if css_start_rpm,
         prpm # Direct RPM startup for programmed CSS
       else,
         pcssg50, pcss # NO RPM start - just output the CSS
       ]
     else, # Direct RPM was programmed
       [
       prpm # Output programmed RPM
       ]

 

This code will output the rpm value if the tool path is programmed in rpm, or the starting rpm value if programmed in css.

 

You will need to move this section of code above a line that will look something like this:

 

     pcan1, pbld, n$, psccomp, *sgcode, pwcs, pfxout, pyout, pfzout,
       pscool, strcantext, e$

 

The above line is the output for the coordinates and the rapid move. The line in your post may look a little different than this, but should contain the coordinate outputs (pxout, pyout, pzout, pfxout, pfyout, or pfzout) and the gcode call (sgcode)

 

HTH

Link to comment
Share on other sites

it looks like that has already been done. this is what I have:

 

ltlchg$ #Toolchange, lathe

toolchng = one

gcode$ = zero

copy_x = vequ(x$)

pcc_capture #Capture LCC ends, stop output RLCC

c_rcc_setup$ #Save original in sav_xa and shift copy_x for LCC comp.

pcom_moveb #Get machine position, set inc. from c1_xh

c_mmlt$ #Position multi-tool sub, sets inc. current if G54...

ptoolcomment

comment$

if home_type < two, #Toolchange G50/home/reference position

[

sav_xh = vequ(copy_x)

sav_absinc = absinc$

absinc$ = zero

start_xh = vequ(xh$)

pmap_home #Get home position, xabs

ps_inc_calc #Set start position, not incremental

#Toolchange home position

if home_type = one,

pbld, n$, *sgcode, pwcs, pfxout, pfyout, pfzout, e$

else,

[

#Toolchange g50 position

pbld, n$, *sg28ref, "U0.", [if y_axis_mch, "V0."], "W0.", e$

if home_type = zero, pbld, n$, *sg50, pfxout, pfyout, pfzout, e$

]

pe_inc_calc #Update previous

absinc$ = sav_absinc

copy_x = vequ(sav_xh)

]

else,

[

pbld, n$, pwcs, e$

]

toolno = t$ * 100 + tloffno$

if not(synch_flg & tool_op$ = 67), #Suppress tool output if cutoff during part xfer

[

if omitseq$ = 1 & tseqno > 0,

[

if tseqno = 2, n$ = t$

pbld, *n$, [if home_type = -1, *sgcode], *toolno, e$

]

else, pbld, n$, [if home_type = -1, *sgcode], *toolno, e$

]

ipr_actv$ = c1_ipr_actv

pbld, n$, pfsgplane, pfsgfeed, e$

pcaxis_off_l #Postblock for lathe transition

pcom_moveb #Reset machine position, set inc. from last position

pcan

pspindle

#Added for 'css_start_rpm' logic (09/05/01)

if css_actv$,

[

if css_start_rpm,

prpm # Direct RPM startup for programmed CSS

else,

pcssg50, pcss # NO RPM start - just output the CSS

]

else, # Direct RPM was programmed

[

prpm # Output programmed RPM

]

sav_absinc = absinc$

if home_type > one, absinc$ = zero

pcan1, pbld, n$, *sgcode, pfxout, pyout, pfzout, pscool, strcantext, e$

if lcc_cc_pos, plcc_cc_pos #Use sav_xa to position with comp. LCC

pcom_movea #Update previous, pcan2

ps_inc_calc #Reset current

absinc$ = sav_absinc

#Added for 'css_start_rpm' logic (09/05/01)

if css_start_rpm,

pcssg50, pcss # CSS output AFTER a G97S???? RPM spindle startup

c_msng$ #Position single-tool sub, sets inc. current if G54...

toolchng = zero

plast

Link to comment
Share on other sites

Sorry, I missed that this is actually a milling operation. The change needs to be in the mtlchg$ post block, not the ltlchg$. pspindle and prpm need to be moved above the coordinate output as shown below:

 

     ....
     pcaxis_on_m   #Postblock for mill transition
     pcan
     sav_absinc = absinc$
     if home_type > one, absinc$ = zero
     pbld, n$, pclampoff, e$        # Unclamp
     protretinc                        #Zero out the C-axis then redo the coordinate calculation
     pcom_moveb
     if millcc, pbld, n$, *sgcode, "C0.", [if y_axis_mch, "Y0."], e$
     else,
       [
       prv_gcode$ = c9k                  #change modality for forced output
       pbld, n$, `sgcode, pfcout, e$     #` used in case indexing mode
       ]
     pindex
     pbld, n$, pclampbrake, e$  # Clamp      
     pspindle
     prpm
     pcan1, pbld, n$, *sgcode, pfxout, pyout, pfzout, strcantext, e$
     pbld, n$, pscool, e$
     pcom_movea    #Update previous, pcan2
     ....

Link to comment
Share on other sites

In the control definition, if you go to the feed page, there's a check box for convert rapid to maximum feed. If the box is checked, uncheck it and that should fix it up for you. Make sure you check both the mill and lathe feed pages for this.

 

To get in go through settings, machine definition manager, then select the control definition. This will ensure that the changes stick.

 

If this is not checked, let me know and we can walk through other options.

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