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:

Lathe ? For CNC


Recommended Posts

Hi all

Why arn't any of the lathe X posts setup to use stock advance? At least some kind of generic start point in the post would help. Are all the misc ops that way also? I have a Daewoo lathe post from version 9 updated to X2 and am trying to add this in. Also mplmaster lathe post isn't setup either.

Thanks

Link to comment
Share on other sites

If you look in the NCI file for "900" you will

see the numbers that come from the settings

in job setup - then look in the post for"900"

and you will see the defintions for each of

the spindle moves - problem is as the post

comes standard it does nothing with those numbers

it just goes to the predefined block and outputs "stock transfer" - currently trying to

make this work on a Mazak myself - any hints

or help appreciated

Link to comment
Share on other sites

Don

Look in mplfan

code:

 

pstck_trans$ #NCI code = 900 available variables:

#stck_spindle, stck_init_z, stck_final_z,

#stck_chuk_st_z, stck_chuk_st_x,

#stck_chuk_end_z, stck_chuk_end_x,

#stck_chuk_st_dz, stck_chuk_st_dx,

#stck_chuk_end_dz, stck_chuk_end_dx

if toolchng <> two, ptoolend$

toolend_flg = zero #Do not execute ptoolend again after xfer

[

!spaces$

spaces$ = zero

pbld, n$, "M00",e$

if prv_spaces$ > 0, " ",e$

if stck_spindle$ = 0, "(Xfer Part from Left Spindle)", e$

if stck_spindle$ = 1, "(Xfer Part from Right Spindle)", e$

spaces$ = prv_spaces$

]


each different type of op has the different variables listed at the top of the post block.

 

What output are you lookin for?

Link to comment
Share on other sites

Don

The explainations are right above there:

code:

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

fmt Z 2 stck_init_z$ #Initial Z position of the stock (900-902,904,905)

fmt Z 2 stck_final_z$ #Final Z position of the stock (900-902,904,905)

fmt Z 2 stck_chuk_st_z$ #Initial Z axis Chuck Position (900-903)

fmt X 2 stck_chuk_st_x$ #Initial X axis Chuck Position (900-903)

fmt Z 2 stck_chuk_end_z$ #Final Z axis Chuck Position (900-903)

fmt X 2 stck_chuk_end_x$ #Final X axis Chuck Position (900-903)

fmt W 3 stck_chuk_st_dz$ #Destination chuck Z axis reference position before transfer (900)

fmt U 3 stck_chuk_st_dx$ #Destination chuck X axis reference position before transfer (900)

fmt W 3 stck_chuk_end_dz$ #Destination chuck Z axis reference position after transfer (900)

fmt U 3 stck_chuk_end_dx$ #Destination chuck X axis reference position after transfer (900)

fmt Z 2 stck_clear$ #Stock clearance value for stock pull operation (902)

fmt X 2 stck_tool_x$ #Tool X axis position for bar stop / puller (902)

fmt Z 2 stck_grip$ #Grip length value for stock pull operation(902)

 

fmt F 18 stck_adv_fr$ #Used with Lathe Stock Advance (Bar-Feed/Pull) function (NCI 902)

fmt F 18 stck_appr_fr$ #Used with Lathe Stock Advance (Bar-Feed/Pull) function (NCI 902)

 

#Flags

stck_op$ : 0 #Stock advance operation method (902)

#(0=Push stock,1=Push stock with Use Tool Stop option,2=Pull stock)

stck_spindle$ : 0 #Active spindle with stock to transfer (900-902)

#0=Left Spindle,1=Right Spindle

clmp_op$ : 0 #The selected Operation mode: 0=Clamp,1=Un-clamp,2=Re-position (903)

clmp_spindle$ : 0 #Active spindle for clamp/unclamp 0=Left Spindle,1=Right Spindle (903)

tlstck_on$ : 0 #Retract or engage the tailstock (0=Retract,1=Engage) (904)

 

toolend_flg : 1 #Flag to execute ptoolend sequence or not

 

 

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


Then the bar pull/stop:

code:

pstck_bar_fd$    #NCI code = 902 available variables:

#stck_spindle, stck_op, stck_clear,

#stck_grip, stck_init_z, stck_final_z,

#stck_chuk_st_z, stck_chuk_st_x,

#stck_chuk_end_z, stck_chuk_end_x,

#stck_adv_fr, stck_appr_fr

if stck_op$ <> 1, # if NOT using the 'Tool Stop option'

[

if toolchng <> two, ptoolend$

toolend_flg = zero #Do not execute ptoolend again after xfer

]

else,

toolend_flg = one #DO execute ptoolend after xfer

 

[

!spaces$

spaces$ = zero

pbld, n$, "M00",e$

if prv_spaces$ > 0, " ",e$

if stck_op$ = 0, "(Push stock -",e$

if stck_op$ = 1, "(Push stock with Use Tool Stop option -",e$

if stck_op$ = 2, "(Pull stock -",e$

if stck_spindle$ = 0, " from Left Spindle)", e$

if stck_spindle$ = 1, " from Right Spindle)", e$

spaces$ = prv_spaces$

]


What output do you need? Put up a sample or email me.

Link to comment
Share on other sites

Don, Good luck! Lathe support stinks in MC for Lathe. If you can't get it running from the above post shoot me an email and the way you want you code to look and I'll throw it together for ya! I've set up advance and transfer successfully a quite a few times now.

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