Lube Pump

More
03 Oct 2015 17:15 - 03 Oct 2015 17:16 #63387 by aventtini
Lube Pump was created by aventtini
Hello i have tryed all the examples on the forum i did not find one that works.


This is my setup :

Vogel Pump

one input 24v

Im running a mesa 7i77

and i want output 6 on for 1 minut every 2 h .

I have search all the forum for a good example only complicated stuff with level and AND
Last edit: 03 Oct 2015 17:16 by aventtini.

Please Log in or Create an account to join the conversation.

More
03 Oct 2015 19:29 #63391 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Lube Pump
Can you give an exact model number for the lube pump.

Many lube pumps only supply one dose for a given time frame as part of the design. This is with the power continuously on. If we have more info about the pump we can help more.

Please Log in or Create an account to join the conversation.

More
03 Oct 2015 19:38 #63392 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Lube Pump
Nevermind my previous request although the model number could still be good information.

I see that all of the Vogel electric pumps are gear pumps. If no one else has something in their library of HAL files; I can work something up for you and post it here.

Just to be sure you want the following:

Run 1 minute out of every 2 hours the machine is moving?
Run 1 minute every 2 hours the machine is on?
If the machine stops moving you want the pump to stop?
You do or don't want the low level alarms?

Please Log in or Create an account to join the conversation.

More
06 Oct 2015 21:36 #63494 by andypugh
Replied by andypugh on topic Lube Pump

Hello i have tryed all the examples on the forum i did not find one that works.


I think I would look at using timedelay with its input feeding the output through "not"

Why didn't the other examples work?

Please Log in or Create an account to join the conversation.

More
09 Oct 2015 17:07 #63605 by fupeama
Replied by fupeama on topic Lube Pump
Hi
I find my old hal modul for lubrication.
Run 10 sec out of every 2 min the machine is moving. You can change both params.
You can change maping for pin motion and setup it for machine-on for example.

MArtin


component lubrication ; 
pin in float motion               "Input pin for motin detect";     
pin out bit lube           "Output pin for lube pump";
pin out float elapsed_cycle       "Current value of elapsed cycle time";
pin out float elapsed_lube "Current value of elapsed lube time";
 

param rw float cycletime=120      "Time for wait";
param rw float lubetime=10 "Time for lube";
 
variable double ctimer=0;
variable double ltimer=0;
 
 
function _;
 
license "GPL";
author "mk";
;;
if (motion > 0 ) {
ctimer+=fperiod;
elapsed_cycle = ctimer;
       if (ctimer > cycletime){
             ctimer=0;   
             lube = 1;
       }     
}
if (lube){
       ltimer+=fperiod;
       elapsed_lube=ltimer;
       if (ltimer>lubetime){
             lube=0;
             ltimer=0;
             elapsed_lube=0;    
       }
}
The following user(s) said Thank You: Nickel, LearningLinuxCNC, lrak

Please Log in or Create an account to join the conversation.

More
10 Oct 2015 07:30 #63641 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Lube Pump
I have a method for this using a oneshot and two timedelay components. Only problem is that it will time for the full 20 minutes if the machine is moving or not. If you want my hal config I can post it but I think that Martin's component above is a better more elegant solution.

Please Log in or Create an account to join the conversation.

More
11 Oct 2015 02:42 #63670 by aventtini
Replied by aventtini on topic Lube Pump
sorry guys for delay i wil post my solution . Your lube component is more complicated . We have used a different code for vogel pump . We have a time every 10 mins until we got a signal that prostate is in pressure and it stops . It works perfect .

Please Log in or Create an account to join the conversation.

More
11 Oct 2015 02:44 #63671 by aventtini
Replied by aventtini on topic Lube Pump
you dont need to lube when you move . Because you have a pressure on the pipes . When you move it lube because of the pressure , then it restarts when pressure is low .

Please Log in or Create an account to join the conversation.

More
11 Oct 2015 02:45 #63672 by andypugh
Replied by andypugh on topic Lube Pump

sorry guys for delay i wil post my solution . Your lube component is more complicated .


Once you copy and paste it, then compile it, it is actually simple, because it will do everything as a single HAL component.

Please Log in or Create an account to join the conversation.

More
29 Oct 2020 02:20 #187649 by lrak
Replied by lrak on topic Lube Pump
This thread goes back a while -- but the hal module of fupeama here looks like it would do most of what I need. (Just need to turn the lube pump on and off with a timer based on machine moving - and monitor the lube-tank-float and put some alert up if it is empty).

But - I found another similar bit written in python..
wiki.linuxcnc.org/cgi-bin/wiki.pl?CentralizedLubricator

And - I see lubrication bits from my current setup:
halcmd show all |grep lub
    10  bit   OUT         FALSE  halui.lube.is-on
    10  bit   IN          FALSE  halui.lube.off
    10  bit   IN          FALSE  halui.lube.on
     4  bit   OUT         FALSE  iocontrol.0.lube
     4  bit   IN          FALSE  iocontrol.0.lube_level
(Can't find them in my config?)

There was yet another bit using classic ladder..
forum.linuxcnc.org/25-classicladder/3347...tting-started#100973

-- So I'm frozen with too many choices -- Sort of thinking to go with the python?

Which way would be most main-stream?

Please Log in or Create an account to join the conversation.

Time to create page: 0.287 seconds
Powered by Kunena Forum