Sign in to follow this  
DavidB

Generic Fanuc Lathe C-Y post help

Recommended Posts

I'm doing a Rotary toolpath in MC6 and the posted code has the Z axis reversed.

So instead of starting at the front of the job and going towards the chuck, it strats at the front of the job and moves away from the chuck.

 

What do I need to change in the post?

  • Like 2

Share this post


Link to post
Share on other sites

The C axis is rotating the wrong way also. So its up milling instead of climb milling.

 

Post is Generic Fanuc 4X MT_Lathe

  • Like 1

Share this post


Link to post
Share on other sites

What Planes are you working with? I know with my 4 axis horizontal I need to create new back and bottom planes rotated from the top plane otherwise It will output my X movements as positive not negative.

Share this post


Link to post
Share on other sites

I'm using a Lathe so I'm using Top plane, correct?

 

Greg I changed the CW,CCW direction for the C-axis in the machine def but it made no differerance to the posted code?

Share this post


Link to post
Share on other sites

Using back plane now thanks.

The Z axis values in the posted code are all inversed. The backplot starts at Z3. in front of the job and the posted code starts at Z-3 in the job.

Share this post


Link to post
Share on other sites

With the rotary tool path how do I make the tool start at the front of the job (Z0) and move towards the chuck. It keeps starting at the chuck end and going away from the chuck

Share this post


Link to post
Share on other sites

Im using back plane and the toolpath keeps starting at the chuck end.How do I make it start at the front of the job Z0?

Share this post


Link to post
Share on other sites

I've been playing with this all day and I can't get the rotary toolpath to work using back plane for Lathe. It always starts at the chuck endand does some really weird Y-axis moves.

 

It works better with TOP planein backplot it always starts at the front of the job BUT the Z-axis posted code is inverse.The other posted values (x,c and y) seem correct.

 

What do I need to do?

Share this post


Link to post
Share on other sites

This fixed it, and use top plane for rotary toolpath

 

scase_tl_c5 : "10000222.001000000" #Top turret/Left spindle, Multisurf Rotary

Share this post


Link to post
Share on other sites

I still can not get the spindle to turn in the opposite direction so the tool climb mills.

Changing the C-axis machine def from CW to CCW makes no differance to the posted code.

 

Please help!

Share this post


Link to post
Share on other sites

Hi Dave,

Geez, you really need to work on upping the user base down under!

 

The last line here is where I would have tried to change the sign of Z...

# Machine Specific Settings
# --------------------------------------------------------------------------
#Machine axis switches, initial
y_axis_mch : no$ #SET_BY_MD - Machine has a Y axis, 0=no, 1=yes - Set based on Axis Combination in MD
old_new_sw : 1	 #Switch old (6T), new (0T+) cycle formats, 0=old, 1=new
wcs_origin : 0	 #Always use the WCS origin for coordinates
dia_mult	 : 2	 #Multiplier for output on X axis (Neg. switches sign of X)
y_mult	 : 1	 #Multiplier for output on Y axis (Neg. switches sign of Y)
z_mult	 : 1	 #Multiplier for output on Z axis (Neg. switches sign of Z)

z_mult : -1

 

 

But IIRC, this is where you "should" be making the changes....

 

 

# --------------------------------------------------------------------------
#Machining position turret/spindle settings
# Switch strings based on turret position top/bottom-left/right and cut type.
# Turret position is based on the Mastercam settings (see lathtype).
# Strings are re-assigned for output in the routine psw_str_mult.
# The string variable sw_string holds the place position value to determine
# how to assign the strings. Planes are relative to the view from Mastercam.
# Assign the 17 digit string following the alpha columns below:
# A - C axis, 1 = axis winds, 2 = axis signed, 3 = indexer, 4 = shortest direction
# B - Spindle direction, 0 = normal, 1 = reverse
# C - Plane 0 arc/comp, 0 = normal, 1 = switch
# D - Plane 1 arc/comp, 0 = normal, 1 = switch
# E - Plane 2 arc/comp, 0 = normal, 1 = switch
# F - Plane 0, 0 = G17, 1 = G19, 2 = G18
# G - Plane 1, 0 = G17, 1 = G19, 2 = G18
# H - Plane 2, 0 = G17, 1 = G19, 2 = G18
# Decimal (required)
# I - Plane 0, X axis, 0 = normal, 1 = switch sign from basic
# J - Plane 0, Y axis, 0 = normal, 1 = switch sign from basic
# K - Plane 0, Z axis, 0 = normal, 1 = switch sign from basic
# L - Plane 1, X axis, 0 = normal, 1 = switch sign from basic
# M - Plane 1, Y axis, 0 = normal, 1 = switch sign from basic
# N - Plane 1, Z axis, 0 = normal, 1 = switch sign from basic
# O - Plane 2, X axis, 0 = normal, 1 = switch sign from basic
# P - Plane 2, Y axis, 0 = normal, 1 = switch sign from basic
# Q - Plane 2, Z axis, 0 = normal, 1 = switch sign from basic
use_only_tl : 1 #Use only Top turret/Left spindle settings (below) for
#all Mastercam turret/spindle selections
#When configuring for multi-spindle/turret set to 0

