Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Post Processor problems with CNC 6040 5-axis mill

30 REPLIES 30
SOLVED
Reply
Message 1 of 31
rolds105
3341 Views, 30 Replies

Post Processor problems with CNC 6040 5-axis mill

I have a recently purchased 5-axis Chinese CNC 6040 mill.  I’ll comment on the quality of this mill and the support of the Chinese with another post.

 

I'm using a: "CNC Router Parts(Mach3Mill)/CNC6040" post processor with my Fusion360.  I’ve verified that the edits to enable the A and B axis are correct.

 

My problem is the tool keeps running into the mounting plate.  Notice the model is at the top of the stock cylinder so there should be no tool paths anywhere near the mounting plate. 

 

The WCS is at the rotation point of the A&B axis.  I've followed all the setup rules as I understand them and tried many variations, but the tool keeps running into the Mounting plate.

 

The first thing the G-code does is rotate the A-axis 90-degrees.  The absolute tool path ranges should then be Z-axis +- 2”, X and Y 0 to +2”.  The actual ranges are X-axis -2.5 to +2.6, Y-axis -3.4 to +2.1, Z-axis 0 to +2.1.

 

It’s like the tool path was calculated without taking into account the A-axis 90 degree rotation.  I’ve tried moving the WCS to the top of the stock, same result. I’ve tried pointing the Z-axis at the tool after the 90-degree rotation, same result.  I’ve tried re-orienting the tool orientation X and Y axis, same result.

 

This .f3z and the .tap file are attached along with a diagram of the CNC 6040 mill.

 

Any clues to what is wrong?

 

I can be directly contacted at: Rolds105@gmail.com

 

Rodger Olds

(928-925-0397)

Prescott Valley, Arizona

 

 

 

Right_hand_rule_reoriented-1024x927.jpg

Tags (1)
30 REPLIES 30
Message 2 of 31
engineguy
in reply to: rolds105

@rolds105 

 

Need to know which axis your A and B axis revolve around, is the A revolving around the X and the B revolving around the Z ???

 

Also you need to go back and sort out your Model, it is not the same height at all corners, consequently code I generate here has for example a B axis move at 0.098 degrees instead of 0.000 degrees, nothing seems to be aligned correctly.

When that is sorted out we can then look at your programming and your actual machine setup, I would have expected the Tool orientation to be in the Z and X axis.

Can you also upload a copy of the Post Processor that you are using.

Message 3 of 31
rolds105
in reply to: engineguy

Yes the A-axis rotates around the X-axis and the B-axis around the Z-axis.  The small uneveness (0.098 degrees) is not the problem.  The G-code shows the A-axis rotating +90 degrees around the X-axis CW as observed from the right side.  The Y-axis then moves to ~ +1.3 inches which puts the tool on the opposite side of the stock from where the model is located, closer to the mounting plate.  This is wrong.  The tool should go toward the model, not away from it.

 

The axis orientation of the mill is as shown in the attached diagram and is the industry standard.

Message 4 of 31
rolds105
in reply to: engineguy

The "CNC Router Parts(Mach3Mill)/CNC6040" post processor is in the Fusion 360 library.
Message 5 of 31
engineguy
in reply to: rolds105

@rolds105 

 

OK, two things need to be sorted, first the Post Processor in the Fusion Library has not been modified so no one can tell if it is correct, you need to upload a copy of the actual PP that you are using.

Second, the A axis should only be moving the 70.43 Degrees that is the angle of the face relative to your base plate so that the face being machined is presented to the spindle at 90 Degrees.

The B axis should be either 180 or 0 degrees depending on your setup for the top and + or - 60 degrees for the B axis for the two other sides.

 

Message 6 of 31
engineguy
in reply to: rolds105

@rolds105 

 

Example file attached, posts with cncrouterparts PP I have modified OK, if when the code is used at the machine and it is in the wrong place then most likely you have the machine setup wrong

Message 7 of 31
rolds105
in reply to: engineguy

Thanks, I appreciate your input. 

 

If you look at my tetrahedron model I've defined a sketch that enables me to use it as the machining boundry to mill the tetra from the side.  I know there are simpler ways to do this and you suggest one of them, but I chose this way because the other four platonic solids are best milled from the side.  So the 90 degree A-axis rotation is correct.

I'll find and try a downloaded PP if I can find it. 

 

The Chinese people who built the CNC 6040 have been very responsive to my requests/concerns.  However, their english is marginal at best, and their documentation frankely is bad.  They can't even tell me which direction the Axis should point for the Mach3 interface and Fusion360.  Since this is a Fusion360 forum I won't discuss the lousy quality of their product.

 

