OLD Lathe conversion to a CNC

More
2 years 5 months ago #301486 by besriworld
Yes, you are right .  I saw your video on YouTube.  You made amazing parts with the lathe.  Well done! 
 I turned on the display today.  Now I will play with the configuration. :)

 

Attachment not found

Please Log in to join the conversation.

More
2 years 3 months ago #304124 by besriworld
A little update, I made a telescopic way cover for protect linear guide .

 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Attachment not found



I made a video compilation.  I had to make an additional metal construction to level the table.   In the video you can also see a test measurement with 0.002mm dial indicator .

Please Log in to join the conversation.

More
2 years 3 months ago #304297 by besriworld
Hello, I have a question. I want to emphasize that I am new to LinuxCNC! The spindle has separate oil lubrication. I want the pump to not run all the time. Only when the spindle is rotating. A pressure sensor is installed.
I want to do before the spindle turns to turn on the lubrication pump and wait for the enabling signal from the pressure sensor. When true to rotate the spindle. If during rotation the signal from the sensor changes its state, it is not true to trigger an alarm. What is the right way? Is there an example? I'm sorry, but I couldn't find a similar topic.

Please Log in to join the conversation.

More
2 years 3 months ago #304312 by tommylight
Probably by remaping M3 would be the best way, but no idea if M3 can be remaped.
I am sure it can be done in hal but that is quite a journey.
Using M6 or M7 is much easier, see mist/coolant use, requires adding an output for it in wizard, be it StepConf or PncConf.

Please Log in to join the conversation.

More
2 years 3 months ago #304325 by andypugh
I don't think it would be that hard in HAL.
Code:
net spindle-on spindle.0.on <lube pump on> and2.0.in0 net lube-pressure <lube swith output> and2.0.in1 net spindle-enable and2.0.out <spindle motor on>

This will also stop the spindle if the pressure falls, which probably isn't desirable, so you could add a latch:
linuxcnc.org/docs/stable/html/man/man9/flipflop.9.html

in addition to (most of) the above
Code:
loadrt flipflop loadrt not addf flipflop.0 servo-thread addf not.0 servo-thread net spindle-on not.0.in net spindle-off not.0.out setp flipflop.0.data 1 net spindle-enable flipflop.0.clk net spindle-off flipflop.0.reset net spindle-latched flipflop.0.out <spindle motor on>

This will turn the spindle motor on when there is pressure and the spindle is on, but will only turn the motor off when the spindle-off (inverted spindle on) goes true and resets the latch.

If you want an alarm too, then that would be based on the latched output being on, and the pressure being low.
Add another not, used to create an output that is high when the pressure is low, and another and2
linuxcnc.org/docs/stable/html/man/man9/message.9.html
Code:
loadrt message messages="Low lube pressure!" net lube-pressure not.1.in net lube-pressure-not and2.1.in0 net spindle-latched and2.1.in1 net alarum and2.1.out message.0.trigger

Please Log in to join the conversation.

More
2 years 3 months ago #304328 by besriworld
Many thanks for the quick and detailed reply. I will try soon.

Please Log in to join the conversation.

More
2 years 3 months ago #304739 by besriworld
What's missing from my HAL file. I cannot do protection if the requested RPM of the spindle do not follow the current RPM from the encoder.

 

Attachment not found



 

Attachment not found



The problem is that the machine should automatically stop if the pump is not working.  The spindle is large and if left without lubrication the bearings will break.
 

Please Log in to join the conversation.

More
2 years 3 months ago #304941 by besriworld
Can anyone help. I can't find where the error is..
I am attaching the new files!

 

Attachment not found



 

Attachment not found



I start the spindle with Gmoccapy gui

Please Log in to join the conversation.

More
2 years 3 months ago #304957 by PCW
Replied by PCW on topic OLD Lathe conversion to a CNC
What is the actual issue with the current hal/ini file set?

Please Log in to join the conversation.

More
2 years 3 months ago #304962 by besriworld
Hello, when I start the spindle with S1000 m3. The spindle rotates without the set acceleration and if I simulate a deceleration or stop of the spindle there is no following error. The machine/spindle works without errors!

Please Log in to join the conversation.

Time to create page: 0.142 seconds
Powered by Kunena Forum