#Columns- ABCDEFGH.IJKLMNOPQ #Turret/Spindle #Path Type
scase_tl_c1 : "10000222.000000000" #Top turret/Left spindle, Turning cut
scase_tl_c2 : "11000012.000000000" #Top turret/Left spindle, Right Face cut
scase_tl_c_2 : "11110012.000000000" #Top turret/Left spindle, Left Face cut
scase_tl_c3 : "10010102.000000000" #Top turret/Left spindle, Cross cut
scase_tl_c4c : "10000111.000000000" #Top turret/Left spindle, Y axis subs. Cycle
scase_tl_c4 : "10000222.000000000" #Top turret/Left spindle, Y axis subs.
scase_tl_c5 : "10000222.000000000" #Top turret/Left spindle, Multisurf Rotary

#Columns- ABCDEFGH.IJKLMNOPQ
scase_bl_c1 : "10000222.000000000" #Bottom turret/Left spindle, Turning cut
scase_bl_c2 : "11000012.000000000" #Bottom turret/Left spindle, Right Face cut
scase_bl_c_2 : "11110012.000000000" #Bottom turret/Left spindle, Left Face cut
scase_bl_c3 : "10010102.000000000" #Bottom turret/Left spindle, Cross cut
scase_bl_c4c : "10000111.000000000" #Bottom turret/Left spindle, Y axis subs. Cycle
scase_bl_c4 : "10000222.000000000" #Bottom turret/Left spindle, Y axis subs.
scase_bl_c5 : "10000222.000000000" #Bottom turret/Left spindle, Multisurf Rotary

#Columns- ABCDEFGH.IJKLMNOPQ
scase_tr_c1 : "10000222.000000000" #Top turret/Right spindle, Turning cut
scase_tr_c2 : "11000012.000000000" #Top turret/Right spindle, Right Face cut
scase_tr_c_2 : "11110012.000000000" #Top turret/Right spindle, Left Face cut
scase_tr_c3 : "10010102.000000000" #Top turret/Right spindle, Cross cut
scase_tr_c4c : "10000111.000000000" #Top turret/Right spindle, Y axis subs. Cycle
scase_tr_c4 : "10000222.000000000" #Top turret/Right spindle, Y axis subs.
scase_tr_c5 : "10000222.000000000" #Top turret/Right spindle, Multisurf Rotary

#Columns- ABCDEFGH.IJKLMNOPQ
scase_br_c1 : "10000222.000000000" #Bottom turret/Right spindle, Turning cut
scase_br_c2 : "11000012.000000000" #Bottom turret/Right spindle, Right Face cut
scase_br_c_2 : "11110012.000000000" #Bottom turret/Right spindle, Right Face cut
scase_br_c3 : "10010102.000000000" #Bottom turret/Right spindle, Cross cut
scase_br_c4c : "10000111.000000000" #Bottom turret/Right spindle, Y axis subs. Cycle
scase_br_c4 : "10000222.000000000" #Bottom turret/Right spindle, Y axis subs.
scase_br_c5 : "10000222.000000000" #Bottom turret/Right spindle, Multisurf Rotary

 

But you said you got it, so... if it aint broke... dont fix it!

 

 

I also came across this... maybe try switching it to a -1

 

#C rotation vector
caxisx : 0
caxisy : 0
caxisz : 1

 

Then there is this... it talks about "pset_mach".... and it "says" it should be set by the MD.....

#SET BY MD - Variables to capture parameter values - use to set post switches in pset_mach
rot_axis : 0 #Axis of rotation - 1=X, 2=Y, 3=Z
rot_type : 1 #Rotary type - 0=signed continuous, 1=signed absolute, 2=shortest direction
rot_dir : 0 #Rotary direction - CW is positive, 0 = false, 1 = true

 

Good luck mate!

Share this post


Link to post
Share on other sites

Try changing the Axis supports continuous positioning, set it to shortest direction.

Share this post


Link to post
Share on other sites

David did you get this working correctly? I am thinking you are fighting a C-Axis problem I ran into. Let me know where you stand and let me see if I can be of assistance.

Share this post


Link to post
Share on other sites

Its ok Ron, I got him sorted on the axis issue :)

 

Someone suggested changing the Z multiplier. That wouldn't help, as I believe that would change all the z outputs, including turning which wouldn't be very useful. :)

Share this post


Link to post
Share on other sites

Guys,

 

Posting the fix here may help someone in the future

 

The fix IS posted. Post #11

Share this post


Link to post
Share on other sites

Nothing to hide here Greg. We're all for getting out in the open to help others if it can :)

 

Its bit of a pesky file though, thats for sure :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • 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