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! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-30-2008, 07:48 AM
 
Join Date: Sep 2008
Location: USA
Posts: 25
RogerTango is on a distinguished road
out the LPT port- what is it?

I am still new at this, so bear with me.

I ordered the servo controller for my upcoming mill that I am building- It uses the parallel port (LPT) of the computer to receive information.

Say, I wanted to write my own software to control XYZ of the mill I built. What commands, in what formatting is sent out the LTP port?

I have never worked with a server controller before, so all this is new to me.

Thanks-
Andrew
Reply With Quote

  #2   Ban this user!
Old 10-30-2008, 11:55 AM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

Your question is like: "How big is a tree?"

I don't know, what kind of tree is it?
Where did you buy it from?
Links?

Can't help yet.
Matt
Reply With Quote

  #3   Ban this user!
Old 10-30-2008, 12:26 PM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

If you really want to write some motion control software to use with a full servo motor system you should look into EMC, study the souce code and see how they have done things. All available for the cost of the download.
http://www.linuxcnc.org/

If all you want to do is simple step and direction output then you could look into TurboCNC the souce code only costs something like $60 and the jump you get over reinventing it all is more then worth that.
http://www.dakeng.com/turbo.html

As far as the controller you ordered, any quality hardware like that should come with some sample code one how to communicate with it.
Reply With Quote

  #4   Ban this user!
Old 10-30-2008, 02:31 PM
 
Join Date: Sep 2008
Location: USA
Posts: 25
RogerTango is on a distinguished road

Your replies were informative. However, let me reword the question for what I am looking for-

Lets say I am running Mach3 which communicates with a controller board by parallel cable and sends commands to it to tell it what to do with the three axis motors-

What would these commands be and where could I find a whitepaper or discussion on this data?



Thanks,
Andrew
Reply With Quote

  #5   Ban this user!
Old 10-30-2008, 03:02 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

Mach3 controls a motor with step and direction signals. Each axis will have a step pin and a direction pin. Each time the step pin is pulsed (lo-hi-lo) the drive moves the motor one step (or microstep) if its a stepper motor, or one encoder count if it is a servo motor. The direction pin simply controls whether the motor is going forward or reverse. For example: if you wanted a normal stepper motor to turn 1 revolution, and you had a full step drive, mach would need to send 200 pulses through the LPT port as a normal stepper is 200 full steps per revolution.

There is no white paper needed for the process, its quite simple. The white papers come in when you have to translate a distance into a step sequence with acceleration and deceleration ramps, etc.

If your drives take step/dir signals, it is almost a no brainer to hook it up to mach. Again if you tell us what drives you are using, the replies could be more helpful.

Matt
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-30-2008, 03:33 PM
 
Join Date: Sep 2008
Location: USA
Posts: 25
RogerTango is on a distinguished road

Matt,
Many thanks my friend, that has been VERY helpful! I understand much better.

Here is the controller I just bought:

http://www.easy-cnc.com/web/download...3Axis(NEW).pdf

Thanks,
Andrew
Reply With Quote

  #7   Ban this user!
Old 10-30-2008, 03:56 PM
 
Join Date: Oct 2006
Location: usa
Posts: 1
tokithecolector is on a distinguished road

http://electronics-diy.com/stepper_motors.php

this site uses 5 pins 4coil +ground. The example program is at the bottom but i couldn't find the source. I think he's asking how to code in say c++ or something to do the same thing or if there is any library of lpt/com port controls

http://www.vclcomponents.com/C_C__/M..._car-info.html <-I found this just now it gives the source under more info maybe you could adapt it

Is it an xyz table, gantry, or a drill on the end of an arm(that would be cool)
Reply With Quote

  #8   Ban this user!
Old 10-30-2008, 04:27 PM
 
Join Date: Sep 2008
Location: USA
Posts: 25
RogerTango is on a distinguished road

Actually, I program in VB or VB.NET, but your tracking-

The page on the stepper motors was very informative also.

I am still trying to get down to the nitty gritty-

On page 2 of the PDF I posted a link to, it shows X, Y and Z DIR and STEP.

I am kind of needing to know more... Ill also try google later this evening.

Thanks-
Andrew
Reply With Quote

  #9   Ban this user!
Old 10-30-2008, 06:17 PM
 
Join Date: Sep 2008
Location: Canada
Posts: 12
MachMan is on a distinguished road

I think you need to google "interfacing the parallel port".
PIN 2-9 are data out pins which give a binary representation of a
number between 0-255. If you output 0,(00000000) they will all be off and
if you output 255(11111111) the will all be on. Output '3' (00000011), pin 2&3
will be high so you get 1 step of X in DirX.
By changing this number you can do all kinds of things depending on
what those pins are connected to.
I've done alot of this in GW-Basic.
Good luck.
MM
Reply With Quote

  #10   Ban this user!
Old 10-30-2008, 08:18 PM
 
Join Date: Sep 2008
Location: USA
Posts: 25
RogerTango is on a distinguished road

MM, thanks for the help! Yes, I can program the LTP port, I built a little par. interface for the Commodore-64 a long time ago. All it did was cut on LEDs but I remember what I did.

I also found THIS page which appears extremely helpful in understanding WHAT I am supposed to send... PULSES! Not only what, but how-

http://www.fpga4fun.com/CNC2.html

It looked so good, I archived it here:
http://rogertango.com/pdf/fpga4fun_c...er control.pdf


I hope someone else finds it helpful also-
Andrew

(If interested, you can browse the index of: http://rogertango.com/pdf/ )
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-30-2008, 09:15 PM
 
Join Date: Sep 2008
Location: Canada
Posts: 12
MachMan is on a distinguished road

Excellent link.
Exactly what you want to do.
Keep pulsing(toggle between) (0)00000000 & (1)00000001 for X+ or
(2)00000010 & (3)00000011 for X- (keeping pin 2(DirX) high)
I've had to use FOR-NEXT loops in between to slow the computer down.
You could always buy TurboCNC(excellent software for the price) and not re-invent anything but you did say something about 'nitty gritty'.
MM
Reply With Quote

  #12   Ban this user!
Old 10-30-2008, 09:25 PM
 
Join Date: Sep 2008
Location: USA
Posts: 25
RogerTango is on a distinguished road

Yup, Nitty Gritty is my middle two names.

BTW, I just uploaded a _BUNCH_ of new PDFs in that directory you may want to take another peek...

My learning curve is seriously coming up real quick with you guy's help and a little more understanding for a solid foundation!

I have some ideas.... For one, a PCB specific plotter program for resist pens, Id like to write it all in VB... Import the image, do a few guides, save it in the program's own format for use later, and control the whole machine in one program. Well, its a concept anyway. It wont be elegant, but it should work.

Cheers,
Andrew
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
Need Help!- How do I put in an SAE #6 port? Driftwood General Metalwork Discussion 4 10-25-2008 02:10 PM
How do i add a USB Port to a TM-1? JHamdan78 Haas Mills 1 08-05-2008 01:29 PM
Need Help!- port jcochran PlasmaCam 2 03-28-2008 10:26 PM
USB port fourperf Haas Mills 4 02-02-2008 06:00 PM
PNP LPT Port studysession Mach Software (ArtSoft software) 15 12-29-2007 12:11 PM




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