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 > PIC Programing / Design


PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-03-2008, 07:54 PM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road
Using an encoder on z-axis as a failsafe

I have a stepper system (coverted Boss mill) with an intermittent problem on the z-axis. Occasionally, with no explanation, the axis will 'slip' and not move on command. When this happens it has always started at the beginning of a rapid z move, so when it loses position, it loses big. I haven't noticed any problem of missing 1 or 2 steps, its always either on or way off. Biggest annoyance about this is I am afraid to walk away from the machine, even though through the last 20 or 30 hours of use it has only done it once (crashed the part though). Rapid feedrate is set well under the max it is capable of, I haven't found any explanation for it.
Here is what I am wanting to accomplish. Mount an encoder on the z-axis motor. Develop a system (PIC?) that would monitor incoming steps and compare to encoder pulses. If the difference between the two becomes more than a set amount (could probably be several thousandths worth), e-stop the machine.
Does this sound like a PIC would be the ticket, or should I go another route, or forget it completely. Unfortunately a servo system is out of the question for now.

Joe
__________________
If you try to make everything idiot proof, someone will just breed a better idiot!
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 09-03-2008, 10:05 PM
 
Join Date: Nov 2003
Location: canada P.Q.
Age: 59
Posts: 84
valmet58 is on a distinguished road
Smile

what about acceleration of your stepper.if it is too fast it can cause that..i would check if it can be lowered..
__________________
Andy
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 09-03-2008, 10:25 PM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

I could lower it, not sure it would help. I used to have this problem regularly when applying tool offsets and first moving Z axis. Lowering acceleration and velocity would not fix the problem. I ended up having to put a G04 (dwell) between applying tool offset and the first Z move. Its weird, but it fixed that problem. That was at least consistent. This is once in a rare while, and if I run the program again it won't happen.
The dwell thing seems like a processing problem, don't know if this could be related or not. I really just want something else 'watching my back'.
__________________
If you try to make everything idiot proof, someone will just breed a better idiot!
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 09-04-2008, 07:33 PM
 
Join Date: Aug 2008
Location: United States
Posts: 38
snoopy27 is on a distinguished road
Smile

Originally Posted by jderou View Post
I have a stepper system (coverted Boss mill) with an intermittent problem on the z-axis. Occasionally, with no explanation, the axis will 'slip' and not move on command. When this happens it has always started at the beginning of a rapid z move, so when it loses position, it loses big. I haven't noticed any problem of missing 1 or 2 steps, its always either on or way off. Biggest annoyance about this is I am afraid to walk away from the machine, even though through the last 20 or 30 hours of use it has only done it once (crashed the part though). Rapid feedrate is set well under the max it is capable of, I haven't found any explanation for it.
Here is what I am wanting to accomplish. Mount an encoder on the z-axis motor. Develop a system (PIC?) that would monitor incoming steps and compare to encoder pulses. If the difference between the two becomes more than a set amount (could probably be several thousandths worth), e-stop the machine.
Does this sound like a PIC would be the ticket, or should I go another route, or forget it completely. Unfortunately a servo system is out of the question for now.

Joe
Just curious, what kind of counter-balance do you have on Z, and have you been able to notice if this problem occurs in the same location or part of your cutting file?
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 09-04-2008, 07:52 PM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

No counterbalance. Not sure if it happens in the same spot of the Z travel, but I haven't run the same program enough times to know if it happens in the same spot more than once. I know it doesn't do it every time in that spot of the program.
__________________
If you try to make everything idiot proof, someone will just breed a better idiot!
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-04-2008, 09:39 PM
LeeWay's Avatar  
Join Date: Jun 2004
Location: USA
Posts: 2,305
LeeWay is on a distinguished road

Not sure what type machine you have, but could it be trash in the ball nut or linear slides or sticking gibbs?

On my mill, I had a kind of open way cover. Stuff would accumulate under the Y axis. One of the linear slides mounting holes filled up with swarf and would actually make the axis stutter. That was a bit difficult to locate. I now have proper way covers, so that won't happen again.

The thing with trash in a ball nut is sometimes it won't hurt anything, then it gets jammed between the balls just right and it would be enough to cause missed steps.
Something to check anyway.
__________________
Lee
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-04-2008, 10:49 PM
 
Join Date: Oct 2006
Location: USA
Posts: 205
123CNC is on a distinguished road
Maybe you need a new BRAIN?

Have you been following the CNC Brain thread? Your scenario sounds like a great test for the CNC Brain which basically provides the necessary processing power/speed to make real time corrections. I may be wrong, but I'm pretty sure I read stepper and servo compatibility. In fact you can individually configure each axis. So say in your scenario, just add one or two sensor(s) and feedback signal(s) on the Z and leave x and y alone (for the time being.) A linear scale on the quill and rotary encoder on the stepper for double closed or linear scale alone for single closed.

Obviously its still in beta, so I'm expressing my interpretation. But are you curious enough to look www.cncbrain.com?

I also whole heartedly agree with recent posters, check your accel/decel rates, max speed, and anything that may be occassionally or consistently hampering the axis movement (even old way oil gumming/varnishing your slide).
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 09-05-2008, 07:55 AM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

Wow, I've been away for awhile. I completely missed the CNC Brain thing. That's exactly what I need. A little pricey for me, but looks like a good investment. Thanks for the link!
About the dirty screw/slide. It's a bridgeport quill, so the screw is completely enclosed. Quill is lubed pretty well, hard to protect it any better. That's not to say a brief sticking of something isn't causing this, it is very possible, and that's why I need a closed loop!
__________________
If you try to make everything idiot proof, someone will just breed a better idiot!
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 09-05-2008, 08:13 AM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 46
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Hi,
The CNC brain sounds like the answer to many problems but I would look to solve the problem first.
Sounds to me to be a mechanical problem and I would start with sticktion and check out if the motor has enough power without a counter balance?
Also do you have a tight spot in your ways?
Does this happen when you jog the axis at high speed?
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-05-2008, 10:15 AM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

As it is only moving the quill, and I don't know of any other Boss BP having this problem, I don't think it needs a counterbalance.
I have the max velocity and acceleration set at about half of what I can jog it at without problem.
I may tear into it this weekend and see if I can turn the screw manually throughout the travel without any binding.
Still, a closed loop would make me feel a whole lot better about walking away from the machine.
__________________
If you try to make everything idiot proof, someone will just breed a better idiot!
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-05-2008, 11:36 AM
LeeWay's Avatar  
Join Date: Jun 2004
Location: USA
Posts: 2,305
LeeWay is on a distinguished road

Steppers and open loops are only as good as the code too. I often run the same codes many times. It's only after it has run a time or two that I leave it unattended. Very seldom do I leave the shop though and then only for a couple minutes.
If I was running a larger machine that would be damaged if it crashed hard or even a lathe, I would feel better with a closed loop system. I too am keeping an eye on the Brains.
Cool stuff.
__________________
Lee
Tweet this Post!Share on Facebook
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
Problem- partner 1 z axis drifting , encoder??? fcycles Milltronics 2 03-25-2008 09:39 PM
reinstalling x axis servo and encoder fcycles Milltronics 29 12-11-2007 01:30 PM
Need help z-axis encoder masroor HURCO 6 12-06-2007 10:07 AM
Z axis encoder bbrreid Bridgeport and Hardinge Mills 5 04-02-2007 07:16 PM
No Encoder Counts On X Axis. Y=OK murphy625 CamSoft Products 5 03-08-2005 09:20 PM




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