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 09-19-2005, 03:31 PM
 
Join Date: Jul 2005
Location: UK
Age: 29
Posts: 441
daedalus is on a distinguished road
control software suggestions?

Hi,

I am putting together a 4 axis system, but have a rather odd interface. I have managed to get an ISA 4-axis pid controller card made by tech80, which i want to use to control my servos. The problem i am having is that i only have drivers for this card in windows, and the manufacturer arent being very helpful. Although i have a library to access the card in windows, i dont have full source, so porting to linux to use EMC is going to be a pain.

Are there any windows based cnc control programs which have a software api for communicating with motion hardware? If i could get step+direction signals in software i could use this to command the card, the problem is i cant seem to find software which supports this.

Thanks,
Tom
Reply With Quote

  #2   Ban this user!
Old 09-21-2005, 09:15 PM
 
Join Date: Sep 2005
Location: USA
Posts: 1
KNOWEROFALL is on a distinguished road

Kcam - Its Free And Will Jog All Axis
Reply With Quote

  #3   Ban this user!
Old 09-23-2005, 08:09 AM
 
Join Date: Jul 2005
Location: UK
Age: 29
Posts: 441
daedalus is on a distinguished road

Hi,

Cant see any mention on kcams page of having a software interface available. It appears to only support lpt connections to stepper systems. I am using an isa motion controller, and so need access to step+dir in software, not via the printer port.

The reason i am after a windows package is that i have a windows driver for the motion controller, and the people who made it wont give me the linux driver they developed. My only other option is to reverse engineer their drivers and use EMC2.

Knowerofall: how do you interface to kcam in software?
Reply With Quote

  #4  
Old 09-23-2005, 08:27 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by daedalus
Knowerofall: how do you interface to kcam in software?
You can't use KCAM. But you might be able to use DeskCNC.
__________________
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

  #5   Ban this user!
Old 09-25-2005, 07:27 AM
 
Join Date: Jul 2005
Location: UK
Age: 29
Posts: 441
daedalus is on a distinguished road

have taken a look at deskcnc, and it only supports serial or parallel connections. I think i may be able to trick the software into working with my setup, but i would have to write a new proxy dll to replace the library it uses for port io, then decode the step + dir signals that way, which imho is a right pain in the ass.

I cant understand why these software developers dont just expose an api for hardware comms, that way adding support for different setups would be trivial.

I guess its time for me to drop the drivers i have into a decompiler and try and figure out whats going on under the hood. Really didnt want to have to do driver development for this, but looks like EMC2 is the best bet at this point, as it looks to have a relatively easy hardware abstraction layer.

Anyone else got any better ways to solve this problem?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-25-2005, 08:15 AM
WayneHill's Avatar  
Join Date: Mar 2004
Location: Michigan
Posts: 777
WayneHill is on a distinguished road

have taken a look at deskcnc, and it only supports serial or parallel connections.
Hi,

DeskCNC's API only supports it's own interface card. The interface communication is serial 9 pin or USB with an adapter to serial.

If all you require is step and direction and some I/O's - how about building an interface from the parallel port to your tech80 card then use a Windows based CNC software that supports step and direction?

Wayne
__________________
Wayne Hill
www.codemangler.com
Reply With Quote

  #7   Ban this user!
Old 09-25-2005, 09:02 AM
 
Join Date: Jul 2005
Location: UK
Age: 29
Posts: 441
daedalus is on a distinguished road

i had considered that option, but if i was to go down the hardware hack route then serial would be easier, as i could install an extra 2 serial ports and use a null modem cable to connect them both together.
DeskCNC uses a 3rd party dll to talk to the parallel port, so i could write a dummy dll to take the place of this driver, sending port outputs directly to my software, however both these approaches are messy hacks, and they may not be supported by future versions of the software (driver change / proprietary protocol change).

To be honest i am looking to see if there are any easier ways to do this then porting the tech80 drivers to linux, which is looking like the easiest and most reliable option right now. Just didnt want to have to deal with the couple hundred pages of low level interfacing manual im gonna have to read.

I cant believe noone produces cnc software with a hardware abstraction layer for windows, guess there is little demand for alternatives to parallel, as most users of motion control cards probably get gcode interpreters bundled from manufacturer.

Thanks for the ideas though, will have to make some posts to the emc forum, see if there are any downsides to my planned approach.
Reply With Quote

  #8   Ban this user!
Old 09-25-2005, 09:23 AM
WayneHill's Avatar  
Join Date: Mar 2004
Location: Michigan
Posts: 777
WayneHill is on a distinguished road

Yes, interfacing Windows with real-time is a pain - and will only get worse as new Window versions come out.
__________________
Wayne Hill
www.codemangler.com
Reply With Quote

  #9  
Old 09-25-2005, 01:41 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 269
imserv is on a distinguished road

Originally Posted by daedalus
i had considered that option, but if i was to go down the hardware hack route then serial would be easier, as i could install an extra 2 serial ports and use a null modem cable to connect them both together.
DeskCNC uses a 3rd party dll to talk to the parallel port, so i could write a dummy dll to take the place of this driver, sending port.
This is incorrect.

DeskCNC is an integrated hardware and software solution. It utilizes the serial port to manage an intelligent, external machine controller. The dedicated machine controller delivers a faster and more accurate pulse stream than any parallel port solutions. The external controller card is approximately 2" by 2".

There IS a DLL involved, but it is NOT a 3rd party development.

Purchase of the DeskCNC software license and hardware includes access to the user programmable API. The API utilizs the DLL to access the hardware controller card. (Purchase also includes license to use all the CAM functions for programming pockets, drilling, contouring, 3D surface machining, engraving, pcb, etc) Neither the deskcnc controller, the dll, nor the API are available for linix.

In order to use the hardware, you are required to purchase a software license.

You can drive your ISA driver card with the step and direction output from the DeskCNC controller. The controller can be mounted "daughterboard style" right on the ISA bus card, and connected to the computer's serial port. DeskCNC is not licensed or offered in any other configurations.

Fred Smith - IMService
http://www.cadcamcadcam.com/hobby
Reply With Quote

  #10   Ban this user!
Old 09-25-2005, 02:29 PM
 
Join Date: Jul 2005
Location: UK
Age: 29
Posts: 441
daedalus is on a distinguished road

sorry, was thinking of kcam, deskcam looks to be completely useless for what i want to do. I already have a very nice high speed PID controller board which does pid in hardware, and which is controlled directly from software. There is no point adding another proprietary interface card, then having to read the step and direction signals into the pc again in order to feed them back into the pid controller card.

i may not have made this clear, but i have drivers for this card in windows, and so a windows based solution would have allowed me to avoid linux altogether, and the associated driver development effort, however this doesnt seem to be possible. If i am going to the effort of writing drivers for linux, then the last thing im going to do is pay for a gcode interpreter, when EMC is free and well supported.

Just to make this clear, the idea in windows would have been to hook the output of some cnc package in software, then use this to generate the target position for the pid controller in software, and then command the isa board. As this seems to be near impossible with the packages ive looked at, im off to write linux drivers.
Reply With Quote

Sponsored Links
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 02:57 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