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:

Transform C-axis Contour Toolpaths


Recommended Posts

Below is an example of proper code for transforming a C-axis Contour toolpath. (no Y-axis).

The text in blue is what I had to add.

 

I have tried this with MPLFAN, & MPLMASTER, and i get the same results.

The posts I have tested are for Fanuc and Okuma Controls.

When I try to do this same thing using Y-axis, the output is perfect.

 

(*****************************)

N1(INTERPOLATE HOLES)

M67

G28 U0. W0. H0.

T0303(.75 SOLID CARBIDE EMILL W/.032 RAD.)

M93 (CHIP CONVEYOR ON)

G54 G98 M68

G0 C0.

G0 Z2.

X7.

G97 S2500 M24

G12.1

G1 X7. C0. F500.

Z.25

Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

(INTERPOLATE HOLES)

G13.1

G0 C90. X7.0

Z.25

G12.1

G1 Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

(INTERPOLATE HOLES)

G13.1

G0 C180. X7.0

Z.25

G12.1

G1 Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

(INTERPOLATE HOLES)

G13.1

G0 C270. X7.0

Z.25

G12.1

G1 Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

G13.1

G28 U0. M05 M25

G28 W0. M95 (CHIP CONVEYOR OFF)

M66

M30

%

 

Below is what my post actually outputs. (no Y-axis).

The text in red is where the post seems to reset C-axis to zero each time.(from what i gather in the debugger).

 

(*****************************)

N1(INTERPOLATE HOLES)

M67

G28 U0. W0. H0.

T0303(.75 SOLID CARBIDE EMILL W/.032 RAD.)

M93 (CHIP CONVEYOR ON)

G54 G98 M68

G0 C0.

G0 Z2.

X7.

G97 S2500 M24

G12.1

G1 X7. C0. F500.

Z.25

Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

(INTERPOLATE HOLES)

F500.

F500.

Z.25

Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

(INTERPOLATE HOLES)

F500.

F500.

Z.25

Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

(INTERPOLATE HOLES)

F500.

F500.

Z.25

Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

Z2. F500.

G13.1

G28 U0. M05 M25

G28 W0. M95 (CHIP CONVEYOR OFF)

M66

M30

%

 

If i were to chain all 4 holes and not use Transform, the code would be correct like below.

The problem is, I want my operator to be able to read the code, & this is much easier if the C-axis is rotated between each location and basically the same program is run again.

Also this is just an extrememly simple example to be able to read the code easier.

 

(*****************************)

N1(INTERPOLATE HOLES)

M67

G28 U0. W0. H0.

T0303(.75 SOLID CARBIDE EMILL W/.032 RAD.)

M93 (CHIP CONVEYOR ON)

G54 G98 M68

G0 C0.

G0 Z2.

X7.

G97 S2500 M24

G12.1

G1 X7. C0. F500.

Z.25

Z0. F100.

X7.375 F40.

X7.75

G3 X6.25 Z-.05 R.375

X7.75 Z-.1 R.375

X6.25 Z-.15 R.375

X7.75 Z-.2 R.375

X6.25 Z-.25 R.375

X7.75 Z-.3 R.375

X6.25 Z-.35 R.375

X7.75 Z-.4 R.375

X6.25 Z-.45 R.375

X7.75 Z-.5 R.375

X6.25 Z-.55 R.375

X7.75 Z-.6 R.375

X6.25 Z-.65 R.375

X7.75 Z-.7 R.375

X6.25 Z-.75 R.375

X7.75 Z-.8 R.375

X6.25 Z-.85 R.375

X7.75 Z-.9 R.375

X6.25 Z-.95 R.375

X7.75 Z-1. R.375

X6.25 R.375 F4.

X7.75 R.375

G1 X7.

Z.25 F500.

X0. C3.5 F500.

Z0. F100.

X.375 F40.

X.75

G3 X-.75 Z-.05 R.375

X.75 Z-.1 R.375

X-.75 Z-.15 R.375

X.75 Z-.2 R.375

X-.75 Z-.25 R.375

X.75 Z-.3 R.375

X-.75 Z-.35 R.375

X.75 Z-.4 R.375

X-.75 Z-.45 R.375

X.75 Z-.5 R.375

X-.75 Z-.55 R.375

X.75 Z-.6 R.375

X-.75 Z-.65 R.375

X.75 Z-.7 R.375

X-.75 Z-.75 R.375

X.75 Z-.8 R.375

X-.75 Z-.85 R.375

X.75 Z-.9 R.375

X-.75 Z-.95 R.375

X.75 Z-1. R.375

X-.75 R.375 F4.

X.75 R.375

G1 X0.

Z.25 F500.

X-7. C0. F500.

Z0. F100.

X-6.625 F40.

X-6.25

G3 X-7.75 Z-.05 R.375

X-6.25 Z-.1 R.375

X-7.75 Z-.15 R.375

X-6.25 Z-.2 R.375

X-7.75 Z-.25 R.375

X-6.25 Z-.3 R.375

X-7.75 Z-.35 R.375

X-6.25 Z-.4 R.375

X-7.75 Z-.45 R.375

X-6.25 Z-.5 R.375

X-7.75 Z-.55 R.375

X-6.25 Z-.6 R.375

X-7.75 Z-.65 R.375

X-6.25 Z-.7 R.375

X-7.75 Z-.75 R.375

X-6.25 Z-.8 R.375

X-7.75 Z-.85 R.375

X-6.25 Z-.9 R.375

X-7.75 Z-.95 R.375

X-6.25 Z-1. R.375

X-7.75 R.375 F4.

X-6.25 R.375

G1 X-7.

Z.25 F500.

X0. C-3.5 F500.

Z0. F100.

X.375 F40.

X.75

G3 X-.75 Z-.05 R.375

X.75 Z-.1 R.375

X-.75 Z-.15 R.375

X.75 Z-.2 R.375

X-.75 Z-.25 R.375

X.75 Z-.3 R.375

X-.75 Z-.35 R.375

X.75 Z-.4 R.375

X-.75 Z-.45 R.375

X.75 Z-.5 R.375

X-.75 Z-.55 R.375

X.75 Z-.6 R.375

X-.75 Z-.65 R.375

X.75 Z-.7 R.375

X-.75 Z-.75 R.375

X.75 Z-.8 R.375

X-.75 Z-.85 R.375

X.75 Z-.9 R.375

X-.75 Z-.95 R.375

X.75 Z-1. R.375

X-.75 R.375 F4.

X.75 R.375

G1 X0.

Z.25 F500.

Z2. F500.

G13.1

G28 U0. M05 M25

G28 W0. M95 (CHIP CONVEYOR OFF)

M66

M30

%

 

2 of my lathes here do not have Y-axis, and I do this type of operation almost daily.

 

I have searched through this forum and have not seen anyone make mention of this issue.

So I always thought that I was doing something wrong.

 

Anybody else come across this?

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