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! > Machine Controllers Software and Solutions > General CNC (Mill and Lathe) Control Software (NC)


General CNC (Mill and Lathe) Control Software (NC) General Discussion of CNC (Mill and Lathe) control software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-13-2006, 04:11 AM
 
Join Date: Jan 2006
Location: New Zealand
Posts: 88
nick mulder is on a distinguished road
Post Mac Intel chips for CNC - or > USB/serial/parallel converters anyone ?

Hi,

I'm a mac user as it has suited most of the work I have done in the past - I'm keen to develop a motion control system that uses very similar elements to many CNC systems ...

Turns out to prototype the system I need to convert a mill to CNC anyway, however all the freeware and pro g-code and similar system utilize the parallel or serial port to talk to the steppers/servos and associated drivers

I was about to purchase a PC but now I have discovered that it is now possible to run XP on the mac and indeed saw one in action in store today. This is not a virtual simulation, it runs natively, I think even linux is go on the new chips

Upon asking the guy in the store if there was such a thing as USB serial and parallel converters he told me 'no' ... a quick search on google gave me myriad results for many examples seems like every man and his dog have made a copy of the same product and I'm keen to attempt a reverse engineer meself...

>> question is tho:

has anyone tried a setup such as this - a mac running XP talking to CNC drivers like say the UHU, gecko etc via a USB to serial or parallel converter ?

any potential problems/incompatabilities ?

cheers as always,
nick

Last edited by nick mulder; 06-13-2006 at 04:46 AM.
Reply With Quote

  #2   Ban this user!
Old 06-13-2006, 07:30 PM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

The general concensus is that it will not work. It doesn't even work in standard intel-windows setup (via USB-Parallel converter).

The reason is that standard USB to parallel port converter are meant for printers and windows have special codes to make that work for printers. For CNC, software are accessing the printer port directly (bypassing windows built-in codes)... not possible with USB-parallel converter.
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #3   Ban this user!
Old 06-13-2006, 07:38 PM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

On second thought...

If you intend to write your own software, why not get a USB-Parallel port chip/module such as (http://www.dontronics-shop.com/produ...cat=322&page=1). This way you could write your own protocol to talk to the gecko, etc. It is doable...
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #4   Ban this user!
Old 06-13-2006, 11:31 PM
 
Join Date: Jun 2003
Location: Boalsburg PA
Posts: 844
unterhaus is on a distinguished road

I'd get a pc. EMC will run over telnet, so it could be used on a Mac with a pc as the realtime controller. There are other options out there, they would require a significant amount of development.
Reply With Quote

  #5   Ban this user!
Old 06-13-2006, 11:56 PM
 
Join Date: Jan 2006
Location: New Zealand
Posts: 88
nick mulder is on a distinguished road

Originally Posted by unterhaus
I'd get a pc. EMC will run over telnet, so it could be used on a Mac with a pc as the realtime controller. There are other options out there, they would require a significant amount of development.
The new macs are for all intensive purposes are PC's - there is no emulation, its running natively on the apple hardware using intel duocore chips..

its just a PC without a parallel or serial port
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-14-2006, 12:16 AM
 
Join Date: Jan 2006
Location: New Zealand
Posts: 88
nick mulder is on a distinguished road

Originally Posted by abasir
On second thought...

If you intend to write your own software, why not get a USB-Parallel port chip/module such as (http://www.dontronics-shop.com/produ...cat=322&page=1). This way you could write your own protocol to talk to the gecko, etc. It is doable...
thats a great link there, thanks!

my end goal is to use a 3D animation program like Maya to program motion paths in 3D space in which virtual cameras will travel, the positional information (xyz) and pointing info (pan,tilt,roll) with respect to time of these cameras will be outputted to another prog which i will make that will convert this info into the required step/dir info for the 6 or more axes of a real physical motion control system that has a real camera appended ... (a very simplified explanation)

In the meantime I plan to CNC a mill with some servos and UHU boards with which it will help me make the motion control system above - the UHU needs step/dir signals which would come from mach3 or similar ...

>> can mach3 output its signals to this module you have linked or do I have to code my own controller software ? :yikes: ?

I'm reasonably at home with basic kinematics, dynamics, calculus & coordinate math and a little bit of coding (enough to know what i dont know yet) so the Maya3D position to discrete velocity conversion is ok in my head at least, but I know nought to do with G-code and was hoping to simply use something like mach3 or similar


the UHU also use RS232 protocol to set up its PID parameters and wotnot ... I think it uses AVR's - also a lot of PIC programmers use RS232... is it as simple as getting a $20 converter for this ?
Reply With Quote

  #7   Ban this user!
Old 06-14-2006, 12:20 AM
 
Join Date: Jun 2003
Location: Boalsburg PA
Posts: 844
unterhaus is on a distinguished road

I know a mac is just a pc nowadays, but the software and the hardware available make all the difference. If you can run Windows XP, then there is a good chance that Mach 4 and a GRex will work for you when they become available, but I doubt this is what you want. If you can install an actual hardware parallel port (they have pci express or anything like that?) you could run Mach 3. There is the CNCDudez (sp?) usb device, which probably will work. And a GRex might work natively with a mac eventually. You probably could put something together out of EMC, it's open source and it's been done before. You could probably run Linux and EMC natively, don't know what hardware you would use, again, you need a real parallel port or other supported hardware interface.
Reply With Quote

  #8   Ban this user!
Old 06-14-2006, 07:53 PM
 
Join Date: Jan 2006
Location: New Zealand
Posts: 88
nick mulder is on a distinguished road

EMC - very interesting...

I will attempt to get linux going on the mac and then a conversion of EMC to output to the microUSB I/O device abasir linked to -

:uphill_struggle: !

but I'm in for learning (;
Reply With Quote

  #9   Ban this user!
Old 06-15-2006, 04:44 AM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Mach 3, as far as I know, will not work with the module I linked. The module will appear as serial port rather than parallel port.

Also take note that USB communication do not necessarily happens realtime as opposed to talking to the parallel port directly.
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #10   Ban this user!
Old 06-15-2006, 05:16 AM
 
Join Date: Jan 2006
Location: New Zealand
Posts: 88
nick mulder is on a distinguished road

Originally Posted by abasir
Also take note that USB communication do not necessarily happens realtime as opposed to talking to the parallel port directly.
I'm no expert but I would have thought that if there are for example USB sound cards that are used in audio recording that latency would be small or at the very least constant ?

As my application is time dependant what sort of error/delay could i be looking at with parallel type output via USB ? does it accumulate per axis ?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-15-2006, 05:48 AM
 
Join Date: Apr 2006
Location: Somewhere
Posts: 402
fkaCarel is on a distinguished road

This link will give you an introduction in the world of the other side of the cable:
http://www.cypress.com/portal/server...&showall=false

USB is also called a conspiracy between Intel and Microsoft to maintain the need for ever increasing processing power. It's at least complicated.

Carel
Reply With Quote

  #12  
Old 06-16-2006, 08:11 AM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 269
imserv is on a distinguished road

DeskCNC should work fine on the XP booted mac computer. A USB to serial adaptor is all you will need.

http://www.imsrv.com/deskcnc


Fred Smith - IMService
http://www.cadcamcadcam.com/hobby
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 03:03 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