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 12-09-2007, 03:25 PM
 
Join Date: Dec 2007
Location: usa
Posts: 13
Brian2007 is on a distinguished road
Help with Servo Control Design

I am looking for help with servo control design. Let me try to explain what I am trying to accomplish.

I am wanting to control the rotation of a servo motor in either/both half and full revolution steps. The input will be from encoders on the X and Y axis. Now it gets a little more complicated, when no motion is detected the servo should be at rest and when either or both encoders detect motion the servo should run in relation to both speed and distance. That is, selection needs to be provided as to how many revolutions are required per inch of distance be it in X, Y or a combination such as a circle. It gets better. The speed needs to keep up with the motion as it will vary but again the rotational count can not. The servo size is in the 1/2 to 3/4 hp range and the load is light and smooth.

Can anyone give me some direction on this? I'm stymied.

Any help will be greatly appreciated.
Thanks
Brian
Reply With Quote

  #2  
Old 12-09-2007, 04:59 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

Reading and re-reading the requirements, I gather you want a servo motor geared off of one or two separate encoders?
If this only involves one servo, but two axis feedback, is the servo expected to move both X & Y?
There is the capability in such systems offered by Galil Motion control of gearing of a servo which can be achieved from off of more than one encoder.
As well as electronic gearing, the electronic Cam feature can also be utilized.
Maybe a bit more detail as to what the mechanism involves would help.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 12-09-2007, 06:08 PM
 
Join Date: Dec 2007
Location: usa
Posts: 13
Brian2007 is on a distinguished road
More details

Ok Al your right, I was vague. There needs to be two encoders one for the x axis and another for the y. If you have ever seen a quilting machine you will know where I'm going with this. If not think of a machine that can travel freely both in the x and y axis at the same time, thus getting input from both encoders. This input needs to be converted into output for the motor. If the machine moves 1" in any direction the motor needs to rotate a determined number of times, regardless of speed of travel. If more information is required I will do my best to provide it.

Thanks

Brian
Reply With Quote

  #4  
Old 12-10-2007, 08:13 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

I am not clear on what is driving and what is being driven?
Are the encoders being driven independant of the motor?
Is it anything like this? http://www.galilmc.com/support/motio...t_stitcher.swf
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 01-03-2008, 08:26 AM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road

I think you may need to take both X and Y encoder outputs into a computing circuit to achieve this function. If you have access to the drive pulses (step / direction ?) for the X and Y axis you could use that rather than seperate encoders. I am assuming here that you want equal length "stitches" produced with the servo. If X moves +1" make 10 stitches, if Y moves +1 " make 10 stitches, if both X and Y move +1" make 14.14 stitches. Am I correct in my assumptions ?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-03-2008, 06:14 PM
 
Join Date: Dec 2007
Location: usa
Posts: 13
Brian2007 is on a distinguished road

I agree that the encoder must be input to a microprocessor. Your are partially correct if x is +1 it should make 10 stitches (or what ever it is set to), if y is +1 again you should get 10 stitches, now if both x and y move on a diagonal +1 you still get 10 stitches. Here is a link to one of the best in the business http://www.intellistitch.com/ this unit has loads of features. some of which I would not need, but maybe it will better explain what I would like to accomplish.

Thanks
Reply With Quote

  #7   Ban this user!
Old 01-04-2008, 07:18 AM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road
Technical

My wife and I were looking at machines like this at the state fair a couple of years ago and we actually considered buying one. Then other things got in the way... grandbaby... cruises... work... etc. I remeber being interested in the method of stitch regulation (being an electronics tech) and realized that the motor must be a DC servomotor under computer control. I looked at the intellistitch site and now understand I think what you are working toward. As described here http://www.nolting.com/article.php?i=6 they have 3 encoders on the machine, one one each axis and a third on the motor. The one on the motor is used to control it's stopping position. Some A/B encoders have an additional output that provides a pulse just once every revolution as an index pulse. That would be good for auto setting the needle up position. Now to the X/Y. If you travel the frame at a 45 degree angle for 1" at a 10 stitch/inch setting you should get 10 stitches. When you make that 45 degree move for 1", each encoder see's only .707 inches movement. I'll have to think on this one for a bit... controlling a machine that is driven in the X/Y axis so that the feed rate (velocity) is constant is one thing... sensing uncontolled movement in the X/Y and deriving velocity is another. Gotta go do some work.

