M3 M5 and signal question

More
3 years 1 month ago #280899 by abdulasis12
Hi
I use
7i96s + 7i77 MESA
spindle sanyo denki attactched from brother-228 mill machine
In hall file
Code:
# --- SPINDLE-ENABLE ---net spindle-enable => hm2_7i96s.0.ssr.00.out-00
Code:
When I MDI :
Code:
M3 s5000


It's will output correct for enable spindle motor
but I have problem when M5 , spindle-enable will sudden turn off and spindle will slow down rpm with inertial speed.

How to after M5 , spindle-enable signal output need lag time about 0.5 - 1 sec for use brake resistor, Or have any solution for better ?

 Asis,
 

Please Log in to join the conversation.

More
3 years 1 month ago #280920 by tommylight
If i understood this correctly, the easy way would be to add
M3 S0
G04 P1
M5
That will set the spindle to 0 RPM so the VFD can do it's thing, wait one second, then switch off.
There are other ways of doing it in hal using oneshot or timedelay, but this is easy and should work.

Please Log in to join the conversation.

More
3 years 1 month ago #280938 by zz912

Please Log in to join the conversation.

More
3 years 1 month ago #281232 by abdulasis12

If i understood this correctly, the easy way would be to add
M3 S0
G04 P1
M5
That will set the spindle to 0 RPM so the VFD can do it's thing, wait one second, then switch off.
There are other ways of doing it in hal using oneshot or timedelay, but this is easy and should work.
Thank you Tommy I will use this solution I think it's work   .

Please Log in to join the conversation.

More
3 years 1 month ago #281233 by abdulasis12

This should help you:
linuxcnc.org/docs/devel/html/man/man9/timedelay.9.html
Wow this function maybe can use in next condition, Thank you MR.zz912

Please Log in to join the conversation.

Time to create page: 0.122 seconds
Powered by Kunena Forum