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 10-07-2009, 10:51 PM
jvanatta's Avatar  
Join Date: Aug 2005
Location: USA
Posts: 5
jvanatta is on a distinguished road
EMC2 Fallowing errors, Supermax/Anilam retrofit

I am having trouble with "fallowing errors" on my Z axis and I am running out of hair to pull out.

I have retrofitted an old Anilam Crusader M to EMC2 using the fallowing hardware configuration.
5I23 i/o card
7I33T servo interface.
Z axis
Encoder is Renco 662237-72 and is mounted on a .200" per/rev ball screw
Drive is Westamp 30060-75 velocity control with resolver feedback
Motor is SEM MT304-59
Motor sheave is 10 tooth
Ball screw sheave is 18 tooth

These are some pics of my machine.







This is my Z axis parameters file

#Z AXIS
[AXIS_2]

TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 2.8
MAX_ACCELERATION = 28.0
BACKLASH = 0.000
INPUT_SCALE = -2540
OUTPUT_SCALE = 1
OUTPUT_OFFSET = 0.0
MIN_LIMIT = -6.0
MAX_LIMIT = +6.0
FERROR = 50.0
MIN_FERROR = 0.01
HOME_OFFSET = 0.10
HOME_SEARCH_VEL = 0.10
HOME_LATCH_VEL = -0.01
HOME_USE_INDEX = YES
HOME_IGNORE_LIMITS = YES
MAX_OUTPUT = 0.0
# PID tuning params
DEADBAND = 0.000015
P = 10
I = 0
D = 0
FF0 = 0
FF1 = 0
FF2 = 0
BIAS = 0
The idea of this project is to use the Mesa boards with the existing linear encoders and servo motor/drives. I have discovered that to use linear encoders I will have to set up a dual feedback system,Not interested in doing that right now. So I am trying to set up my Z axis with one encoder on the the ball screw. If this works I will install encoders on the x and y axis ball screws. I prefer not to mount the encoders on the motors due to space constraints.

Please advise before I go bald!

John
Reply With Quote

  #2   Ban this user!
Old 10-08-2009, 10:00 AM
 
Join Date: Feb 2008
Location: USA
Posts: 106
PCW_MESA is on a distinguished road

Originally Posted by jvanatta View Post
I am having trouble with "fallowing errors" on my Z axis and I am running out of hair to pull out.

I have retrofitted an old Anilam Crusader M to EMC2 using the fallowing hardware configuration.
5I23 i/o card
7I33T servo interface.
Z axis
Encoder is Renco 662237-72 and is mounted on a .200" per/rev ball screw
Drive is Westamp 30060-75 velocity control with resolver feedback
Motor is SEM MT304-59
Motor sheave is 10 tooth
Ball screw sheave is 18 tooth

These are some pics of my machine.







This is my Z axis parameters file



The idea of this project is to use the Mesa boards with the existing linear encoders and servo motor/drives. I have discovered that to use linear encoders I will have to set up a dual feedback system,Not interested in doing that right now. So I am trying to set up my Z axis with one encoder on the the ball screw. If this works I will install encoders on the x and y axis ball screws. I prefer not to mount the encoders on the motors due to space constraints.

Please advise before I go bald!

John

