M3 M5 and signal question

More
16 Sep 2023 02:06 - 16 Sep 2023 03:35 #280899 by abdulasis12
M3 M5 and signal question was created by abdulasis12
Hi
I use
7i96s + 7i77 MESA
spindle sanyo denki attactched from brother-228 mill machine
In hall file
# --- SPINDLE-ENABLE ---net spindle-enable => hm2_7i96s.0.ssr.00.out-00
When I MDI :
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,
 
Last edit: 16 Sep 2023 03:35 by abdulasis12.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
16 Sep 2023 12:46 #280920 by tommylight
Replied by tommylight on topic M3 M5 and signal question
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.
The following user(s) said Thank You: abdulasis12

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

More
16 Sep 2023 18:16 #280938 by zz912
The following user(s) said Thank You: abdulasis12

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

More
20 Sep 2023 16:47 #281232 by abdulasis12
Replied by abdulasis12 on topic M3 M5 and signal question

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 or Create an account to join the conversation.

More
20 Sep 2023 16:48 #281233 by abdulasis12
Replied by abdulasis12 on topic M3 M5 and signal question

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 or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum