upload:lube.py |
upload:lube.py There is a little fileformat error in the original lube.py and it does not start with Python as it should.You can open lube.py with VIM and do a :set fileformat=unix it should work fine! Or you use this upload:lube(fixed).py and rename it to lube.py it should work properly. |
The lubricator typically has a pressure switch which needs to close after running the pump for at least 10 seconds. If it doesn't close, there is likely a leak in the system or the pump never ran (ie fuse blown). It also has a fluid level switch which will open if the fluid level is too low.
To use the component, typically this is added to custom.hal:
#central lubrication loadusr -W lube.py net lube-run lube.run => hm2_5i25.0.7i77.0.0.output-02 net machine-is-enabled lube.machine_status <= motion.motion-enabled net spindle-on lube.spindle_status <= motion.spindle-on net lube-ps-float-sw lube.pressuresw_floatsw <= hm2_5i25.0.7i77.0.0.input-14
The component can be downloaded here: upload:lube.py
There is a little fileformat error in the original lube.py and it does not start with Python as it should.You can open lube.py with VIM and do a :set fileformat=unix it should work fine! Or you use this upload:lube(fixed).py and rename it to lube.py it should work properly.