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 06-28-2011, 05:09 PM
 
Join Date: Apr 2010
Location: USA
Age: 68
Posts: 451
TarHeelTom is on a distinguished road
Lube pump

In the tail end of getting a new computer (D510MO) ready to install in the Bridgeport.

The Bijur pump was bad, and the repair cost was way too high, so bought a Taiwan made clone. It's a clockwork type lube pump, very similar to the Bijur, which fires off a single shot of oil once every 30 minutes. So basically, it needs to be powered anytime the table is in motion.

Ran into Matt Shaver at the recent cnc seminar, and he showed me one method of powering the pump whenever the table is in motion. After much searching through the EMC2 docs, he found a "velocity" signal, which is probably the float variable which is sent to the DRO in AXIS. He compared that to zero, and added a small hysteresis, then sent it to an output pin. I'm using an ac relay to power the pump, so had to invert the output line. Your needs may vary.

Here's the code:

Code:
# Let's pick up a signal to turn on the lube pump

# Original code work by Matt Shaver
# Add a comparator component 

loadrt comp count=1

# set the hysteresis to a small value to

# allow for very slow movements before turning on the pump

setp comp.0.hyst .01

# The first input to the comparator is zero.

setp comp.0.in0 0.0

# The other input to the comparator is the

# current axis movement velocity

net moving comp.0.in1 
motion.current-vel

# This signal is the output, but is inverted for my puposes YMMV

setp parport.1.pin-16-out-invert 1

# It needs to be connected

# to an output bit

net pump comp.0.equal => parport.1.pin-16-out 

# We need to run the comparator periodically

addf comp.0 servo-thread

Enjoy, and hope this helps someone.

Tom
Reply With Quote

  #2   Ban this user!
Old 02-26-2012, 01:03 AM
 
Join Date: Apr 2010
Location: USA
Age: 68
Posts: 451
TarHeelTom is on a distinguished road
air in lube lines

Matt's routine to turn the lube pump on with movement, seems to have worked well. One possible complaint might be that it sometimes seems to stay running after a cnc program has finished running.

But I'd rather have too much oil than not enough.

However, when the one shot oil pump would fire, it would always make a bang when the piston hit bottom. The oil pressure gauge would bounce up to perhaps 10 psi and quickly return to zero.

Couple of days ago realized that I hadn't heard it bang lately.

Tonight I wrote a short cnc program to move the table full travel left and right, and a little front to back, at about 0.75 ipm, but without the spindle running.

Then sat there for about 20 mins waiting for the pump piston to drop. I'd installed a remote oil pressure gauge on the throat of the mill. All of a sudden I noticed the oil pressure was at 50 psi, and then took a min or two to drop back to zero.

Which is how it SHOULD look every time the pump cycles.

Finally decided that we induced a lot of air into the oil lines while we had the mill apart replacing the 32 lube metering units. It has taken many days of operation to finally work all the air out of the lines.

In the future, any time I disconnect an oil line for any reason, I'm going to power up the oil pump with the mill not running, or only running occasionally, and give the pump plenty of time to purge all the air out of the lines.

Tom
Reply With Quote

  #3   Ban this user!
Old 02-26-2012, 10:10 AM
 
Join Date: Feb 2008
Location: USA
Posts: 106
PCW_MESA is on a distinguished road

Originally Posted by TarHeelTom View Post
Matt's routine to turn the lube pump on with movement, seems to have worked well. One possible complaint might be that it sometimes seems to stay running after a cnc program has finished running.

Tom
if you set the threshold to some small positive value greater than the hysteresis like:

setp comp.0.in0 0.02

it should stop when motion stops
Reply With Quote

  #4   Ban this user!
Old 02-26-2012, 11:14 AM
 
Join Date: Apr 2010
Location: USA
Age: 68
Posts: 451
TarHeelTom is on a distinguished road

Originally Posted by PCW_MESA View Post
if you set the threshold to some small positive value greater than the hysteresis like:

setp comp.0.in0 0.02

it should stop when motion stops
Thanks, I'll give that a 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
Need Help!- re Spindle Lube and Lube Pump robkuhi Tree 15 10-24-2011 12:49 PM
Lube pump TarHeelTom Bridgeport and Hardinge Mills 13 08-19-2010 12:48 AM
Leaking Lube Pump dkaustin Tormach PCNC 2 03-25-2010 11:53 AM
showa way lube pump will-tek Fadal 0 11-19-2008 09:44 PM
Lube pump Rebuilt maquiza Haas Mills 0 02-28-2007 03:14 PM




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