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 > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-07-2008, 01:53 PM
 
Join Date: Jan 2007
Location: Slovenia
Posts: 71
visky is on a distinguished road
Configuring 5i20 files for lathe

I am going to use mesa 5i20 card and 7i33T analog servo amp.interface (+/-10V) card ,7i37T io (16input and 8 output).

I need help to config default configuration files with 3 axis to two axis lathe.
X and Z axis

Encoders are 2500lines diferential. Spindle is 5mm/rev pitch.
resolution is 1000pulses/mm.

Help me modify ini file for lathe machine.
Attached Files
File Type: zip m5i20.zip‎ (3.9 KB, 64 views)
Reply With Quote

  #2   Ban this user!
Old 08-05-2008, 10:56 AM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

visky,

Do you still need help with this?

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #3   Ban this user!
Old 08-15-2008, 04:04 AM
 
Join Date: Jan 2007
Location: Slovenia
Posts: 71
visky is on a distinguished road

I didn't work on it few weeks. Now i starded to finished it. I allredy connect Z axis encoder and it works

There is an enable output signal ( +5V ) , this signal i would use to enable contactors for motor amplifiers.

If i would have a problems ,i would post them.
Reply With Quote

  #4   Ban this user!
Old 08-20-2008, 01:34 PM
 
Join Date: Jan 2007
Location: Slovenia
Posts: 71
visky is on a distinguished road

X and Z axes are moving. I have got a small ( big) problem with PID configurations. Because these are analog drivers when i enable them they are slowly,slowly rotor moveing (: .What i have to do and probe to hold motor and it wount rotate any more? What to do with PID, gain etc.

Another question:

I am useing only two analog output 0 and 2. Can i configure 1 ( Y axis) to be a spindle +/-10V control? I will have frequency inverter for 3 phase AC motor which accept -10 to +10 analog input .
Reply With Quote

  #5   Ban this user!
Old 08-20-2008, 03:44 PM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

Originally Posted by visky View Post
X and Z axes are moving. I have got a small ( big) problem with PID configurations. Because these are analog drivers when i enable them they are slowly,slowly rotor moveing (: .What i have to do and probe to hold motor and it wount rotate any more? What to do with PID, gain etc.
There are quite a few parts to answering this. If the motors rotate slowly as soon as the amps are enabled, you probably have to tune these amps before you start with EMC2 tuning. Many drives have what they call a bias or zero adjust to allow you to stop rotation when no motion signal is applied and the position feedback loop is open. Turning this pot should let the motor sit without rotating. I tend to turn this after I've shorted between the velocity command screws or pins.

There is a brief introduction to EMC2 PID tuning in the 2.2.6 Integrator Manual about page 192. If you have the current EMC2 release on your PC there it will be available under the Applications -> CNC menu. The actual numbers for P, I, D, FF0, FF1, and FF2 will depend upon the nature of the drive amp and it's control mode.

The EMC2 wiki also has a page available at Tuning_EMC2/HAL_PID_Loops. There are several references there that will help.

There are also IRC logs chat-2004-09-26. and chat-2004-09-19

The EMC2 tools that I use for servo tuning include Halscope, Calibration, and a graphical interface. If you are using the AXIS GUI you'll find these tools under the Machine menu. You can read some about these tools in the manuals available with the release.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-29-2008, 12:31 PM
 
Join Date: Jan 2007
Location: Slovenia
Posts: 71
visky is on a distinguished road

I have got problems with PID configuration. In the integrator manual i notice that first i have to tune P until it starts to oscilate. Ok,I did that. Than write critical gain Kc and oscillation period Pc. Where can i see this ?

Is it possible to see a graph in halscope -PID tunnings? If so, how?

Write me yours PID tunnings parameters and i would check it on my machine.

My drivers are configured in "IR compensation mode". In this mode they have high torque at 0 speed and they can be used for open loop or closed loop mode.
Reply With Quote

  #7   Ban this user!
Old 08-29-2008, 04:43 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

visky, if your using axis there is a servo configuration window where you can test your settings. It is in Machine/Configuration or something like that.

John
Reply With Quote

  #8   Ban this user!
Old 08-30-2008, 08:41 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

In the AXIS display it is called calibration. Both TK graphical interfaces also allow access to the same servo calibration display. You may have to look around in the menus but it should be under Settings.

Servo tuning is not a trivial task and PID values that I set up for something like a Mesa 100 watt driver card will be far different from those I'd set up for a Mesa analog system. Most every setup is unique. Often the tuning parameters will be different from one motor to another on the same machine.

The tuning formula suggested on that Integrator Manual page is only one of many. Each will give different numbers. My own tendency is to tune by eye and ear rather than formula. Once the motor oscillates a bit, add a little I, start with 1 and see if it reduces the speed of the hunting. If so add a bit more. When you get it settled down, you'll find that it will be a bit slow accelerating so you'll need to add D. Eventually you'll want to add a bit of FF as well but you can see the effect of these variables better with halscope.

I start halscope, connect it's sweep to the servo thread, and watch PID.#.error and axis.#.joint-pos-fb. The feedback will sweep quite a range so I tend to command relatively short motions using MDI. By separating the position of the two sweeps I can see the relationship between error and position.

Change only one variable at a time and make a note of the old value, the new value, and the effect of the change. That servo configuration page will allow you to switch between values quickly with the Test and Cancel buttons if the motor misbehaves.

I've been known to spend hours playing with PID tuning so don't expect to find perfect numbers on a first try.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone with Mesa 5I20 and 7I33 stories? karl1 LinuxCNC (formerly EMC2) 15 12-13-2008 11:28 PM
Spindle Encoder to Mesa 5i20 RogerN LinuxCNC (formerly EMC2) 3 10-17-2008 07:55 AM
HELP to Setup - Mesa 5I20 + Joypad.hal - TZak LinuxCNC (formerly EMC2) 0 02-02-2008 04:43 PM
Mesa 5i20 and EMC daedalus LinuxCNC (formerly EMC2) 6 06-27-2007 02:19 PM
Lathe chuck files wanted deon Mastercam 0 02-26-2005 10:55 AM




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