[grblHAL/STM32F4xx Issue#142] Synchronous spindle related

未分类 bolang 6个月前 (10-15) 43次浏览

Issue #142 | 状态: 进行中 | 作者: auxp | 创建时间: 2023-10-12


Hello!stm32f411ceu6 How to configure spindle synchronization? Which motors are available for selection


评论 (5)

#1 – terjeio 于 2023-10-13

> How to configure spindle synchronization?

You are defining your own pin mapping?
A15 or D2 can be used as spindle pulse input, for spindle index use the pin of your choice (must be interrupt capable). Enable spindle sync in found here.

> Which motors are available for selection

I do not understand this. You can define as many motors (up to 6) as you have free pins for. The spindle motor can be either PWM controlled or a Modbus controlled VFD. Using a stepper motor for the spindle is not yet possible but might be added later.

FYI there are some board definitions that has the necessary pin definitions. The Web Builder can be used to build the firmware with spindle sync enabled.


#2 – auxp 于 2023-10-13

> 主轴电机可以是 PWM 控制的,也可以是 Modbus 控制的 VFD。主轴使用步进电机尚不可能,但稍后可能会添加。
>
> 仅供参考,有些板定义具有必要的引脚定义。Web Builder 可用于构建启用主轴同步的固件。

Synchronous motor for lathe? PWM is 0-10V?How to do it specifically? Do you have a template


#3 – terjeio 于 2023-10-13

> Synchronous motor for lathe?

You do not need that, RPM and angular position is derived from encoder inputs.

> PWM is 0-10V?

No, default is a 5KHz pulse-width modulated (PWM) signal. STM32 devices are 3.3V. You need a low-pass filter and a gain stage to transform it to a 0-10V analog signal. PWM to analog converters are, AFAIK, readily available.

> Do you have a template

For how to connect everything?


#4 – MCULJ 于 2025-05-28

Regarding G33, is it normal that the spindle has reached speed during the spindle synchronization process while the stepper motor is still accelerating and decelerating?


#5 – terjeio 于 2025-06-01

@MCULJ It is not only normal, it is required. It is the feed rate (Z-position) that is synchronized to the spindle.


原始Issue: https://github.com/grblHAL/STM32F4xx/issues/142

喜欢 (0)