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-01-2007, 06:19 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road
EMC2 -- Pluto Servo -- Need Help

First time post.

I have been experimenting with EMC2 using servos. I have been trying to get a 3axis system buildt but one step at a time. So far I have managed to get one Axis with a full servo using the ETCH.hal example. This has worked well however the feedback from the computer is not as fast as I would like and the motors end up taking off. I looked into some options and found the Pluto Servo board http://www.knjn.com/ShopBoards_Parallel.html

I ordered it and installed the firmware "pluto_servo.rbf" which is in the new version of EMC2 ver 2.1.1. I have got AXIS to load, however when I connect the encoder signals I get no feedback. And nothing counts on the screen. Im not really sure if its the wiring I am using the diagram found here http://emergent.unpythonic.net/files...uto_servo.html . I connected the first inputs QA0,QB0 GND for the encoders and UP0,DN0 for the motor.

One thing which might be the problem is the HAL file I'm working with. It is the included one in EMC2 for the pluto servo. Im not that great at the writing of the HAL files i managed to modify the ETCH to get it to work but the Pluto on is another story. I know that the Pluto Servo Example is for a lathe but the inputs and motor signals should be the same for the most part for testing.

If anyone has any experience in writing a HAL file or has written a 3axis one for the pluto any insight would be greatly appreciated. I'm not really sure how to setup this system but I wanted to keep making progress.

Thanks
Reply With Quote

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

couple things to check
-Are you hooking power to the encoder - you say you hooked up a,b and gnd.
-Are your encoders open collector? if so you will need pull up resisters on a and b.
-I have had issues with my portable that I have to hook the pluto directly into the printer port. Any type of extention cable causes it to not work or not work correctly.
-you could try loadrt pluto_servo epp_wide=0 <- it defaults to 1 and it could be your hardware isn't 'wide'
-On that note - is your printer port epp compatable - check your bios

I have a test hal file that will run a sine wave into pwm0 - pwm0 is also hooked to the power led on the pluto - it will get brighter and dimmer. It will run 2 halmeters - one will show the value going to the pwm0 pin and also the count from your encoder hooked to encoder0.
http://www.electronicsam.com/images/...tart/pluto.hal
save it to your home directory
then open terminal and type..
halrun -I pluto.hal

sam
Reply With Quote

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

Sam

Thanks for the reply.

Ok I managed to get the encoder counting ... my mistake in not changing the parallel port to EPP mode in the BIOS. I tried the pluto.hal file again in AXIS and it works for the counting. I didn't need to change the EPP mode in the HAL file like you suggested.
The motor is another story. I looked in the pluto.hal file and it seems to me that the PWM on the motor is running in "up/down" mode and I need it to run in "pwm/dir". I've looked in the documentation and it seems that it can run in this setup. Again I think that this is a HAL programming challenge on my part, if you have any setups running in this mode or can tell me how to change it that would be great. Just out of curiosity are you running a 3axis machine setup? How is your machine setup?

Any other input would be great as now im one set closer to getting this to work.

Thanks again
Tony
Reply With Quote

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

Yes. The pluto defaults to up/down mode. to change it to pwm+direction you need to add these lines to your hal file.

setp pluto-servo.pwm-0-pwmdir TRUE (for each pwm out 0,1,2,3)

I don't have anything setup yet. Have really just been testing it. If you get stuck - I would get on irc.freenode.net channel #emc. Actaully if you go to http://www.linuxcnc.org/index.php?op...emid=8&lang=en
You can use the java irc client. Usually there is someone on that can help you.

I would start with an existing servo config and modify it to work with the pluto.

sam
Reply With Quote

  #5   Ban this user!
Old 03-02-2007, 01:54 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road

Sam

I managed to get the PWM + Dir through the Terminal Window but i'll make a line in the HAL file.

I did connect everything and it seems that I can get the motor to servo. The only problem I have found now is the encoder doesn't seem to keep up. I can turn it by hand and see it change then it seems to jump up in counts. Not really sure whats going on? Things are almost working now I just need to figure out this encoder problem.

thanks again
Reply With Quote

Sponsored Links
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 configuration acondit LinuxCNC (formerly EMC2) 6 03-10-2012 11:36 PM
Emc2 sdantonio Mach Mill 2 02-05-2007 02:26 PM
emc2 -hal*? essa LinuxCNC (formerly EMC2) 3 05-27-2006 12:06 PM
emc2 heilcnc LinuxCNC (formerly EMC2) 2 05-23-2006 05:03 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