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! > OpenSource CNC Design Center > Coding


Coding Post your Coding for opensource projects here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #13   Ban this user!
Old 12-17-2005, 09:35 PM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 504
10bulls is on a distinguished road
CAMBAM Beta 0.6 out - 2.5D profiling has arrived

Hail fearless bleeding edge beta testers!

I have just uploaded a new version of CAMBAM beta 0.6, available here.

The big new feature in this release is 2.5D profiling machining operations.
Thanks to Terry (MrBean), I've hastily put together a tutorial on how to generate code for an HTD timing belt pulley.
More documentation and tutorials to follow....I may even get brave and try out the gcode its producing!

I fear I've rushed this release through a bit in a bid to get it out before Christmas, but what better way to expose the bugs than show it to the public!

Once again, it is still early days and there is still much development and testing to do.
So please try this software in the understanding that it is very much experimental code and not a polished CAM application.

Cheers!
Attached Images
File Type: png ex1-step4.png‎ (136.9 KB, 365 views)
Reply With Quote

  #14   Ban this user!
Old 12-17-2005, 09:40 PM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 504
10bulls is on a distinguished road

Oh! And how could I forget!
...under Tools->Options, try setting RotationMode=Left_Middle.

Now the view can be rotated by clicking the middle and left mouse buttons and dragging. The middle mouse button can then be released while still holding down the left.

To reset the rotation hold down the middle mouse button and double click the left.

There ya go Santini! You can now drink your tea and beta test my software at the same time....no excuses
Reply With Quote

  #15  
Old 12-18-2005, 11:17 AM
MrBean's Avatar
Gold Member
 
Join Date: Oct 2003
Location: UK
Posts: 593
MrBean is on a distinguished road

I can confirm that one handed rotation is alive and kicking.
Just having a look at the new stuff you've added.
Nice work....

Far out brusselsprout.

That pulley looks very familiar

Terry.
Reply With Quote

Sponsored Links
  #16   Ban this user!
Old 12-18-2005, 11:35 AM
santiniuk's Avatar  
Join Date: Nov 2004
Location: U.K - England
Posts: 389
santiniuk is on a distinguished road

3.40am.....Are you sure your committed to this project Andy ?

Well the mouse rotation works a treat. Thanks for adding that feature. (The CAD package I use at work has the same rotation method and I'm so familar with it that its a nightmare when it's not there).

With the features you are now adding to the program it's now taking it to the next level. It's actually going to be useful !

I'm going to be brave and try to generate some code for some plates I need making for my MKII Z axis assembly. Will feedback results.

Keep chipping away, it's coming together.

Cheers
Reply With Quote

  #17   Ban this user!
Old 12-18-2005, 10:56 PM
 
Join Date: Apr 2004
Location: Wartrace, TN
Posts: 160
esmiller is on a distinguished road
First impressions

Well,

I downloaded DotNet 1.1 and CAMBAM Beta 6.0 <?> and installed them both.. no sweat.. perfect installation, and just created a folder on my Desktop for the CAMBAM to run from. Haven't played with DXF much, but the text entry system and the Circle worked beautifully.

NEXT.. I played with what has me drooling.. the HEIGHTMAP for Photos.. this is incredible.. ONLY one problem i see. by default, it appears HEAD-ON, and you can't see the engraving (cutting<?>) until you rotate the view.. could it be set to DEFAULT to say. 15 degress off-center on each axis whenever you do a HeightMap function.. I didn't know initially that you had to rotate it to see it, but that was quickly found to be the issue.. other than that it is probably the first attempt at this sort of program i have ever had the pleasure to test out!

Eddie
Reply With Quote

  #18   Ban this user!
Old 12-18-2005, 10:58 PM
 
Join Date: Apr 2004
Location: Wartrace, TN
Posts: 160
esmiller is on a distinguished road

OH yeah... if anybody wants to contribute any suggestion on learning how to script functions similiar to the spirograph idea, i would love to learn how to do it, as I am sure would many others...

Any takers? LOL...

Eddie
Reply With Quote

  #19  
Old 12-19-2005, 05:43 AM
MrBean's Avatar
Gold Member
 
Join Date: Oct 2003
Location: UK
Posts: 593
MrBean is on a distinguished road

I'm going to let some of CamBams code loose on my machine later today or tomorrow. I'll see what time I've got.

I made a g-code from a photo. The toolpath looks good in Mach2. We'll see how it goes.

This will be my first live CamBam test.

Here's a screen shot...

I'll post the result here when it's done. I may even get some video of it cutting. This software is really comming on since the early betas. Great job 10bulls.

Terry.
Attached Images
File Type: gif mach-path.gif‎ (130.9 KB, 324 views)
Reply With Quote

  #20   Ban this user!
Old 12-19-2005, 06:03 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 504
10bulls is on a distinguished road