I've decided to go back to basics and model and mill test pieces.  i.e. Flat slab with holes at the cardinal points.  This will tell me if the X,Y, and Z axis directions are correct.  Next design a 3D test to verify the A, B axis are correct.  

 

I'll report the results later.

 

Thanks again.

 

Message 8 of 31
engineguy
in reply to: rolds105

@rolds105 

 

Well, good luck with the Chinese stuff.

 

The Post Processor needs to be a copy of the one you are using, I have already downloaded the PP you mentioned from the Post Processor library, modified it to output A and B axis as you described your A and B layout and the code appears to be correct but that`s as far as I can go without the PP that you are using.

Message 9 of 31
rolds105
in reply to: engineguy

 

Attached is a Fusion360/Mach3/G-code test to illustrate the problem I am talking about.  I tried a demo version of Mach4 and it exhibits the same problem.

Message 10 of 31
rolds105
in reply to: engineguy

Attached is a description of the problem I am talking about.

Message 11 of 31
engineguy
in reply to: rolds105

@rolds105 

 

To rotate around an A axis then your WCS should be in the center of the stock if you are doing all four sides, below is an image of a little test file I have for 4th (A axis) machining, it only does three sides but easily converted to do four, just add an operation to the 4th side 🙂

Test Block for A axis Movement.jpg

 

As you can clearly see the WCS is in the center and the whole thing rotates around that WCS, I have attached the file and I have tried generating G code using the "CNC Router Parts(Mach3Mill)" post Processor, it generates the code correctly so there is nothing wrong with the Post Processors, only the way you are setting things up.

In the code the A axis is correctly moving around the center producing the correct A90 B180 position for the first operation, then A45 B180 for the second operation, this is how this particular PP is configured. The B180 never changes throughout the program because there are no B axis moves programed but is a good example of A axis movement for you 🙂 🙂

Code example below

Test Block for A axis Movement-Code.jpg

 

If I use a Mach3 or Mach4 Post Processor then it also posts out with no errors 🙂

 

You should be able to run the Simulation and correctly generate the G code at your end, set your simulation to "Tool" in the Viewpoint options and you should see the stock move around to position for the operations just as it would do in your machine.

 

P.S. If you get an error about Tool Lengths then go to the area shown below and change the default "256" to the "1500" as in the image and it will then work OK, apologies, forgot to change the Tool information in the Tool Library in the program, Oops 🙂 🙂

Test Block for A axis Movement-PP-MOD.jpg

 

 

Message 12 of 31
rolds105
in reply to: engineguy

Good comments. 

 

However, the caveat is that the WCS point must be located on the machine A and B axis center of rotation.   On my 5-axis CNC 6040 the center of rotation for the A and B axis is 1.79" above the center of the B-table.  That point remains fixed in space no matter how the A and B axes rotate around it.  The A-axis rotates around the X-axis and the B-axis rotates around the Z-axis. That WCS is the origion point where the 3D tool path calculations are based on.   In Mach3 it is also the Work Coordinate Offset point.  That way the G-code tool paths and the milling machine coordinates are synched up with each other.

 

Message 13 of 31
engineguy
in reply to: rolds105

@rolds105 

 

Seems to work OK here, see image below and small screencast of simulation.  https://autode.sk/3oKwVvy

In each position the X/Y coordinate positions appear to be correct in the code for the hole positions. G Code file attached also.

5 Axis Cube test.jpg

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Message 14 of 31
rolds105
in reply to: engineguy

A dummy’s guide to locating the WCS for a CNC 6040 5-Axis Mill

 

The five axes CNC 6040’s

 in addition to the three X, Y, and Z planar axes, have two rotation axes A and B.  The A-Axis rotates around the X-axis and the B-Axis rotates around the Z-Axis.  In order for the Fusion360 CAM software post processor to correctly compute a 3D tool path, the Work Coordinate System (WCS) must be located at the center of the A and B axes rotation point.  The WCS point in the software and the WCS point of the physical machine must be the same point in 3D space.  So how do you sync up these two points?

 

Many of the beginner uTube videos for Fusion360 say that the WCS can be any arbitrary convenient point.  This is not true for 3D 5-Axes milling.  The WCS must be placed in the software CAM model where it will be at the machine WCS point when the stock is mounted in the machine.  The trick is to measure where the machine WCS point is in relation to where the model stock will be mounted and reflect that in the CAM software setup.  That will sync up the two WCS points in 3D space.

This is done by measuring the distance from the B-table, stock mounting point to the A-axis rotation point.  In the CNC 6040 the B-Axis rotation point is easily found to be the center of the rotating B-table.  The A-Axis rotation point is a little more difficult. 

 

With the B-table leveled at A-axis zero degrees, (I use a precision level device) determine the Z-axis/B-rotation axis up to where it intersects the X-Axis/A-rotation axis.  This is easier said than done.  Normally this type of operation is done with a probing operation.  The Mach3 software doesn’t provide a 3D probing function.  However, there is an add-on software tool that provides this functionality.   There is a blog post on the Fusion360 Autodesk forums called:

 

Fusion360 Post Processor for Mach3 with WCS Probing Support

 

That addresses this issue and provides post processor software tools.

 

In lieu of this software tool, here is the manual procedure to accomplish this.

To determine the distance from the B-table to the A rotation axis, rotate the A-Axis +90 degrees.  Mount an edge finder or probing tool with the diameter d in the spindle.  Using the jogging function locate the edge of the B-table and zero the Y DRO. (Data Readout)  Rotate the A-Axis 180 degrees to -90 degrees, locate the B-table edge, record the Y-coordinate call it Y.  The distance D from the B-table to the A rotation axis is: D = (|Y|+2d)/2.  |Y| means absolute value.  My CNC 6040 D = 1.791”

Each individual milling machine will have a unique D and it will not change from project to project.  D only needs to be determined once.

 

Mount the stock on the B-table where the software WCS is aligned centered on the B-table rotation Axis i.e. center of the B-table.

In the Fusion360 CAD setup, locate the WCS the distance D up from the bottom of the stock where it sits on the B-table.  This will place the software and hardware WCS’s at the same point in 3D space and the 3D G-code computations will be based on that point.

 

I constructed a measurement jig that screws into the B-table.  It provides a tool probing point that is a distance D up from the B-table.  At each tool change, probe the jig to determine what the new tool offset is.

 

I hope this is not too confusing.  Moving from 3 axis 2D milling to 5 axis 3D milling takes some getting used to.

 

 

Message 15 of 31
rolds105
in reply to: rolds105

Oops,  Slight correction with the calculation.  Probe tool diameter = d, D = (|Y|+d)/2.   Not 2d.  My bad.

Message 16 of 31
engineguy
in reply to: rolds105

@rolds105 

 

Wow, amazing, what can I say, that is really doing it the hard way 🙂

 

My work flow, buy 4th/5th axis Trunnion/table, look at specification to get centre line height for the A axis and centre point for the C axis (Normal configuration is A around X, B around Y and C around Z) and the height of the table, write those values down and use them in whatever CAM software is used. That does it for me ! 🙂 🙂

Message 17 of 31
rolds105
in reply to: engineguy

Good point, but the Chinese 5-axis CNC 6040 I bought from eBay came with the trunion table included and didn't have those specs.  Wish it did tough.   3-axis CNC machinists and/or hobbyest converting to 5-axis CNC machines should understand the concepts.  Experienced CNC programers will find my dissertation obvious.

Message 18 of 31
engineguy
in reply to: rolds105

@rolds105 

 

Ah, understand, that Chinese stuff again, they certainly don`t seem to try to make life easy for their customers for sure!!

 