Steve
Reply With Quote

  #8   Ban this user!
Old 01-04-2008, 10:58 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080104-1153 EST USA

D = sq-rt ( X squared + Y squared )

Each time X or Y increments recalculate D. You might apply a scale factor to D. In whatever increments D works in you move when that incremental change occurs.

.
Reply With Quote

  #9   Ban this user!
Old 01-04-2008, 05:13 PM
 
Join Date: Dec 2007
Location: usa
Posts: 13
Brian2007 is on a distinguished road

Thanks Guys,

As you can tell electronics is not my strong point, I am working on a machine design of my own and have most of the CAD work done, down to doing the tedious part of double checking the dimensions and doing revisions. Hope to get prints to the machine shop later this month. I really do want to try and incorporate a form of stitch regulation.
Reply With Quote

  #10   Ban this user!
Old 01-05-2008, 05:15 PM
 
Join Date: Dec 2007
Location: usa
Posts: 13
Brian2007 is on a distinguished road

Here is a thought, I realize that it will take a microprocessor to make this thing work. Would it not be possible to input info from the encoders to a low end pc and let it crunch the numbers? Of course there will be the need for software, but won't any processor have to have instructions? Ok I'll get back to the mechanical design end of this thing, I understand that.

Thanks
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-05-2008, 05:48 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Cool Not too hard.

Gar has the right idea.
You need some form of numerical processor. You could do analog, but thats last century stuff.

1). Get the X and Y encoder counts/direction/etc into the processor.
2). Calulate H = sqrt (X squared + Y squared)
3). Stitches = H multiplied by a number related to stitch length required.
4). Digital to analog conversion output to control speed of motor proportional to the error from Stiches required minus stiches done.
5). Output to enable motor to be driven.
6). An input pulse for each stitch done.
7). The Cpu enables the motor output until the number of stitches have completed.

Something like that will get it going.
Figure out the easiest way to read the encoders at the maximum speed.
A PC will end up the most expedient, unless you have a microprocessor development system.

A few things to consider.
Is the table is pushed manually, or is it to be driven, like with Mach3
If it is driven, then the maximum speed of movement can be controlled.
If manual, what stops it being fed too fast.

If it was all driven with Mach3 in CNC mode, a whole new strategy is needed.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #12   Ban this user!
Old 01-05-2008, 06:14 PM
 
Join Date: Dec 2007
Location: usa
Posts: 13
Brian2007 is on a distinguished road

Thanks neilw20,

Ok, the machine is manually powered and yes you can over run the regulation at which time an alarm sounds. An optical encoder on the motor shaft or one of the driven shafts can generate the needed feedback counts for completed stitches, it would keep track of needle position. A servo motor will have to be used that is for sure. When I think about it either the upper or lower machine shaft would be ideal for a position/count encoder as either will turn 1 revolution per stitch and the maximum rpm will not be over 2000. I will admit that I am relying on the genius of you all, I can handle thrust loading, gear box design and the stresses involved and only have an overall view of the electronics involved in this venture.

Thanks Again
Brian
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
Western Servo Design LDH-S2-4/5 cncclay Servo Motors and Drives 0 03-17-2007 10:53 AM
Western Servo Design LDH-S2 cncclay Mastercam 0 03-16-2007 03:25 PM
Overall design and PID control. VNR LinuxCNC (formerly EMC2) 1 06-05-2006 03:49 AM
Isel EP-1090 control and design software Riffraff2 General CNC (Mill and Lathe) Control Software (NC) 7 05-03-2006 07:46 AM
Rutex control box design trickey19 Servo Drives 7 04-25-2005 03:13 PM




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