CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > Benchtop Machines


Benchtop Machines Discuss all mini mills sherline, taig, square column, round column and CNC mill conversions here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-29-2007, 07:32 PM
 
Join Date: Jul 2004
Location: United States
Posts: 232
rustyolddo is on a distinguished road
Thumbs up Everything I learned about a 4th axis conversion

I'm running Mach2 on a CNC X2 with a Hobbycnc controller.


I've spent a good bit of time perfecting my 4th axis and I thought I'd share what I learned with others here.

Under normal circumstances, the 4th or 'A' axis is angular and the moves are called out in degrees. If you have a CAD/CAM software that supports a 4th axis, you are in good shape. If all you have is a 2.5D CAD/CAM, then things can be a bit more challenging.

First, lets address the 4th axis mechanics. My and most other 4th axis 'conversions' involve adding a stepper motor to a rotary table. Simple enough. In my case my rotary table was a 1:72 ratio. 72 turns of the worm results in one 360 degree rotation of the table.

My stepper motor is a 200 step per revolution (1.8 deg) per step (360 deg/200 steps=1.8deg/step) My controller runs 1/8 micro step mode so it takes 1600 step pulses (8*200) to make a complete 360 degree motor rotation.

72 motor rotations makes one rotation of the rotary table so 1600*72 means 115,200 steps for one rotation of the rotary table.

If we divide 360 degrees by 115200, we get .003125 degrees per step.

Alternately, we can calculate the number of degrees required to move a linear distance around the circumference of a part.

For example: We have a part that is 1.5” in diameter. 1.5* Pi (3.1415) gives us a circumference of 4.7123” If we divide 4.7123 by 360 we get .01309 inches of linear movement per degree.

