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:

Generic Fanuc Lathe C-Y post help


DavidB
 Share

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
Link to comment
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?

Link to comment
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!

Link to comment
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. :)

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