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! > CAM Software > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-07-2006, 12:51 PM
LetterCAM.com
 
Join Date: Oct 2005
Location: USA
Posts: 186
WarrenW is on a distinguished road
Coordinate question for cam software

Hi,

When your looking at the work area in a cad/cam program, is the 0,0 coordinates always at the bottom left of most software? Thats the way the CNC is driven unless you have your axis setup different right?

Just curious because I'm working on my own program and right now the 0/0 coordinates for X/Y is at the top left.

Thanks,

Warren
Reply With Quote

  #2  
Old 01-07-2006, 02:11 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Typically, yes. X+ is to the right, and Y+ is up. Usually.
__________________
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

  #3  
Old 01-07-2006, 02:17 PM
LetterCAM.com
 
Join Date: Oct 2005
Location: USA
Posts: 186
WarrenW is on a distinguished road

Looks like I have to change my software around. I'm writing a 2D cam program for letters and numbers mainly. You enter the text, choose the font and size. You can adjust the precision also. the higher it is, the more points it creates to be smoother. It also recognizes inside island cuts for the letters so they are done first. It will output as a DXF file right now. But I'm going to work on creating the toolpath and gcode as well. I just have to think of a good name for it. I'm open to suggestions!

The GUI will look completely different - below is just a rough version for writing the main engine.

Warren
Attached Thumbnails
Click image for larger version

Name:	app1.gif‎
Views:	53
Size:	46.5 KB
ID:	13632  
Reply With Quote

  #4  
Old 01-07-2006, 02:43 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

So long as you follow the axis direction convention as Ger21 stated it, the exact location of the profiles relative to the origin on the CAD screen should not matter, just so long as the user sets up the work offsets on the machine, so that the reference datum on the part corresponds to the lay of the profile position for CAM.

There are all sorts of reasons why some guys want to drag the profiles to a different quadrant, or maybe even center the profile on the origin, and do some cutting in all 4 quadrants.

I would not advise that you hard code in the position of the text profiles in your CAD.

Sorry if I've confused you, but I'm not quite certain what point you are driving at.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #5  
Old 01-07-2006, 04:24 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

I meant to mention that, but forgot. What Hu is saying, is that 0,0 can be anywhere, is long as X+ is to the right, and Y+ is up. So all your coordinates can have negative values, if the user wanted it that way.

I'd give users the option to psotion the text when outputting the g-code. Let them reference the position from the center, or lower left corner, or any other options you might like to use.
__________________
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

Sponsored Links
  #6  
Old 01-08-2006, 07:11 PM
LetterCAM.com
 
Join Date: Oct 2005
Location: USA
Posts: 186
WarrenW is on a distinguished road

Hmmmm, now I'll have to go back to the drawing board. I thought that the 0,0 point could be in any corner and the numbers would increase from there. So if the top right was set to 0,0, then the X/Y would increment as it moved out. I programmed it where you can choose any of the four corners as the 0,0 but the numbers don't go negative - everything becomes relative to that corner. Is that not needed then? If your standing at the base of the X axis of your machine, the X always increments to the right and the Y increments to the top right?

I was going to allow you to set a starting point anywhere but it was not going to be set to 0,0. But I guess thats what your saying. I should allow the user to click a point on their machine in the software to choose a starting point and that becomes 0,0?

Warren
Reply With Quote

  #7   Ban this user!
Old 01-08-2006, 07:40 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

CNC machines use standard Cartesian coordinates; upper right quadrant is X+, Y+; lower right quadrant is X+, Y-; lower left quadrant X-, Y-; upper left quadrant X-, Y+. Most, if not all, commercial machines have the home position, 0,0 in machine coordinates (G53), i.e.the Cartesian origin to the right and away from the operator. This means that in the machine coordinate system, G53, moves in both X and Y are negative; the machine cannot make a positive move in G53. Subsidiary coordinate systems may be specified using Work Coordinates. G54 to G59 are the standard ones but many machines can have more than six (not all systems use the same Gnn for Work Coordinates past G59). Depending on where the Work Coordinate systems are placed a program may have access to all the Cartesian quadrants. Placing the Work Coordinate at the limit of the machines travel on both axes gives you a subsidiary coordinate system in which any move on either axis has to be positive. Placing the Work Coordinate at the center of the machine travel on both axes gives you a symmetric Cartesian system and moves can use all combinations of + and -.
Reply With Quote

  #8  
Old 01-08-2006, 07:42 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Warren

If you were going to allow only incremental positioning, then I can visualize your original method working. However, for absolute coordinates, just stick with the normal cartesian coordinate system layout.

Usually, even if using an incremental positioning subroutine, at the start, the machine is positioned somewhere with an absolute coordinate. At the end of a series of incremental movements, then another absolute coordinate is called to re-establish the accurate whereabouts of the work position on the machine.

Yes X+ is table right, Y+ is table away from you (towards the machine column).
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Last edited by HuFlungDung; 01-08-2006 at 08:08 PM.
Reply With Quote

  #9   Ban this user!
Old 01-08-2006, 07:48 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by HuFlungDung
If you were going to allow only incremental positioning, then I can visualize your original method working.....
Even in incremental text height will be represented by a negative number which is non-intuitive.
Reply With Quote

  #10  
Old 01-08-2006, 09:19 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Geof
Most, if not all, commercial machines have the home position, 0,0 in machine coordinates (G53), i.e.the Cartesian origin to the right and away from the operator. This means that in the machine coordinate system, G53, moves in both X and Y are negative; the machine cannot make a positive move in G53.
Maybe for milling machines, but not necessarily for routers. G53 0,0 is where the home switches are, right?
__________________
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

Sponsored Links
  #11   Ban this user!
Old 01-08-2006, 11:39 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Yes; I apologize, I keep forgetting. I did own a Biesse Rover 20 for a while as a joint project with a friend who is a cabinet maker. The differences between wood and metal machines drove me nuts so I sold it to him.
Reply With Quote

  #12  
Old 01-09-2006, 10:13 AM
LetterCAM.com
 
Join Date: Oct 2005
Location: USA
Posts: 186
WarrenW is on a distinguished road

Okay, I understand now. This won't be a problem at all. In the setup it will ask for the table size which I'll set. Then it will ask for the material size and draw that as another area which will be inside the table area. And you can position it anywhere on the table you want. Then at anytime you can select where the 0,0 coordinate will be on the table. If you place it in the middle and some of the cutting areas are below and to the left, then the cutting will go into negative numbers.

Here is the latest screen shot of my software. I tried to make a nice interface for it. It does not show the border for the table or material yet. Its coming along though. I still have to add the X/Y coordinates on the bottom bar and also buttons to mirror X and/or Y if ever needed. I figure atleast 5 days and it may be ready for beta testing.

Warren
Attached Thumbnails
Click image for larger version

Name:	app2.gif‎
Views:	40
Size:	36.0 KB
ID:	13689  
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 12:49 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