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 03-07-2007, 12:02 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road
Pluto Servo Almost working Encoder Issues

Hello once again

I thought I would post how the Pluto servo setup has been going and see if anyone else has any suggestions as to some issues I’ve been having.

Samco offered some great suggestions and helped me out allot to get this far. See thread EMC2 -- Pluto Servo -- Need Help
Right now I have a full 3axis setup in the HAL file and can get the motors to servo...almost.

This is where I’m running in some weird issues. I have been experiencing some difficulties in getting constant results. I know that my hardware setup is fine and the equipment is working. Encoders are ok as well as the motors. The only issue seems to be with the encoder loosing counts. I can turn the motor by hand and it starts to count ... I go from 0 to lets say .400" as I’m turning to make the number larger the readout drops by like .200" and then keeps counting. I fire up the system and try to run it but since the feedback from the encoder is jumping all over the place the motor doesn’t servo properly and starts to bounce around.

I did manage to get it working once however when I came back the next day it seemed to be counting funny again. I’m really not sure whats the issue but any suggestions would be great.

Thanks
Tony
Reply With Quote

  #2   Ban this user!
Old 03-07-2007, 03:48 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

is the pluto hooked directly into the printer port - or with an extention cable? if an extention cable - try hooking the pluto directly into the printer port. I had issues with odd encoder counts that seemed to be caused by the cable I had between the printer port and the pluto.

sam
Reply With Quote

  #3   Ban this user!
Old 03-07-2007, 04:22 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road

Sam

The Pluto is connected directly to the Parallel port. I have the encoder and motor wires soldered directly to the Pluto. I dont have an extension cable or anything just the wires and they are only a few feet long if that. Any other suggestions?

thanks again
Tony
Reply With Quote

  #4   Ban this user!
Old 03-07-2007, 10:29 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

Ok. I showed this thread to jepler (the pluto firmware/hal writer) and he started to think maybe there was a problem. They had run into a problem that 'went away" which acted like your issue. He took a look at it and thinks he has fixed it. He sent the firmware to me and I was able to test it with the extention cable between the printer port and the pluto. It works now - with or without the cable.

Now comes the issue. For you to get the firmware you need to either wait for the next stable release (they are thinking within this month) then you will get a notice in ubutnu that there are updates.

Or

if your comfortable with ubuntu you could make a 'run in place' which would have the latest (sometimes untested) code. Here http://wiki.linuxcnc.org/cgi-bin/emc...nstalling_EMC2

this is in terminal

3. On Ubuntu 5.10 and 6.06 from source
3.1. Preparing Ubuntu to compile emc2
If you wish to build emc2 from source, follow the steps given below. Indented text that looks

like the text on this line

is text that you type into the terminal window.

After following the [basic instructions], use apt to install additional packages required to rebuild emc2:

sudo apt-get build-dep emc2

3.2. Getting the source with CVS
EMC2 source is stored in a system called CVS. Before you can get a CVS copy of EMC2 from our cvs you will need to install it.

sudo apt-get install cvs

To get the latest released version of emc2,

export CVS_RSH=ssh
cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -rv2_1_branch -d emc2.1-branch emc2

CVS has more instructions, such as how to update your version of emc2 after other developers have made improvements.

UPDATING your configuration files is necessary to use configuration files from 2.0.x with version 2.1.x. UpdatingConfigurationsForDevelopmentVersions is necessary to use configuration files from 2.0.x or 2.1.x with the CVS versions.

3.3. Building emc2 (realtime)
Run these commands in the top directory (the emc2.1.1, emc2.1-branch or emc2-head created above):

cd src
./configure --enable-run-in-place
make && sudo make setuid

the last command may take several minutes to complete.
then you would go into the emc2.1-branch directory and enter

scripts/emc

any questions - just ask
Reply With Quote

  #5   Ban this user!
Old 03-10-2007, 11:41 AM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road

Sam

Thanks for the reply and finding out the issue. I have tried to upgrade EMC2 from the CVS and it seems sometimes that it doesn't work correctly. I will probally end up waiting till they have an upgrade on the Linuxcnc site and then give it a try. I'll keep you posted to the results.

Thanks again
tony
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-10-2007, 12:48 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

you can always get on irc.freenode.net #emc channel and they can walk you thru any issues.

You can use the embeded java client here
http://www.linuxcnc.org/index.php?op...emid=8&lang=en

sam
Reply With Quote

  #7   Ban this user!
Old 03-13-2007, 11:45 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

I hooked a 1024 line encoder to the pluto and spun it in the drill press at 6500rpm.. Kept position perfectly. I didn't go any faster as it was a bit scary at that. (I will probably only max out at 1500rpm at the most)

that is 443733 edges per second.. Cool.

sam
Reply With Quote

  #8   Ban this user!
Old 03-15-2007, 12:07 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road

I did all the updates and everything seems to be working correctly.

Thanks again for the help.
Reply With Quote

  #9   Ban this user!
Old 03-15-2007, 12:15 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

pictures?

sam
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
EMC2 -- Pluto Servo -- Need Help TZak LinuxCNC (formerly EMC2) 4 03-02-2007 01:54 PM
encoder issues rutexus Servo Drives 13 05-21-2006 06:49 PM




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