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 > Mach Software (ArtSoft software) > Mach Mill



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-06-2009, 09:31 AM
 
Join Date: Jul 2008
Location: Canada
Posts: 11
Nick_Black is on a distinguished road
servo setup help

hey i 'think' this is my first post here (I had an account for a while.. but havent been here for a long time.... anyways)

since i'm making my own servo is it possible to set up mach 3 to:
(exaple)
send a 5ms long pulse(s) to move forward (at least 5ms between pulses)
and a 3ms long pulse(s) to move backwards (at least 7ms between pulses)
no pulse, no
(and i might.. or might not have a feedback signal dunno yet)

is this possible to do? and if so, how would i go about setting it up in mach 3?

cheers!

Nick_Black
Reply With Quote

  #2   Ban this user!
Old 08-06-2009, 04:10 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,879
Torchhead is on a distinguished road

The DIR pulse (actually not a pulse at all but a logic level just changes from one state to another so for one dir it high and the other (ont he same axis) it's low. If you need a "one-shot" event (pulse of a given length) rather than a true DIR signal than that would have to come from hardware not the MACH output. The outputs on MACH are not configurable as to pulse duration except over a narrow range of 1 to 15 usec. 5 ms is half a day in the CNC pulse world (:-)
Reply With Quote

  #3   Ban this user!
Old 08-06-2009, 04:19 PM
 
Join Date: Jul 2008
Location: Canada
Posts: 11
Nick_Black is on a distinguished road

ouch, that's fast, that probably explains why I don't see any pulses via a LED indicator. and it would probably be pushing it to use a 555 timer as a clock in the servo driver...

edit: if i understand you correctly the dir pulse only kicks once to tell the controller to switch directions?
edit2: also, the 'downtime' between pulses, is that also in such small incroments? becouse i was thinking of haveing only about 32 pulses pr rotation, on a fairly slow moveing shaft (200 rpm ish) which is only 106.6' 'steps' pr second...
Reply With Quote

  #4   Ban this user!
Old 08-06-2009, 05:57 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,879
Torchhead is on a distinguished road

Most servo controls need high pulse rates of several thousand (up to 200,000) per second depending on the CPR (line count) of the encoder. You have to present 4 pulses from the source for every line on the encoder. 5ms = 200 pulses per second. On a motor with a 500 line encoder that only spins it at 6 RPM.

I don't like to discourage innovation but before you jump off and design your own servo controller you need to research the threads here (for almost two years) about the DIY servo project (UHU) and similar threads. Then you have to ask yourself: Is it better to just buy one for $114.00 (for brushed DC servo). Learning projects are one thing. Teaching yourself power electronics from ground zero is more like a career!

I know what I am doing in switching power electronics and high frequency power conversion as well as embedded processor design. I have the facilities to design, test, and manufacturer stepper or servo drives. I would not even start to go down that road when there are viable low cost solutions you can have delivered to your door in days and have running shortly thereafter.

A 555 is a poor VCO unless you hang some external components on it. Even then a better choice is a the 4046 CMOS chip that has a VCO that will output a 50% duty cycle wave form over several decades with one cap on one Pot.

TOM Caudle
www.CandCNC.com
Reply With Quote

  #5   Ban this user!
Old 08-06-2009, 06:28 PM
 
Join Date: Jul 2008
Location: Canada
Posts: 11
Nick_Black is on a distinguished road

sorry that this thread seems to have strayed a bit from mach to electronics..

and thank you for the useful info XD the 5ms i mentioned in my first post were just numbers i picked out of thin air to use as an example.

i have a plan that i 'should' be able to build a servo+ controller for ~$10-$20
(mind you it won't be a very "high" torque motor, but should be enough torque for a slow/small cnc)

i was hoping mach could do a lot of more specific controls saving the amount of work/expenses i need to do on the hardware side.

but all that aside, to a mach related question,
how does mach adjust rpm?

I'm hoping like this:

**X******X

_I--I_____I--I____
*****Y******Y

X = pulse (step (1usec) , or 'change direction'(5 usec) )
Y = down time between pulses, longer for slower RPM's

is this right? or does Mach 3 adjust RPM another way?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-06-2009, 06:44 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

You might want to look at emc2. It is a linux based open source machine control software. It will output pwm and able to read encoders. (even through the printer port up to around 50khz or more depending on the computer.)

http://linuxcnc.org/
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl

you could do something like

printer port outputs pwm -> simple h-bridge -> servo -> encoder -> printer port.
closed loop.
like this

sam
Reply With Quote

  #7   Ban this user!
Old 08-06-2009, 06:54 PM
 
Join Date: Jul 2008
Location: Canada
Posts: 11
Nick_Black is on a distinguished road

well, i actually already programed (for the most part.. still adding things to it) a piece of software that will draw (CAD) convert to "G-code" (not really, it's more like my own invented language) and output/input to the CNC mill. (I used Qbasic.. NOT a good programming language to do it in fyi )

it's just i wanted to build my cnc to be compatible with all (or at least most common) software, incase i wanted to expand to more complex things.

and pulse-width modulation is actually a good point, it hadn't crossed my mind yet thank you XD


(I got inspired by this machine (this is a difrent VID than i originally saw.. but same machine)

http://www.youtube.com/watch?v=ulXIAf7PQqY


(I don't know how 2 imbed Vids on this forum..)

Last edited by Nick_Black; 08-06-2009 at 07:46 PM.
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
setup Galil Servo Karl_T Controller Cards 13 11-19-2008 02:25 PM
remote servo setup. fred friendly Want To Buy...Need help! 6 09-05-2008 08:48 AM
AB Servo AC Motor Setup Hydrodynamic Granite Devices 2 05-16-2008 09:12 PM
Need help with servo/drive setup CreativeOffroad Machine Problems, Solutions , Wireless DNC, serial port 19 02-21-2007 12:34 AM
Help with AC servo setup h3ndrix General Electronics Discussion 9 04-01-2004 02:53 AM




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