A following error is a very general indication that the servo system is not working or not working well (in other words the actual motor shaft position is not following the commanded position within the ferror limits. To get specific help you will have to post more detailed information about the current Z axis behavior. A verbal description would help:

Does the servo hold position (resist applied force) and move when commanded?

Do the FERRORs happen at low or high speed moves?

Does the servo system oscillate when at rest?


The best information to diagnose the problem would be a HALScope plot of commanded position and feedback position from the encoder when doing a quick "step" , that is a short move at maximum accleration.
Reply With Quote

  #3   Ban this user!
Old 10-08-2009, 01:07 PM
 
Join Date: Nov 2006
Location: usa
Posts: 4
ramac is on a distinguished road

im afraid i can't help you with your problem as i am just starting to look at a mesa/emc conversion. I am hoping maybe you can help me get started though as it looks to me you have done exactly what im hoping to do, convert crusader m to emc. I see how you mounted ti 7i33, but what is the board mounted above it and where is the 5i20?
Reply With Quote

  #4   Ban this user!
Old 10-08-2009, 02:31 PM
jvanatta's Avatar  
Join Date: Aug 2005
Location: USA
Posts: 5
jvanatta is on a distinguished road

A following error is a very general indication that the servo system is not working or not working well (in other words the actual motor shaft position is not following the commanded position within the ferror limits. To get specific help you will have to post more detailed information about the current Z axis behavior. A verbal description would help:

Does the servo hold position (resist applied force) and move when commanded?

Do the FERRORs happen at low or high speed moves?

Does the servo system oscillate when at rest?


The best information to diagnose the problem would be a HALScope plot of commanded position and feedback position from the encoder when doing a quick "step" , that is a short move at maximum accleration.
This is the scope of the z axis moving both directions with JOG.



The motor does resist movement
Ferrors happen during commanded moves and jogs both directions.
Servo system does not oscillate at rest.
Reply With Quote

  #5   Ban this user!
Old 10-08-2009, 04:00 PM
jvanatta's Avatar  
Join Date: Aug 2005
Location: USA
Posts: 5
jvanatta is on a distinguished road

Originally Posted by ramac View Post
im afraid i can't help you with your problem as i am just starting to look at a mesa/emc conversion. I am hoping maybe you can help me get started though as it looks to me you have done exactly what im hoping to do, convert crusader m to emc. I see how you mounted ti 7i33, but what is the board mounted above it and where is the 5i20?

The board above the 7I33 is a micro ATX computer.
The 5I23 is mounted in the PCI slot on the motherboard. I built a bracket to support the card. I mounted the computer and the 7I33 with stand offs from Allied electronics directly to the enclosure back board. The computer and I/O cards are powered from a basic computer power supply. Between the mother board and power supply is the MESA CFADPT10 SATA compact flash adapter. This holds my hard drive which is a 4g CF card. So far this setup is stable.

Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-08-2009, 06:08 PM
 
Join Date: Nov 2006
Location: usa
Posts: 4
ramac is on a distinguished road

I really appreciate your help getting me started. Im a machinist by trade and any electronics skills have been self taught as needed in order to to keep making parts! I am anxious to get started on this project though, it should be a great learning experience. guess Ill just order the mesa boards and download EMC and see what I can do with it. Your problem with linear encoder feedback will also be an issue for me since I have the same setup. So ill be watching for your posts. Thanks again
Reply With Quote

  #7   Ban this user!
Old 10-08-2009, 07:19 PM
 
Join Date: Oct 2006
Location: USA
Posts: 205
123CNC is on a distinguished road
troubleshooting

First, I would assume the Westamp drives and motors are all original and as OEM installed, and therefore well tuned at the drive.

If this is the case, I would temporarily increase my following error limits, FERROR = 500.0
MIN_FERROR = 01.00
and hand drive the z to mid travel. Then jog or MDI the z down 0.5 (in the minus (-) direction) and see which way it actually moves. If it goes up (positive) instead, problem solved. Either rewire your encoder A/B channels, flip the analog signal to the amp, change the sign or your axis scale (-2540 to +2540), or change the direction in your hal pin connections.

If the drives and or motors are all newly added, and direction is correct, you may need to tune your amps/drives as well.

PS I like your PC flashcard setup.
Reply With Quote

  #8   Ban this user!
Old 10-08-2009, 10:21 PM
jvanatta's Avatar  
Join Date: Aug 2005
Location: USA
Posts: 5
jvanatta is on a distinguished road

Originally Posted by 123CNC View Post
First, I would assume the Westamp drives and motors are all original and as OEM installed, and therefore well tuned at the drive.

If this is the case, I would temporarily increase my following error limits, FERROR = 500.0
MIN_FERROR = 01.00
and hand drive the z to mid travel. Then jog or MDI the z down 0.5 (in the minus (-) direction) and see which way it actually moves. If it goes up (positive) instead, problem solved. Either rewire your encoder A/B channels, flip the analog signal to the amp, change the sign or your axis scale (-2540 to +2540), or change the direction in your hal pin connections.

If the drives and or motors are all newly added, and direction is correct, you may need to tune your amps/drives as well.

PS I like your PC flashcard setup.
Hello 123CNC

Awesome! It works well! Thank you!

Is there a specific or general calculation for FERROR?

I set the FERROR and MIN_ERROR just like you said and it first ran away but I changed the sign on the axis scale and the z axis works like it should except it shows the positive direction as down. Any ideas an how to correct it? Change the hal pin?

I think I will need to re tune the amps and drives at some point because the motor is experiencing some instability in one direction but I am happy with the results so far. Not bad for a 20yr old drive!
I moved the z axis .100" in opposite directions and ruffly measured a backlash of .0085. I set the comp and now it's within .001". I love this stuff!

Tomorrow I order two more encoders for the x and y ball screws. Is there any reason I should not stay with 127 cont/rev encoders?

Again, thank you for the information!

John
Owasso OK
Reply With Quote

  #9   Ban this user!
Old 10-09-2009, 04:07 AM
 
Join Date: Oct 2006
Location: USA
Posts: 205
123CNC is on a distinguished road
E-stop

I know I thought about it when previously posting, but failed to mention be ready with the E-stop when disabling some of the automated stop features such as following error. Its also nice to check your other safeties such as soft limits and hard limits prior to such 'seeing if she is in/out of control.'

Regarding setting FERROR and min-ferror, the EMC2 default values are generally a good starting point, and then it is basically trial and error. In Axis IIRC you can play around with this values directly (meaning it will adjust your ini file) through the axis calibration menu. Otherwise, you may want to just try some no-load (no spindle) travelling and find the threshold where your machine trips over its own limitations, manually adjusting your ini settings. Adjust slightly back from the unstable/stable value in your ini and run with it. You may need to readjust some if under load you experience to much nuisance interruption or not enough stopping before its too late. Try to error on the side of caution.

Regarding encoder counts, I'll try not to offend the disciples of 'as much as you can / more is better / or Supersize its.' A general rule of thumb in calibration is to use a reference standard at least 4 times greater than the desired accuracy. With a 127 quad encoder, and if 0.001" is your desired end point your at about 2.5 times greater. Not bad, but 200 would get you closer to 4, 250 closer to 5. You may want to look at some adjustable resolution encoders, I think Digi-key carries some. You may want to search the zone for specific mfg/model.

Last, regarding positive down. It sounds like you now have the drive and encoder in agreement with one another, but they disagree with your third party - Axis. You could soft change it with your hal pin assignments, or hard change it by now reversing both your analog drive signal AND encoder feedback.
Reply With Quote

  #10   Ban this user!
Old 10-13-2009, 12:18 PM
jvanatta's Avatar  
Join Date: Aug 2005
Location: USA
Posts: 5
jvanatta is on a distinguished road

123CNC

Last, regarding positive down. It sounds like you now have the drive and encoder in agreement with one another, but they disagree with your third party - Axis. You could soft change it with your hal pin assignments, or hard change it by now reversing both your analog drive signal AND encoder feedback.
any idea which pin I should change. Not sure which file,.(hal, .var, or .ini?) to find the pins. I would like to change the pins to keep my wiring the same throughout my build.

another question. I am wiring a home switch on this axis but I don't have a clue were to start in the software. I have a 7I37-ta I/O block to use but I am not sure how to set this up. I am curious if there is a place people have posted their .ini files with examples of a similar setups?
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
Build Thread- CNC Update Log - SuperMax YCM-40 (Anilam to Mach3) radioactive Vertical Mill, Lathe Project Log 42 03-15-2011 01:51 PM
Need Help!- supermax/anilam crusader series m Jetpylot33 General CNC (Mill and Lathe) Control Software (NC) 10 08-01-2010 07:45 PM
installing anilam 3300 on supermax mill. ninja11zx General Metal Working Machines 2 05-01-2009 11:09 PM
Supermax YCM-30 with Anilam 1100M controls edbanks General Metal Working Machines 3 04-14-2009 03:21 PM
Newbie- Sieg X1 retrofit with Linux EMC2, CNC Fusion retrofit kit and Gecko G540 GreenLead Benchtop Machines 31 11-26-2008 11:55 PM




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