Originally Posted by santiniuk
3.40am.....Are you sure your committed to this project Andy ?
I think I ought to be committed!!
Well the mouse rotation works a treat.
Thanks for the suggestion. I found it a bit awkward at first, but it's grown on me now and I use it as default too. Only problem is, I find myself drinking much more cups of tea than I used to
I'm going to be brave and try to generate some code for some plates I need making for my MKII Z axis assembly. Will feedback results.
I'd be flattered. I'm sure the gcode will work. Well, when I say 'sure' I mean....
Keep chipping away, it's coming together.
Thanks dude, it wouldn't have got this far without you and Terry's feedback early on. I'm looking forward to getting dusty in the garage again rather than spending all spare moments on butt in front of computer!
Reply With Quote

Sponsored Links
  #21   Ban this user!
Old 12-19-2005, 06:12 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 504
10bulls is on a distinguished road

Originally Posted by esmiller
OH yeah... if anybody wants to contribute any suggestion on learning how to script functions similiar to the spirograph idea, i would love to learn how to do it, as I am sure would many others...
Thanks for taking the time to try it out Eddie!
OK...I tried to resist, but I'm a sucker for a challenge. So I fished out my daughters spirograph and knocked together this little vb script.
It's not the most efficient way to generate spirographs and I'm sure there are others who could make them more ellaborate and swirly.
It did give me an excuse to show one of the other new features in this release...the ability to do real time animations...
Happy spiralling!

BTW: Hidden away on web pages is some documentation on the scripting objects:
http://www.brusselsprout.org/CAMBAM/DOM/index.htm
It's a bit out of date now, but it may help if you get stuck.
Attached Files
File Type: zip spiro1.zip‎ (936 Bytes, 120 views)
Reply With Quote

  #22   Ban this user!
Old 12-19-2005, 06:20 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 504
10bulls is on a distinguished road

Originally Posted by MrBean
I'm going to let some of CamBams code loose on my machine later today or tomorrow.
Don't forget the safety goggles, ballistic trousers, saucepan on head and any other safety devices you can lay your hands on!!!
Nice one Terry! Good Luck! I'm hoping to try cutting a htd pulley soon.
Reply With Quote

  #23   Ban this user!
Old 12-19-2005, 07:29 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 504
10bulls is on a distinguished road

Whoops...just spotted a bug in the above spirograph vb script, the drawing point recalculation should be...

'// Recalculate the drawing point
DrawPoint.Points(0) = new Point3F(Circle2.Center.X + Radius3 * Math.Cos(-th*(Radius1-Radius2)/Radius2),Circle2.Center.Y + Radius3 * Math.Sin(-th*(Radius1-Radius2)/Radius2),0)

...or is it ?!
...but the gcode should be OK guys,....no really....well, when I say OK what I actually mean is....etc...
Reply With Quote

  #24  
Old 12-19-2005, 08:25 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,446
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by esmiller
OH yeah... if anybody wants to contribute any suggestion on learning how to script functions similiar to the spirograph idea, i would love to learn how to do it, as I am sure would many others...

Any takers? LOL...

Eddie
Here's the vba code for to draw a spirograph in AutoCAD. It puts the points in an array (X,Y, X2,Y2,X3,Y3...). Sorry, no comments.

Circle1R = CInt(Circle1RBox.Value)
Circle2R = CInt(Circle2RBox.Value)
Position = CInt(PositionBox.Value)
Resolution = CInt(ResBox.Value)
NewSize = ScaleBox.Value
Point1(0) = 0: Point1(1) = 0
Point2(0) = XBox.Value
Point2(1) = YBox.Value


Rad1 = Circle1R
Rad2 = Abs(Circle2R)


' Find Greatest Common Denominator
Do While Rad1
If Rad1 < Rad2 Then
tmp = Rad1
Rad1 = Rad2
Rad2 = tmp
End If

Rad1 = Rad1 Mod Rad2
Loop

GCD = Rad2
Revs = Abs(Circle2R / GCD)

pntcnt = Revs * Resolution * 2 + 1

angadd = 360 / Resolution



ReDim pnts(0 To pntcnt) As Double



ang = 0
pi = 3.14159265358979


For x = 0 To pntcnt Step 2

radang = ang * pi / 180
y = x + 1

pnts(x) = (Circle1R + Circle2R) * Cos(radang) - Position * Cos((Circle1R + Circle2R) * (radang / Circle2R))
pnts(y) = (Circle1R + Circle2R) * Sin(radang) - Position * Sin((Circle1R + Circle2R) * (radang / Circle2R))

ang = ang + angadd



Next x


Set PlineObj = ThisDrawing.ModelSpace.AddLightWeightPolyline(pnts)
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
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





All times are GMT -5. The time now is 06:21 AM.





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