Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous spindle related #142

Open
auxp opened this issue Oct 12, 2023 · 3 comments
Open

Synchronous spindle related #142

auxp opened this issue Oct 12, 2023 · 3 comments

Comments

@auxp
Copy link

auxp commented Oct 12, 2023

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

@terjeio
Copy link
Contributor

terjeio commented Oct 13, 2023

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 my_machine.h, configuration info is 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.

@auxp
Copy link
Author

auxp commented Oct 13, 2023

主轴电机可以是 PWM 控制的,也可以是 Modbus 控制的 VFD。主轴使用步进电机尚不可能,但稍后可能会添加。

仅供参考,有些板定义具有必要的引脚定义。Web Builder 可用于构建启用主轴同步的固件。

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

@terjeio
Copy link
Contributor

terjeio commented Oct 13, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants