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:

4th axis


TheePres
 Share

Recommended Posts

Yes it does here is what my MPMASTER is set up like for our HAAS machines.

 

code:

# Typical Vertical

srotary "A" #Rotary axis prefix

vmc : 1 #0 = Horizontal Machine, 1 = Vertical Mill

rot_on_x : 1 #Default Rotary Axis Orientation, See ques. 164.

#0 = Off, 1 = About X, 2 = About Y, 3 = About Z

# Typical Horizontal

#srotary "B" #Rotary axis prefix

#vmc : 0 #0 = Horizontal Machine, 1 = Vertical Mill

#rot_on_x : 2 #Default Rotary Axis Orientation, See ques. 164.

# #0 = Off, 1 = About X, 2 = About Y, 3 = About Z

rot_ccw_pos : 0 #Axis signed dir, 0 = CW positive, 1 = CCW positive

ret_on_indx : 0 #Machine home retract on rotary index moves, (0 = no, 1 = yes)

index : 0 #Use index positioning, 0 = Full Rotary, 1 = Index only

ctable : 5 #Degrees for each index step with indexing spindle

one_rev : 1 #Limit rotary indexing between 0 and 360? (0 = No, 1 = Yes)

lock_codes : 0 #Use rotary axis unlock/lock M-Codes? (0 = No, 1 = Yes)

use_frinv : 1 #Use Inverse Time Feedrates in 4 Axis, (0 = no, 1 = yes)

rot_feed : 1 #Use calculated rotary feed values, (0 = no, 1 = yes)

maxfrdeg : 2000 #Limit for feed in deg/min

maxfrinv : 999.99#Limit for feed inverse time

frc_cinit : 1 #Force C axis reset at toolchange

ctol : 225 #Tolerance in deg. before rev flag changes

ixtol : .01 #Tolerance in deg. for index error

frdegstp : 10 #Step limit for rotary feed in deg/min

Then I use the G154 P for fixture offset and that si doen by changing the PWCS to this:

code:

pwcs            #G154+ coordinate setting at toolchange

if wcstype = two | wcstype > three,

[

sav_frc_wcs = force_wcs

if sub_level, force_wcs = zero

if sav_mi9 = 1, workofs = sav_workofs

if workofs < 0, workofs = 0

if workofs <> prv_workofs | (force_wcs & toolchng),

[

p_wcs = workofs

if p_wcs = 0, # This Will Output P1 is Work offset is 0

[

p_wcs = 1

]

"G154", *p_wcs

]

force_wcs = sav_frc_wcs

!workofs

]

Then I have also added this to my post Thanks to Rekd:

code:

pcorner_round	#corner rounding ()

if mi5 = 1 & mr5 > 0 & flg_mi5 = 0,

[

sav_mr5 = mr5,

pbld, n, "G187", *sav_mr5, e

flg_mi5 = 1

]

if mi5 = 1 & mr5 = 0,

[

"( WARNING!! CORNER ROUNDING CONTROL HAS )", e

"( BEEN ENABLED WITHOUT A VALUE SET! USE )", e

"( MISC VALUES-MISC REALS TO SET A VALUE )", e

"( CORNER ROUNDING CONTROL IS DISABLED )", e

]

if mi5 = 0 & flg_mi5 = 1,

[

n, "G187", e

flg_mi5 = 0

]

I also have manunally index:

code:

pindexman   #Manunal Indexing ()

if mi4 = 1,

[

sav_mr4 = mr4,

pbld, n, *sav_mr4, e

]

And then I have automatic program numbering if I dont have it done.

code:

pheader         #Call before start of file                         

if met_tool = one, #Metric constants and variable adjustments

[

ltol = ltol_m

vtol = vtol_m

maxfeedpm = maxfeedpm_m

]

result = nwadrs(srotary, cabs)

result = nwadrs(srotary, cinc)

result = nwadrs(srotary, indx_out)

 

"%", e

spaces=0

if progno = 0,

[

progno = 10000

]

if mi6 = 0,

[

None of mine helping you get your post the way you want but you know we dont give away fully tweaked posts. Have a good night and hope that help. All information is given to help not hinder and use it at your own caution.

Link to comment
Share on other sites

Gorn I like the MpMaster because it has alot more information to give to the operators than the others. I have also added other things to my post like a Mi6 control to strip all nc commnets out of the post for ethernet or right of the the hard drive running or programs on our HASS mills. I also thanks to Rekd have canned cycles in our post using the Drilling cycles. I think it really boils down to each person and what they like but I think that is a good post just some resaons why I like the MpMaster post and going from there.

 

HTH

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