Turning Reverse G2 and G3

Turning Reverse G2 and G3

timdrink01
Enthusiast Enthusiast
2,594 Views
11 Replies
Message 1 of 12

Turning Reverse G2 and G3

timdrink01
Enthusiast
Enthusiast

I have a lathe that is reversed from most.  Standard spindle direction is M4.  Also it has G2 and G3 reversed, at least from one other lathe. 

 

The code looks good other than G2/G3.  Using the generic Fanuc turning post.  I can't seem to where I can change them.  Any suggestions?

0 Likes
Accepted solutions (1)
2,595 Views
11 Replies
Replies (11)
Message 2 of 12

Steinwerks
Mentor
Mentor
Are you sure this isn't just the way that the tool is oriented in the turret? M4 is CCW from the point of view of the headstock down the workpiece towards the tailstock. M3 is clockwise.
Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
Message 3 of 12

timdrink01
Enthusiast
Enthusiast
Thanks for the reply.

On this machine, Wasino LJ-106m, M4 is CW looking towards the tailstock. Verified in the OEM manual and other forums.
0 Likes
Message 4 of 12

LibertyMachine
Mentor
Mentor

And if you mount the tool upside down in the turret, it is on centerline properly?


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 5 of 12

timdrink01
Enthusiast
Enthusiast
Yes. I've been running parts on this machine for several years. I've already manually programmed and proven the finish profile I'm trying to get Fusion to generate.
0 Likes
Message 6 of 12

Steinwerks
Mentor
Mentor

Very odd indeed. I would think that the M-code change wouldn't be too difficult but the arc reversal may be trickier. Are you starting with the generic Fanuc post processor?

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
0 Likes
Message 7 of 12

timdrink01
Enthusiast
Enthusiast

Thanks for the thoughts and questions thus far!  Yes, using the generic Fanuc turning post. In the mean time I've been using find and replace to make the swap. 

 

Another issue I'm having I need the arcs to be less than 90 deg.  Any suggestions on where to change that? 

0 Likes
Message 8 of 12

HughesTooling
Consultant
Consultant

@timdrink01 wrote:

 

Another issue I'm having I need the arcs to be less than 90 deg.  Any suggestions on where to change that? 


If you edit the post change this line to 90.

Capture4.PNG

 

To reverse G02\03 look for all the lines like below and swap all the 2s and 3s so it reads gMotionModal.format(clockwise ? 3 : 2)

.

      writeBlock(conditional(properties.type != "A", gAbsIncModal.format(90)), gPlaneModal.format(17), gMotionModal.format(clockwise ? 2 : 3), iOutput.format(cx - start.x, 0), jOutput.format(cy - start.y, 0), getFeed(feed));

Are you using a PC or mac. After editing the post don't save back to the generic post folder, see standard warning below.

 

Mark

Do not put custom posts in the generic posts folder. Use the personal folder. or another location.

Fusion 360 CAM Personal Posts Folder Locations

_______________________________________________________________________________

Microsoft Windows:
%appdata%\Autodesk\Fusion 360 CAM\Posts

Mac / Apple / OSX:
/Users/<user id>/Autodesk/Fusion 360 CAM/Posts

 

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Message 9 of 12

HughesTooling
Consultant
Consultant

@timdrink01 I've come up with an easier way of swapping the G2s and G3s. Add this line at the beginning of the onCircular function.

 

  clockwise = clockwise ? false : true;

Like this.

tool2.png

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 10 of 12

HughesTooling
Consultant
Consultant
Accepted solution

I just realized the line of code above only reverses G3s, G2s would stay G2.

 

This will work.

  if(clockwise){
	  clockwise = false;
  }else{
	  clockwise = true;
  }

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Message 11 of 12

Anonymous
Not applicable

I had to reverse the arcs on my lathe also.  I just replaced each test of clockwise with a !clockwise so you end up with this:

 

writeBlock(conditional(properties.type != "A", gAbsIncModal.format(90)), gPlaneModal.format(17), gMotionModal.format(!clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), iOutput.format(cx - start.x, 0), jOutput.format(cy - start.y, 0), getFeed(feed));

Though I suppose Mark's way is even easier.  But could be reduced to just:

 

clockwise = !clockwise

Dave

0 Likes
Message 12 of 12

timdrink01
Enthusiast
Enthusiast

Well this is embarrassing. The fabulous group on the gave me a couple of different options to make it work.  Long story short.  This machine does NOT have the G2/G3 reversed, only M3/M4 is reversed.  I was working with the machinist on the floor and well, we just miscommunicated...

 

It wasn't a total loose though.  Going through the code changes has started to give me a much better insight to the post programing language. Thank you again for every ones input. 

0 Likes