If we want to move a linear distance of 1.125” on our 1.5” diameter (4.7123" cir) part, we divide 1.125” by .01309 in/deg and get 85.94 degrees of movement required to move 1.125” linear on the 1.5” diameter part.

Thus, we can create a correction factor or scaling factor for our 4th axis by dividing the circumference of the part by 360, and manually coding the linear distance for the ‘A’ axis move.

Alternately, if your CAD/CAM software has a scaling feature, you can create a scaling correction factor. You would create your part in standard 2.5D with X & Y moves with Y typically being the axis to be converted to ‘A’. You take the circumference and divide it by 360 then take the inverse of that value (1/x) and that becomes your scaling correction factor.

Using the previous example: 1.5”* 3.1415= 4.7123”
4.7123”/360=.01309
1 divided by 0.01309=76.397 scaling correction factor

Therefore, you would scale your ‘Y’ axis by a factor of 76.397 to get the equivalent linear move on the ‘A’ axis. Once you post the scaled code, you would do a simple search & replace substituting ‘A’ for ‘Y’ in your text editor. The end result X, Y, back plot & drawing will look strange because the Y axis will be substantially elongated. But it will be correct as far as the computer is concerned.

While it does work, this later method has an inherent problem. The feed rate will be significantly slower than the desired or specified feed rate. And IJ Moves will not work as they are functions of the X & Y axis, they are not recognized in an A move.

As a result, I had to search for a better method. Thus part 2.

Using the same math:
72:1 ratio, 1600 steps per rev of the motor, 115200 steps for 360 rotary table movement .

In Mach2 (my version), we can take the total number of steps for 360 deg. Table rotation and divide it by the circumference to determine the number of steps per inch of movement. Again using the previous example:

1.5” diameter*3.1415=4.7123”
115200/4.7123=24447 steps per inch of linear movement.

Calculating for the diameter of the part, we take the solution and use it in the ‘Steps per Unit’ setting for the Rotary axis in the motor tuning menu. We do this for each different diameter of part that we have machine. For a 1.5” diameter, we enter 24447 for our steps per unit.

Thus, by doing so we do NOT have to scale our ‘Y’ axis by a calculated scaling correction factor. Our back plot & drawing appears normally. The beauty of it is the specified feed functions correctly.

Now, in order for the IJ moves to work correctly on our rotary axis, we have to substitute the Rotary axis for the Y axis (or X if you desire), then remap the Y axis to the A axis. It’s a lot simpler than it sounds.

First I created a new profile called rotary and cloned the Mach2mill profile. This retains all your setting currently in use.

I configured the output ports so that the controller output for the 4th axis stepper was on the Y axis port. Just swap the output pin numbers in the port menu between Y and A.

I swapped the motor tuning data between the Y axis & 4th axis, changed the steps per units as noted above for the diameter I’m working with.

Unticked the A axis Angular setting

Changed the Hotkeys so that they worked as in Conventional mill mode U/D arrow keys controlled the remapped A axis (now the Y axis), and my Home/End keys that control the Y (now A rotary axis) This prevents any jogging crashes when going from Conventional and Rotary Mach configurations since the jog keys will move the same axis regardless of the configuration (Mill or Rotary) selected.

Changed the Motor Reversals as required for the proper directions.

Created a new Shortcut Key for the Rotary profile Configuration, I used the lathe icon to prevent a mistake.

Now, no matter what I do in my CAD/CAM software the posted code needs no changes, I can perform the operations in either the Flat 2.5D environment or the rotary environment by simply selecting the appropriate start up icon. All my posted code remains the same. The tool path display functions normally. The rotary mode tool path looks just like a 2.5D tool path.

The only setting I have to change for a job is the Steps per Unit setting per the math/diameter discussion & the backlash setting for the diameter of the part I am working with.

Hope this little exercise is of some help to others.
Reply With Quote

  #2   Ban this user!
Old 12-30-2007, 06:29 AM
 
Join Date: Feb 2005
Location: U.S.A.
Posts: 15
GoFaster is on a distinguished road

Thank you, this will be very helpful towards my upcoming X2 conversion!
How do you have your rotary table mounted? The 90 degree mounts I've seen seem to take up a lot of room on the mill table.
Reply With Quote

  #3   Ban this user!
Old 12-30-2007, 08:22 AM
 
Join Date: Jul 2004
Location: United States
Posts: 232
rustyolddo is on a distinguished road

Originally Posted by GoFaster View Post
Thank you, this will be very helpful towards my upcoming X2 conversion!
How do you have your rotary table mounted? The 90 degree mounts I've seen seem to take up a lot of room on the mill table.

I bought the Little Machineshop 1810 to convert. It' takes up the least amount of table space, less than 3" when mounted horizontally. I do not use the 3 jaw chuck and adapter plate as I pictured (old pic). I attach or adapt parts directly to the rotary table. You can see the little toe clamps that hold the table down, there is one on either side of the chuck. There is a place in the back of the rotary table to put a toe clamp as well but you'd have to move the rotary table further down the mill table, little more than an inch.

The 2 front toe clamps seem to secure it well and true. The only way to save more space would be to use a Sherline rotary table and they were too costly for this proof of concept project. This particular rotary table is the ideal size & fit for the X2. In addition, you can forego the tailstock and build an adjustable bearing roller support for the other end of the mill table which will allow you to hang any length piece of material off the end.

http://www.littlemachineshop.com/pro...1810&category=
Attached Thumbnails
Click image for larger version

Name:	RT0064 cropped.jpg‎
Views:	220
Size:	43.5 KB
ID:	49517  
Reply With Quote

  #4   Ban this user!
Old 12-30-2007, 08:41 AM
Regnar's Avatar  
Join Date: Mar 2006
Location: USA
Posts: 427
Regnar is on a distinguished road

I was wondering if you have any videos or photos of the work you have done. Great write up Thanks!
Reply With Quote

  #5   Ban this user!
Old 12-30-2007, 10:14 AM
 
Join Date: Jul 2004
Location: United States
Posts: 232
rustyolddo is on a distinguished road

Originally Posted by Regnar View Post
I was wondering if you have any videos or photos of the work you have done. Great write up Thanks!

Work done to the mill or work done on the 4th axis? Nothing really to show from the 4th axis at the moment, I've done some basic test runs but didn't have the bugs all worked out until just recently.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-30-2007, 10:45 AM
Regnar's Avatar  
Join Date: Mar 2006
Location: USA
Posts: 427
Regnar is on a distinguished road

I was asking about work done on the mill. If I am thinking about this the right way I should be able to do the lettering around this cryptex and all I really need is a 4 axis and a little math.
Reply With Quote

  #7   Ban this user!
Old 12-30-2007, 10:48 AM
 
Join Date: Nov 2005
Location: Alabama - USA
Posts: 252
Mike Nash is on a distinguished road

Originally Posted by rustyolddo View Post
Hope this little exercise is of some help to others.
Wow! Nice write up. I've saved this off for future reference. Thanks!
Reply With Quote

  #8   Ban this user!
Old 12-30-2007, 02:40 PM
 
Join Date: Jul 2004
Location: United States
Posts: 232
rustyolddo is on a distinguished road

Originally Posted by Regnar View Post
I was asking about work done on the mill. If I am thinking about this the right way I should be able to do the lettering around this cryptex and all I really need is a 4 axis and a little math.
Most definately, that would be easy. I've already done engraving with the 4th axis. It would be as simple as making an arbor for your cryptex, measuring the OD for the steps per unit setting and laying out cryptex engraving in your CAD/CAM or engraving software on the Y Axis. The height of the engraving layout would be equal to the circumference of the cryptex. You could kern & scale your fonts & graphics for a perfect fit. Jewelers do wax models for rings this way all the time.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have you learned to edit your post proccesor? tjones BobCad-Cam 14 01-23-2009 10:31 AM
What I learned Today, including Photo's Smitty911 Benchtop Machines 1 12-01-2007 10:51 AM
Learned a little bit more today Smitty911 Benchtop Machines 2 05-18-2007 01:24 AM
X3 Z-axis conversion bigvinney Benchtop Machines 6 04-26-2006 03:51 PM
What were your lessons learned? WoodSnarfer DIY-CNC Router Table Machines 18 12-11-2004 08:48 PM




All times are GMT -5. The time now is 09:22 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361