What you posted will certainly do the job and will no doubt be a huge help for others, very nicely put together 🙂

Message 19 of 31
rolds105
in reply to: engineguy

Can somebody enlighten me on the orientation direction of the X, Y, Z axis.  The picture I attached in my original post shows axes directions.  Lets say the Gcode wants to move the tool on the part one inch in the +X direction. the table has to move 1 inch in the negative direction.  So what is that chart showing?  The movement of the mill table or the tool movement direction? 

 

I guess some mills fix the stock on the table and moves the tool, but the CNC 6040 fixes the tool (spindle) in the X and Y direction and moves the table.  To make things more confusing the Z axis movement moves the tool up and down.  Examining the Gcode of the post processor I'm using for the CNC 6040 it seems the post processor is also confused about the axes directions and it gets really confused if there is an A-axis rotation.  

 

Take a look at this test cube model I've attached.  The cube is a 3x3x3 inch cube with the WCS at the center of the cube.  Pocket1 drills four holes on the top face and Pocket2 drills four holes in the front face.  The Gcode does a +90 degree X-axis rotation for the Pocket2 tool paths.  That's when the tool paths get crazy starting at line# 1114.  After the 90 degree rotation the front face is now the top face.  The Z-axis position after the rotation should not go negative, it does.

 

Am I crazy?

Message 20 of 31
engineguy
in reply to: rolds105

@rolds105 

 

Looks like you forgot to set the "Bottom Height" for the second set of holes to the same as the first one, setting it to the same 2.9in and the Z values are all positive 🙂 🙂 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report